public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] AMD MirrorBit FLASH Support?
@ 2003-04-21 23:22 Tom Guilliams
  2003-04-21 23:38 ` Wolfgang Denk
       [not found] ` <008201c308a6$e4453500$9900010a@aztec.local>
  0 siblings, 2 replies; 7+ messages in thread
From: Tom Guilliams @ 2003-04-21 23:22 UTC (permalink / raw)
  To: u-boot

Does anyone know of support for the AMD MirrorBit FLASH parts?  For example,
the AM29LV256M - 256MB, x8/x16 data width.  There's really not much to
change compared to strataflash but I thought I'd ask in case someone's
already done it.  I don't see anything in the source tree but I could be
wrong.

- Tom

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] AMD MirrorBit FLASH Support?
@ 2003-04-25 15:00 Brad Kemp
  0 siblings, 0 replies; 7+ messages in thread
From: Brad Kemp @ 2003-04-25 15:00 UTC (permalink / raw)
  To: u-boot

There is CFI support for the Intel command set in ppmc8260/strataflash.c
and esd/cpic440/strataflash.c. 
This driver correctly sizes the flash width and number of chips. 
What is missing is an abstraction to support multiple command sets.
Brad


> -----Original Message-----
> From: Tom Guilliams [mailto:tguilliams at sbs.com] 
> Sent: Thursday, April 24, 2003 4:38 PM
> To: Frederic Soulier
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] AMD MirrorBit FLASH Support?
> 
> 
> 
> Thanks for the reply Frederic.
> 
> On Tue, 2003-04-22 at 01:12, Frederic Soulier wrote:
> > If you want full support for Mirrorbit flashes in U-Boot, 
> you have simply to
> > code the write buffering feature.
> > I do not use this, so standard AMD/Fujitsu/ST code is 
> working fine for me.
> > 
> 
> We're finding a bit more to it than that.  The algorithms for 
> operations
> on the MirrorBit have changed a bit from other AMD chips.  Some
> operations rely upon toggle bits, different command definitions.  The
> "correct" error-checking is what's really effected.  I was porting the
> StrataFlash driver for the PPMC8260 board because we have 
> some versions
> of our board with StrataFlash and some AMD MirrorBit as well as the
> driver implements the CFI interface.
> 
> My plan is to have a strataflash/mirrorbit driver with buffer writing
> support.  I just need to finish it up and submit it to 
> Wolfgang.  As our
> board support grows, I'm adding upon this driver for other chipset
> support.  At some point, it would be nice to have a flash driver with
> CFI for all chips that support it.
> 
> Tom
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] AMD MirrorBit FLASH Support?
@ 2003-05-01 13:02 Nghiem, Tien
  0 siblings, 0 replies; 7+ messages in thread
From: Nghiem, Tien @ 2003-05-01 13:02 UTC (permalink / raw)
  To: u-boot

Hi Brad,

I have a custom board MPC8260 that uses the flash width 64 bits with 4 chips (28F640J3) as it describes in the application note Intel 292263-002 (http://www.intel.com/design/flcomp/applnots/29226302.pdf). Do you think that I can use the flash driver ppmc8260/strataflash.c directly without modification?

Thank you

Tien Nghiem



-----Original Message-----
From: Brad Kemp [mailto:Brad.Kemp at Seranoa.com]
Sent: Friday, April 25, 2003 11:01 AM
To: tguilliams at sbs.com; Frederic Soulier
Cc: u-boot-users at lists.sourceforge.net
Subject: RE: [U-Boot-Users] AMD MirrorBit FLASH Support?


There is CFI support for the Intel command set in ppmc8260/strataflash.c
and esd/cpic440/strataflash.c. 
This driver correctly sizes the flash width and number of chips. 
What is missing is an abstraction to support multiple command sets.
Brad


> -----Original Message-----
> From: Tom Guilliams [mailto:tguilliams at sbs.com] 
> Sent: Thursday, April 24, 2003 4:38 PM
> To: Frederic Soulier
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] AMD MirrorBit FLASH Support?
> 
> 
> 
> Thanks for the reply Frederic.
> 
> On Tue, 2003-04-22 at 01:12, Frederic Soulier wrote:
> > If you want full support for Mirrorbit flashes in U-Boot, 
> you have simply to
> > code the write buffering feature.
> > I do not use this, so standard AMD/Fujitsu/ST code is 
> working fine for me.
> > 
> 
> We're finding a bit more to it than that.  The algorithms for 
> operations
> on the MirrorBit have changed a bit from other AMD chips.  Some
> operations rely upon toggle bits, different command definitions.  The
> "correct" error-checking is what's really effected.  I was porting the
> StrataFlash driver for the PPMC8260 board because we have 
> some versions
> of our board with StrataFlash and some AMD MirrorBit as well as the
> driver implements the CFI interface.
> 
> My plan is to have a strataflash/mirrorbit driver with buffer writing
> support.  I just need to finish it up and submit it to 
> Wolfgang.  As our
> board support grows, I'm adding upon this driver for other chipset
> support.  At some point, it would be nice to have a flash driver with
> CFI for all chips that support it.
> 
> Tom
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] AMD MirrorBit FLASH Support?
@ 2003-05-01 15:33 Brad Kemp
  0 siblings, 0 replies; 7+ messages in thread
