Support for Am29LV2562M NOR flash
Hello,
I am new to MTD so bear with me. I tried getting MTD sources (as of end July) to autodetect Am29LV2562M chip in x32 mode (16M * 32-bit).
This chip contains two Am29LV256M chips (16M * 16-bit). However it seems that it cannot be modelled as two interleaved x16 chips. This is because the data bits are connected as DQ0-7 (chip1), DQ8-15 (chip2), DQ16-23 (chip1) and DQ24-31 (chip2) i.e it alternates between chips for every byte. As far as I understand, two x16 chips interleaved have the configuration DQ0-DQ16 (chip 1), DQ17-31 (chip2). As a consequence, the command sequences I require are of the form 0x0000XXXX instead of 0x00XX00XX (which MTD supports for interleaved flash chips as I verified in another board). XX refers to the data part of the command e.g 98 for CFI query.
I am wondering if I am missing something here. Does MTD support the flash geometry for Am29LV2562M?
Thanks,
Shamile
Signature · 7 lines
Shamile Khan Edgewater Computer Systems, Inc. 1125 Innovation Drive (2nd Floor) Kanata, Ontario, K2K 3G6 Tel: (613) 271-1101 ext. 240 Fax: (613) 271-1152
hi !
I use two Am29LV256M chips in 32 bit mode. 2x 16 bit chips on 32 bit data bus. I map it with physmap and also set phymap_configure in my arch/arm/Board-Tree. My config is this:
# Memory Technology Devices (MTD)
#CONFIG_MTD=yCONFIG_MTD_PARTITIONS=yCONFIG_MTD_REDBOOT_PARTS=yCONFIG_MTD_REDBOOT_PARTS_UNALLOCATED=yCONFIG_MTD_REDBOOT_PARTS_READONLY=y
#
# User Modules And Translation Layers
#CONFIG_MTD_CHAR=yCONFIG_MTD_BLOCK=y
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=y
CONFIG_MTD_GEN_PROBE=yCONFIG_MTD_CFI_ADV_OPTIONS=yCONFIG_MTD_CFI_NOSWAP=yCONFIG_MTD_CFI_GEOMETRY=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_CFI_AMDSTD_RETRY=5CONFIG_MTD_CFI_UTIL=yCONFIG_MTD_RAM=yCONFIG_MTD_ROM=y
#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not setCONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_START=0x10000000CONFIG_MTD_PHYSMAP_LEN=0x4000000CONFIG_MTD_PHYSMAP_BUSWIDTH=4
you also need this patch from
Bug in cfi_cmdset_0002.c in linux-2.6.8.1 from Jochen Karrer
Am Mittwoch, 1. September 2004 02:32 schrieb Shamile Khan:
Quoted 5 lines
Hello,
I am new to MTD so bear with me. I tried getting MTD sources (as of end July) to autodetect Am29LV2562M chip in x32 mode (16M * 32-bit).
Quoted 10 lines
This chip contains two Am29LV256M chips (16M * 16-bit). However it seems that it cannot be modelled as two interleaved x16 chips. This is because the data bits are connected as DQ0-7 (chip1), DQ8-15 (chip2), DQ16-23 (chip1) and DQ24-31 (chip2) i.e it alternates between chips for every byte. As far as I understand, two x16 chips interleaved have the configuration DQ0-DQ16 (chip 1), DQ17-31 (chip2). As a consequence, the command sequences I require are of the form 0x0000XXXX instead of 0x00XX00XX (which MTD supports for interleaved flash chips as I verified in another board). XX refers to the data part of the command e.g 98 for CFI query.
on my board:
0x00XX00XX --> with interleave 2 it doese that on my board. on my board DQ0-15 is on the first chip and 16-31on the second chip. when you have another configuration maybe you have to do changes in cfi.h where the command is generated, where shifting the command is done. maybe also the two unlock codes have to be changed for your configuration.
Quoted 2 lines
I am wondering if I am missing something here. Does MTD support the flash geometry for Am29LV2562M?
jffs2 runs.
hope it helps...
regards manfred