64 bit bus access on a customed MPC8245 board

Shawn Jin shawnxtech at yahoo.com
Tue Jan 27 22:47:34 EST 2004


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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flash.c
Type: application/octet-stream
Size: 1782 bytes
Desc: flash.c
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20040127/a8ffa270/attachment.obj 


More information about the linux-mtd mailing list