From: Brad Kemp @ 2003-05-01 15:33 UTC (permalink / raw)
  To: u-boot

Tien
I have used this driver on 2 other boards with strataflash The boards
have different flash widths.
The only application specific part is the location of the uboot
environment. 
The config for the ppmc8260 may not fall on a sector boundary or be
wrong. If the saveenv fails, check that.
Brad
> -----Original Message-----
> From: Nghiem, Tien [mailto:TNghiem at oerlikon.ca] 
> Sent: Wednesday, April 30, 2003 6:08 PM
> To: Brad Kemp
> Cc: u-boot-users at lists.sourceforge.net
> Subject: RE: [U-Boot-Users] AMD MirrorBit FLASH Support?
> 
> 
> Hi Brad,
> 
> I have a custom board MPC8260 that uses the flash width 64 
> bits with 4 chips (28F640J3) as it describes in the 
> application note Intel 292263-002. Do you think that I can 
> use the flash driver ppmc8260/strataflash.c directly without 
> modification?
> 
> Thank you
> 
> Tien Nghiem
> 
> -----Original Message-----
> From: Brad Kemp [mailto:Brad.Kemp at Seranoa.com]
> Sent: Friday, April 25, 2003 11:01 AM
> To: tguilliams at sbs.com; Frederic Soulier
> Cc: u-boot-users at lists.sourceforge.net
> Subject: RE: [U-Boot-Users] AMD MirrorBit FLASH Support?
> 
> 
> There is CFI support for the Intel command set in 
> ppmc8260/strataflash.c
> and esd/cpic440/strataflash.c. 
> This driver correctly sizes the flash width and number of chips. 
> What is missing is an abstraction to support multiple command sets.
> Brad
> 
> 
> > -----Original Message-----
> > From: Tom Guilliams [mailto:tguilliams at sbs.com] 
> > Sent: Thursday, April 24, 2003 4:38 PM
> > To: Frederic Soulier
> > Cc: u-boot-users at lists.sourceforge.net
> > Subject: Re: [U-Boot-Users] AMD MirrorBit FLASH Support?
> > 
> > 
> > 
> > Thanks for the reply Frederic.
> > 
> > On Tue, 2003-04-22 at 01:12, Frederic Soulier wrote:
> > > If you want full support for Mirrorbit flashes in U-Boot, 
> > you have simply to
> > > code the write buffering feature.
> > > I do not use this, so standard AMD/Fujitsu/ST code is 
> > working fine for me.
> > > 
> > 
> > We're finding a bit more to it than that.  The algorithms for 
> > operations
> > on the MirrorBit have changed a bit from other AMD chips.  Some
> > operations rely upon toggle bits, different command 
> definitions.  The
> > "correct" error-checking is what's really effected.  I was 
> porting the
> > StrataFlash driver for the PPMC8260 board because we have 
> > some versions
> > of our board with StrataFlash and some AMD MirrorBit as well as the
> > driver implements the CFI interface.
> > 
> > My plan is to have a strataflash/mirrorbit driver with 
> buffer writing
> > support.  I just need to finish it up and submit it to 
> > Wolfgang.  As our
> > board support grows, I'm adding upon this driver for other chipset
> > support.  At some point, it would be nice to have a flash 
> driver with
> > CFI for all chips that support it.
> > 
> > Tom
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > U-Boot-Users mailing list
> > U-Boot-Users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/u-boot-users
> > 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] AMD MirrorBit FLASH Support?
@ 2003-05-01 15:43 Brad Kemp
  0 siblings, 0 replies; 7+ messages in thread
