diff options
Diffstat (limited to 'arch/arm/mach-at91/board-sam9rlek.c')
| -rw-r--r-- | arch/arm/mach-at91/board-sam9rlek.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c index 4f14b54b93a8..b2b748239f36 100644 --- a/arch/arm/mach-at91/board-sam9rlek.c +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
| 11 | #include <linux/gpio.h> | ||
| 11 | #include <linux/init.h> | 12 | #include <linux/init.h> |
| 12 | #include <linux/mm.h> | 13 | #include <linux/mm.h> |
| 13 | #include <linux/module.h> | 14 | #include <linux/module.h> |
| @@ -30,7 +31,6 @@ | |||
| 30 | 31 | ||
| 31 | #include <mach/hardware.h> | 32 | #include <mach/hardware.h> |
| 32 | #include <mach/board.h> | 33 | #include <mach/board.h> |
| 33 | #include <mach/gpio.h> | ||
| 34 | #include <mach/at91sam9_smc.h> | 34 | #include <mach/at91sam9_smc.h> |
| 35 | #include <mach/at91_shdwc.h> | 35 | #include <mach/at91_shdwc.h> |
| 36 | 36 | ||
| @@ -88,19 +88,14 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
| 88 | }, | 88 | }, |
| 89 | }; | 89 | }; |
| 90 | 90 | ||
| 91 | static struct mtd_partition * __init nand_partitions(int size, int *num_partitions) | ||
| 92 | { | ||
| 93 | *num_partitions = ARRAY_SIZE(ek_nand_partition); | ||
| 94 | return ek_nand_partition; | ||
| 95 | } | ||
| 96 | |||
| 97 | static struct atmel_nand_data __initdata ek_nand_data = { | 91 | static struct atmel_nand_data __initdata ek_nand_data = { |
| 98 | .ale = 21, | 92 | .ale = 21, |
| 99 | .cle = 22, | 93 | .cle = 22, |
| 100 | // .det_pin = ... not connected | 94 | // .det_pin = ... not connected |
| 101 | .rdy_pin = AT91_PIN_PD17, | 95 | .rdy_pin = AT91_PIN_PD17, |
| 102 | .enable_pin = AT91_PIN_PB6, | 96 | .enable_pin = AT91_PIN_PB6, |
| 103 | .partition_info = nand_partitions, | 97 | .parts = ek_nand_partition, |
| 98 | .num_parts = ARRAY_SIZE(ek_nand_partition), | ||
| 104 | }; | 99 | }; |
| 105 | 100 | ||
| 106 | static struct sam9_smc_config __initdata ek_nand_smc_config = { | 101 | static struct sam9_smc_config __initdata ek_nand_smc_config = { |
