summaryrefslogtreecommitdiff
path: root/include/configs/mx6sx_arm2.h
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-03-26 11:24:45 +0800
committerPeng Fan <Peng.Fan@freescale.com>2015-04-29 15:03:08 +0800
commit681e44167e6fa66170afb5bb4dfdca53d87592af (patch)
tree4222ad1e5c59460dab3159b6be2e56308986ae97 /include/configs/mx6sx_arm2.h
parent238c150952cffc0c99b30210547c5be1d79478fd (diff)
downloadu-boot-imx-681e44167e6fa66170afb5bb4dfdca53d87592af.zip
u-boot-imx-681e44167e6fa66170afb5bb4dfdca53d87592af.tar.gz
u-boot-imx-681e44167e6fa66170afb5bb4dfdca53d87592af.tar.bz2
MLK-10467 mtd:spi Add ATMEL AT45DB021E support
This patch is to add atmel AT45DB021E spi flash support. Since this flash is different from the spi flash that we previous use such as m25p32 and spanion spi nor flashes, pieces of code are added. 1. The default page size is 264 bytes, but the mtd/spi framework can not handle such page. So we need to configure the page size from 264 to 256 bytes. Page Size command seq “Power of 2” binary page size (256 bytes)| 3Dh 2Ah 80h A6h DataFlash page size (264 bytes) | 3Dh 2Ah 80h A7h And when probe the flash, configure the flash to 256 bytes page size, if the page size is already 256bytes, just return and do not configure it again. The page size configuration times is only about 10000, so to avoid configuring it each time. 2. Add the flash params in sf_params.c. 3. This flash support 2K block erase, add this flag. 4. The status command is 0xD7, different from others. It's polling status bit is Bit 7 -> 0 Device is busy with an internal operation. -> 1 Device is ready. This patch has been tested on mx7d 19x19 ddr3 arm2 board. And tested on mx7d 12x12 lpddr3 board. All works fine. Note: Since this flash is only 256KB, we can not test spi boot on mx7d 19x19 arm2 board. If want to test this flash, open CONFIG_SYS_USE_SPINOR. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> (cherry picked from commit 9b6ac1f82b09d243dc674c780abcacf0e12262c2) Conflicts: drivers/mtd/spi/sf_internal.h drivers/mtd/spi/sf_params.c drivers/mtd/spi/sf_probe.c include/spi_flash.h Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'include/configs/mx6sx_arm2.h')
0 files changed, 0 insertions, 0 deletions