diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-04-02 21:44:44 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-04 09:52:20 +0100 |
commit | d7a2415f7a48ce4fc16cc769f96d0df818648837 (patch) | |
tree | bda7fbcc179840009f365a7416fe83f53a739110 /arch/arm/mach-at91/at91cap9_devices.c | |
parent | 3ef2fb426775fc2ae19b70c318dbdf4a0aeeced7 (diff) | |
download | kernel_samsung_aries-d7a2415f7a48ce4fc16cc769f96d0df818648837.zip kernel_samsung_aries-d7a2415f7a48ce4fc16cc769f96d0df818648837.tar.gz kernel_samsung_aries-d7a2415f7a48ce4fc16cc769f96d0df818648837.tar.bz2 |
[ARM] 4904/1: [AT91] Pass ECC controller to NAND driver
On AT91 processors that include an ECC controller, pass its base
address to the NAND driver via platform_device resources.
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/at91cap9_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91cap9_devices.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91cap9_devices.c b/arch/arm/mach-at91/at91cap9_devices.c index 0c341a4..10f15f3 100644 --- a/arch/arm/mach-at91/at91cap9_devices.c +++ b/arch/arm/mach-at91/at91cap9_devices.c @@ -283,10 +283,15 @@ static struct at91_nand_data nand_data; #define NAND_BASE AT91_CHIPSELECT_3 static struct resource nand_resources[] = { - { + [0] = { .start = NAND_BASE, .end = NAND_BASE + SZ_256M - 1, .flags = IORESOURCE_MEM, + }, + [1] = { + .start = AT91_BASE_SYS + AT91_ECC, + .end = AT91_BASE_SYS + AT91_ECC + SZ_512 - 1, + .flags = IORESOURCE_MEM, } }; |