From: Brad Kemp @ 2003-05-01 15:43 UTC (permalink / raw)
  To: u-boot

Tien
After looking closer at your application, you will need to add support
for 64 bits flash. Search the code for FLASH_CFI_32BIT.
It is mostly used in case statements. Add the appropriate code for
FLASH_CFI_64BIT. There  is one loop that loop you will need to change
The FLASH_CFI_32BIT to FLASH_CFI_64BIT.
Also the cfiword_t and cfiptr_t unions will need the addition of long
longs.
Brad

> -----Original Message-----
> From: Nghiem, Tien [mailto:TNghiem at oerlikon.ca] 
> Sent: Wednesday, April 30, 2003 6:08 PM
> To: Brad Kemp
> Cc: u-boot-users at lists.sourceforge.net
> Subject: RE: [U-Boot-Users] AMD MirrorBit FLASH Support?
> 
> 
> Hi Brad,
> 
> I have a custom board MPC8260 that uses the flash width 64 
> bits with 4 chips (28F640J3) as it describes in the 
> application note Intel 292263-002. Do you think that I can 
> use the flash driver ppmc8260/strataflash.c directly without 
> modification?
> 
> Thank you
> 
> Tien Nghiem
> 
> -----Original Message-----
> From: Brad Kemp [mailto:Brad.Kemp at Seranoa.com]
> Sent: Friday, April 25, 2003 11:01 AM
> To: tguilliams at sbs.com; Frederic Soulier
> Cc: u-boot-users at lists.sourceforge.net
> Subject: RE: [U-Boot-Users] AMD MirrorBit FLASH Support?
> 
> 
> There is CFI support for the Intel command set in 
> ppmc8260/strataflash.c
> and esd/cpic440/strataflash.c. 
> This driver correctly sizes the flash width and number of chips. 
> What is missing is an abstraction to support multiple command sets.
> Brad
> 
> 
> > -----Original Message-----
> > From: Tom Guilliams [mailto:tguilliams at sbs.com] 
> > Sent: Thursday, April 24, 2003 4:38 PM
> > To: Frederic Soulier
> > Cc: u-boot-users at lists.sourceforge.net
> > Subject: Re: [U-Boot-Users] AMD MirrorBit FLASH Support?
> > 
> > 
> > 
> > Thanks for the reply Frederic.
> > 
> > On Tue, 2003-04-22 at 01:12, Frederic Soulier wrote:
> > > If you want full support for Mirrorbit flashes in U-Boot, 
> > you have simply to
> > > code the write buffering feature.
> > > I do not use this, so standard AMD/Fujitsu/ST code is 
> > working fine for me.
> > > 
> > 
> > We're finding a bit more to it than that.  The algorithms for 
> > operations
> > on the MirrorBit have changed a bit from other AMD chips.  Some
> > operations rely upon toggle bits, different command 
> definitions.  The
> > "correct" error-checking is what's really effected.  I was 
> porting the
> > StrataFlash driver for the PPMC8260 board because we have 
> > some versions
> > of our board with StrataFlash and some AMD MirrorBit as well as the
> > driver implements the CFI interface.
> > 
> > My plan is to have a strataflash/mirrorbit driver with 
> buffer writing
> > support.  I just need to finish it up and submit it to 
> > Wolfgang.  As our
> > board support grows, I'm adding upon this driver for other chipset
> > support.  At some point, it would be nice to have a flash 
> driver with
> > CFI for all chips that support it.
> > 
> > Tom
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > U-Boot-Users mailing list
> > U-Boot-Users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/u-boot-users
> > 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-05-01 15:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-21 23:22 [U-Boot-Users] AMD MirrorBit FLASH Support? Tom Guilliams
2003-04-21 23:38 ` Wolfgang Denk
     [not found] ` <008201c308a6$e4453500$9900010a@aztec.local>
2003-04-24 20:37   ` Tom Guilliams
  -- strict thread matches above, loose matches on Subject: below --
2003-04-25 15:00 Brad Kemp
2003-05-01 13:02 Nghiem, Tien
2003-05-01 15:33 Brad Kemp
2003-05-01 15:43 Brad Kemp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox