diff options
author | Eric Benard <eric@eukrea.com> | 2009-10-22 16:46:13 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-12-03 10:46:13 +0100 |
commit | c24fa6b117c3623d5909f6bf61806ee2313c216f (patch) | |
tree | 666d1cd197d1c40e864ab2fb33693fd0a05fcb6f /board | |
parent | bf33c6976424dbaed6a92407e397e77080a8d0c4 (diff) | |
download | barebox-c24fa6b117c3623d5909f6bf61806ee2313c216f.tar.gz barebox-c24fa6b117c3623d5909f6bf61806ee2313c216f.tar.xz |
Eukrea CPUIMX27 : add NOR flash size configuration
64MB strataflash consist in 2x256Mb flashs. So we must declare
2 cfi_flash in order to have both 256Mb flash geometry properly
detected. For flash <= 32 MB we prefer not to register the second
cfi_flash which would be an alias of the first one.
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/eukrea_cpuimx27/eukrea_cpuimx27.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/board/eukrea_cpuimx27/eukrea_cpuimx27.c b/board/eukrea_cpuimx27/eukrea_cpuimx27.c index 148a4fbe97..d1b9046d71 100644 --- a/board/eukrea_cpuimx27/eukrea_cpuimx27.c +++ b/board/eukrea_cpuimx27/eukrea_cpuimx27.c @@ -44,8 +44,15 @@ static struct device_d cfi_dev = { .name = "cfi_flash", .map_base = 0xC0000000, - .size = 64 * 1024 * 1024, + .size = 32 * 1024 * 1024, }; +#ifdef CONFIG_EUKREA_CPUIMX27_NOR_64MB +static struct device_d cfi_dev1 = { + .name = "cfi_flash", + .map_base = 0xC2000000, + .size = 32 * 1024 * 1024, +}; +#endif static struct memory_platform_data ram_pdata = { .name = "ram0", @@ -133,6 +140,9 @@ static int eukrea_cpuimx27_devices_init(void) imx_gpio_mode(mode[i]); register_device(&cfi_dev); +#ifdef CONFIG_EUKREA_CPUIMX27_NOR_64MB + register_device(&cfi_dev1); +#endif register_device(&nand_dev); register_device(&sdram_dev); |