Skip to contentSkip to conversation

cfi_flash support for 8 bit port width S29GL032M

U-Boot-Users Alexandre BASTOS 2 participants 2 messages Apr 18, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I am currently working in a custom board based on MPC8272ADS but with some differences.

One of those is Flash chip/configuration used. I am using a Spansion S29GL032M CFI Flash chip in BYTE# (8bit) mode.

I have tested the drivers/cfi_flash.c, which is OK for reading, but it is not working for unlock/erase/write. Maybe due to command address definitions, which, according to Datasheet, are for 16 bit configurations. For example:

16 bit (already in driver)

#define AMD_ADDR_ERASE_START 0x555
#define AMD_ADDR_START 0x555
#define AMD_ADDR_ACK 0x2AA

8 bit (should be?)

#define AMD_ADDR_ERASE_START    0xAAA
#define AMD_ADDR_START          0xAAA
#define AMD_ADDR_ACK            0x555

So, my question is ... Is the S29GL032M (or AMD equivalent AM29LV320M) already supported in byte mode for any board in u-boot?.
I have been testing some of the drivers, but I still couldn't find a working solution for my board.

If not ... is there already any work done for this purpouse? Any hint?

Thanks,

Alex Bastos

#1 lore raw
Quoted 4 lines

So, my question is ... Is the S29GL032M (or AMD equivalent AM29LV320M) already supported in byte mode for any board in u-boot?.
I have been testing some of the drivers, but I still couldn't find a working solution for my board.

I think there isn't a flash driver for S29GL032M in BYTE-Mode, so you have to write your own driver.
Be careful, because the AMD AM29LV320M supports a BYTE-Programm mode, to write a single byte into flash. This mode is used in many (AMD) flash drivers in U-Boot. The S29GL032M doesn't support this mode, so you have to use write buffer programming if your Flash is in X8 (BYTE) mode.

Best regards Sebastian