patch for 64 bit wide flash

Allen Curtis acurtis at onz.com
Thu Feb 14 09:16:50 EST 2002


I have another version of 64-bit bus support which does not change any of
the variable types and only changes one function prototype. It probably is
not as fast as this 64-bit version, assuming that it is really doing 64-bit
bus accesses, but it is a very low impact solution.

> -----Original Message-----
> From: linux-mtd-admin at lists.infradead.org
> [mailto:linux-mtd-admin at lists.infradead.org]On Behalf Of Jörn Engel
> Sent: Thursday, February 14, 2002 4:32 AM
> To: Adam Wozniak
> Cc: linux-mtd at lists.infradead.org
> Subject: Re: patch for 64 bit wide flash
>
>
> Hi!
>
> > I've got a 64 bit wide flash consisting of eight 8bit wide chips.
> > Here's a patch against the 2.4.16 kernel
> >
> > I think I've added enough code to support all 64 bit wide
> > configurations,
> > but somebody whould probably check me on it.
>
> After merging with current cvs again, I found an issue with your code
> and my kernel:
>
> > diff -urbBN --exclude=.*depend --exclude=*.flags --exclude=*.o
> linux-original/drivers/mtd/maps/physmap.c linux/drivers/mtd/maps/physmap.c
> > --- linux-original/drivers/mtd/maps/physmap.c	Thu Oct  4
> 15:14:59 2001
> > +++ linux/drivers/mtd/maps/physmap.c	Tue Dec 18 14:06:06 2001
> > @@ -10,6 +10,7 @@
> >  #include <asm/io.h>
> >  #include <linux/mtd/mtd.h>
> >  #include <linux/mtd/map.h>
> > +#include <linux/mtd/partitions.h>
> >  #include <linux/config.h>
> >
> >
> > @@ -34,6 +35,11 @@
> >  	return __raw_readl(map->map_priv_1 + ofs);
> >  }
> >
> > +__u64 physmap_read64(struct map_info *map, unsigned long ofs)
> > +{
> > +	return __raw_readll(map->map_priv_1 + ofs);
> > +}
>
> __raw_readll is not defined in our kernel (2.4.2 based). Worse, I
> couldn't find that definition in the 2.4.17 kernel, either. Is this
> specific to your private kernel?
>
> Joern
>
> PS: The same applies to __raw_writell, of course.
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/





More information about the linux-mtd mailing list