diff options
Diffstat (limited to 'arch/avr32/boards/atstk1000/atstk1002.c')
-rw-r--r-- | arch/avr32/boards/atstk1000/atstk1002.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c index 3787d6bfe0d7..bca815ff11f2 100644 --- a/arch/avr32/boards/atstk1000/atstk1002.c +++ b/arch/avr32/boards/atstk1000/atstk1002.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/setup.h> | 19 | #include <asm/setup.h> |
20 | #include <asm/arch/board.h> | 20 | #include <asm/arch/board.h> |
21 | #include <asm/arch/init.h> | 21 | #include <asm/arch/init.h> |
22 | #include <asm/arch/portmux.h> | ||
22 | 23 | ||
23 | 24 | ||
24 | #define SW2_DEFAULT /* MMCI and UART_A available */ | 25 | #define SW2_DEFAULT /* MMCI and UART_A available */ |
@@ -102,6 +103,28 @@ void __init setup_board(void) | |||
102 | 103 | ||
103 | static int __init atstk1002_init(void) | 104 | static int __init atstk1002_init(void) |
104 | { | 105 | { |
106 | /* | ||
107 | * ATSTK1000 uses 32-bit SDRAM interface. Reserve the | ||
108 | * SDRAM-specific pins so that nobody messes with them. | ||
109 | */ | ||
110 | at32_reserve_pin(GPIO_PIN_PE(0)); /* DATA[16] */ | ||
111 | at32_reserve_pin(GPIO_PIN_PE(1)); /* DATA[17] */ | ||
112 | at32_reserve_pin(GPIO_PIN_PE(2)); /* DATA[18] */ | ||
113 | at32_reserve_pin(GPIO_PIN_PE(3)); /* DATA[19] */ | ||
114 | at32_reserve_pin(GPIO_PIN_PE(4)); /* DATA[20] */ | ||
115 | at32_reserve_pin(GPIO_PIN_PE(5)); /* DATA[21] */ | ||
116 | at32_reserve_pin(GPIO_PIN_PE(6)); /* DATA[22] */ | ||
117 | at32_reserve_pin(GPIO_PIN_PE(7)); /* DATA[23] */ | ||
118 | at32_reserve_pin(GPIO_PIN_PE(8)); /* DATA[24] */ | ||
119 | at32_reserve_pin(GPIO_PIN_PE(9)); /* DATA[25] */ | ||
120 | at32_reserve_pin(GPIO_PIN_PE(10)); /* DATA[26] */ | ||
121 | at32_reserve_pin(GPIO_PIN_PE(11)); /* DATA[27] */ | ||
122 | at32_reserve_pin(GPIO_PIN_PE(12)); /* DATA[28] */ | ||
123 | at32_reserve_pin(GPIO_PIN_PE(13)); /* DATA[29] */ | ||
124 | at32_reserve_pin(GPIO_PIN_PE(14)); /* DATA[30] */ | ||
125 | at32_reserve_pin(GPIO_PIN_PE(15)); /* DATA[31] */ | ||
126 | at32_reserve_pin(GPIO_PIN_PE(26)); /* SDCS */ | ||
127 | |||
105 | at32_add_system_devices(); | 128 | at32_add_system_devices(); |
106 | 129 | ||
107 | #ifdef SW2_DEFAULT | 130 | #ifdef SW2_DEFAULT |