u-boot/drivers/mtd
Becky Bruce 09ce9921a7 flash/cfi_flash: Use virtual sector start address, not phys
include/flash.h was commented to say that the address in
flash_info->start was a physical address.  However, from u-boot's
point of view, and looking at most flash code, it makes more
sense for this to be a virtual address.  So I corrected the
comment to indicate that this was a virtual address.

The only flash driver that was actually treating the address
as physical was the mtd/cfi_flash driver.  However, this code
was using it inconsistently as it actually directly dereferenced
the "start" element, while it used map_physmem to get a
virtual address in other places.  I changed this driver so
that the code which initializes the info->start field calls
map_physmem to get a virtual address, eliminating the need for
further map_physmem calls.  The code is now consistent.

The *only* place a physical address should be used is when defining the
flash banks list that is used to initialize the flash_info struct,
usually found in the board config file.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Stefan Roese <sr@denx.de>
2009-02-05 11:20:05 +01:00
..
nand Blackfin: add driver for on-chip NAND controller 2009-02-02 12:27:07 -05:00
nand_legacy NAND: rename NAND_MAX_CHIPS to CONFIG_SYS_NAND_MAX_CHIPS 2009-01-23 10:32:51 -06:00
onenand OneNAND: Additional sync with 2.6.27 2009-01-23 10:32:48 -06:00
spi spi flash: fix crash due to spi flash miscommunication 2009-01-24 01:57:40 +01:00
ubi Coding style cleanup, update CHANGELOG. 2008-12-16 01:02:17 +01:00
at45.c drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
cfi_flash.c flash/cfi_flash: Use virtual sector start address, not phys 2009-02-05 11:20:05 +01:00
cfi_mtd.c cfi-mtd: Add cfi-mtd driver. 2008-11-24 11:05:25 +01:00
dataflash.c mtd/dataflash.c: fix a problem with the last partition 2008-12-02 21:53:24 +01:00
jedec_flash.c Added legacy flash ST Micro M29W040B 2009-01-24 01:22:22 +01:00
Makefile Merge branch 'master' of git://git.denx.de/u-boot-ubi 2008-11-25 11:40:57 +01:00
mtdcore.c mtd: Remove a printf() from add_mtd_device(). 2008-11-24 11:29:53 +01:00
mtdpart.c MTD: Fix problem based on non-working relocation (list head mtd_partitions) 2008-12-09 10:07:23 +01:00
mw_eeprom.c Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00