diff options
author | Juergen Beisert <juergen@kreuzholzen.de> | 2011-03-12 20:14:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-03-14 12:11:19 +0100 |
commit | e0965c4d5607429141ee4c0d6685878f8526117e (patch) | |
tree | febac5bc87e79803a0b59868f710b3fa758e2d0e /arch/arm/boards/a9m2410 | |
parent | a1dd9be4d18119808092b4df682abe849f0605ad (diff) | |
download | barebox-e0965c4d5607429141ee4c0d6685878f8526117e.tar.gz barebox-e0965c4d5607429141ee4c0d6685878f8526117e.tar.xz |
S3C24xx/NFC: Consider correct NAND page size for boot.
When booting from NAND, its important to know the correct page size. When
the NAND is used as the boot source, four dedicated pins are used to configure
the correct page size and address cycles. These pins can be read back in one
of the NFC registers to parametrize the load function.
This patch also extends the read routine to support more than four address
cycles on demand.
BTW: At least some mini2440s are misconfigured to use five address cycles for
a NAND device that is known to need only four address cycles. In this case the
vendor is at our side: This NAND simply ignores any additional address cycles
than required.
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/a9m2410')
-rw-r--r-- | arch/arm/boards/a9m2410/a9m2410.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/a9m2410/a9m2410.c b/arch/arm/boards/a9m2410/a9m2410.c index 57d8fa39fd..8cbaec59e3 100644 --- a/arch/arm/boards/a9m2410/a9m2410.c +++ b/arch/arm/boards/a9m2410/a9m2410.c @@ -176,7 +176,7 @@ device_initcall(a9m2410_devices_init); #ifdef CONFIG_S3C24XX_NAND_BOOT void __bare_init nand_boot(void) { - s3c24x0_nand_load_image((void *)TEXT_BASE, 256 * 1024, 0, 512); + s3c24x0_nand_load_image((void *)TEXT_BASE, 256 * 1024, 0); } #endif |