summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator
diff options
context:
space:
mode:
authorPo-Yu Chuang <ratbert@faraday-tech.com>2009-07-10 18:03:57 +0800
committerStefan Roese <sr@denx.de>2009-07-13 11:01:31 +0200
commitb4db4a7638ef90cf0aacf7b954d9bf3043dda780 (patch)
treea2f267922138e800b5caae8e854de47080c56821 /drivers/bios_emulator
parent3672cd5c3b53d219d33345eebad4e25ad5bf6d52 (diff)
downloadu-boot-imx-b4db4a7638ef90cf0aacf7b954d9bf3043dda780.zip
u-boot-imx-b4db4a7638ef90cf0aacf7b954d9bf3043dda780.tar.gz
u-boot-imx-b4db4a7638ef90cf0aacf7b954d9bf3043dda780.tar.bz2
issue write command to base for JEDEC flash
For JEDEC flash, we should issue word programming command relative to base address rather than sector base address. Original source makes SST Flash fails to program sectors which are not on the 0x10000 boundaries. e.g. SST39LF040 uses addr1=0x5555 and addr2=0x2AAA, however, each sector is 0x1000 bytes. Thus, if we issue command to "sector base (0x41000) + offset(0x5555)", it sends to 0x46555 and the chip fails to recognize that address. This patch is tested with SST39LF040. Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/bios_emulator')
0 files changed, 0 insertions, 0 deletions