64 bit bus access on a customed MPC8245 board
Hi,
I'm working on a customed MPC8245 board with flash chip Am29LV320 and trying to enable MTD driver support.
The configuration is 32 bit bus width in each chip with 2 chips interleaved. So CONFIG_MTD_CFI_B8 and CONFIG_MTD_CFI_I2 are defined.
MPC8245 requires the following memory mapping:
bank 0: 0xFF800000 - 0xFFFFFFFF
bank 1: 0xFF000000 - 0xFF7FFFFF
I noticed that FPU must be enabled for 64-bit read/write from/to flash.
I use read64() and write64() functions in the attachment, which are copied from sbc8240.c. However no chip can be found. Any suggestions? Thank you very much.
The message is shown below.
mpc8245:Probing 0x00800000 at 0xff800000 mpc8245_write64 adr 0xff800000 data 0x000000f0000000f0 mpc8245_write64 adr 0xff8002a8 data 0x0000009800000098 mpc8245_read64 ofs 0xff800080 result 0xffffffffffffffff
CFI: Found no mpc8245 Flash Bank #0 device at location zero
mpc8245:Probing 0x00800000 at 0xff000000 mpc8245_write64 adr 0xff000000 data 0x000000f0000000f0 mpc8245_write64 adr 0xff0002a8 data 0x0000009800000098 mpc8245_read64 ofs 0xff000080 result 0xffffffffffffffff
CFI: Found no MPC8245 Flash Bank #1 device at location zero
mpc8245:No suppported flash chips found!
-Shawn.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
Quoted 5 lines · Shawn Jin
Hi,
I'm working on a customed MPC8245 board with flash chip Am29LV320 and trying to enable MTD driver support.
The MPC8245 is an embedded ppc processor.
??
I looked and I can't find documentation for that chip. Is it an atmel one?
Chips with similar part numbers are 8 bit flash. Atmel does make a few 16bit flash parts. And I don't know if Atmel does cfi? You may need jedec_probe.
Quoted 3 lines
The configuration is 32 bit bus width in each chip with 2 chips interleaved. So
CONFIG_MTD_CFI_B8andCONFIG_MTD_CFI_I2are defined.
Ok so you have configured it for 2 8bit chips that are interleaved to form a 16bit path.
Quoted 6 lines
MPC8245 requires the following memory mapping:
bank 0:0xFF800000-0xFFFFFFFF
bank 1:0xFF000000-0xFF7FFFFFI noticed that FPU must be enabled for 64-bit read/write from/to flash.
But that is not even interesting if you are only 16bits wide.
Quoted 4 lines
I use
read64()andwrite64()functions in the attachment, which are copied fromsbc8240.c. However no chip can be found. Any suggestions? Thank you very much.
I suggest you focus on read16()/write16().
Eric
Quoted 7 lines · Eric W. Biederman
Quoted 3 lines · Shawn Jin
I'm working on a customed MPC8245 board with flash chip Am29LV320 and trying to enable MTD driver support.
I looked and I can't find documentation for that chip. Is it an atmel one?
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/26518.pdf
It's 16-bit, CFI-compliant, and (obviously) AMD command set.
Quoted 3 lines
Quoted 3 lines
The configuration is 32 bit bus width in each chip with 2 chips interleaved. So
CONFIG_MTD_CFI_B8andCONFIG_MTD_CFI_I2are defined.
Not possible. Refer back to your documentation. The chip is not capable of 32-bit operation. You probably mean 16*2, which means you want to enable CFI_B4 and CFI_I2. But it would be better just to turn off the advanced options and let it work it out for itself.
Quoted 2 lines
Ok so you have configured it for 2 8bit chips that are interleaved to form a 16bit path.
B8 is 8-byte, not 8-bit. It's buswidth. He configured it to 2 32-bit chips in a 64-bit path, which isn't correct.
Signature · 1 line
dwmw2
Quoted 10 lines
Quoted 1 line
Quoted 1 line
I'm working on a customed MPC8245 board with
flash
Quoted 4 lines
Quoted 2 lines
chip Am29LV320 and trying to enable MTD driver
support.I looked and I can't find documentation for that
chip.
Quoted 1 line
Is it an atmel one?
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/26518.pdf
Quoted 3 lines
It's 16-bit, CFI-compliant, and (obviously) AMD
command set.
Sorry for this mistake. I mean Am29PL320D, which is here
(http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/24075.pdf).
And it's 32-bit, CFI-complaint.
-Shawn.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
Quoted 10 lines
Quoted 1 line
Quoted 1 line
I'm working on a customed MPC8245 board with
flash
Quoted 4 lines
Quoted 2 lines
chip Am29LV320 and trying to enable MTD driver
support.I looked and I can't find documentation for that
chip.
Quoted 1 line
Is it an atmel one?
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/26518.pdf
Quoted 4 lines
It's 16-bit, CFI-compliant, and (obviously) AMD
command set.
Further clarification: It's Am29PL320D, which is
configured to 32-bit mode.
Thank you very much,
-Shawn.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/