diff options
Diffstat (limited to 'arch/arm/mach-at91/board-usb-a926x.c')
-rw-r--r-- | arch/arm/mach-at91/board-usb-a926x.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/arm/mach-at91/board-usb-a926x.c b/arch/arm/mach-at91/board-usb-a926x.c index 3d84233f78eb..26c36fc2d1e5 100644 --- a/arch/arm/mach-at91/board-usb-a926x.c +++ b/arch/arm/mach-at91/board-usb-a926x.c | |||
@@ -66,6 +66,8 @@ static void __init ek_init_early(void) | |||
66 | */ | 66 | */ |
67 | static struct at91_usbh_data __initdata ek_usbh_data = { | 67 | static struct at91_usbh_data __initdata ek_usbh_data = { |
68 | .ports = 2, | 68 | .ports = 2, |
69 | .vbus_pin = {-EINVAL, -EINVAL}, | ||
70 | .overcurrent_pin= {-EINVAL, -EINVAL}, | ||
69 | }; | 71 | }; |
70 | 72 | ||
71 | /* | 73 | /* |
@@ -73,7 +75,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = { | |||
73 | */ | 75 | */ |
74 | static struct at91_udc_data __initdata ek_udc_data = { | 76 | static struct at91_udc_data __initdata ek_udc_data = { |
75 | .vbus_pin = AT91_PIN_PB11, | 77 | .vbus_pin = AT91_PIN_PB11, |
76 | .pullup_pin = 0, /* pull-up driven by UDC */ | 78 | .pullup_pin = -EINVAL, /* pull-up driven by UDC */ |
77 | }; | 79 | }; |
78 | 80 | ||
79 | static void __init ek_add_device_udc(void) | 81 | static void __init ek_add_device_udc(void) |
@@ -193,7 +195,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
193 | static struct atmel_nand_data __initdata ek_nand_data = { | 195 | static struct atmel_nand_data __initdata ek_nand_data = { |
194 | .ale = 21, | 196 | .ale = 21, |
195 | .cle = 22, | 197 | .cle = 22, |
196 | // .det_pin = ... not connected | 198 | .det_pin = -EINVAL, |
197 | .rdy_pin = AT91_PIN_PA22, | 199 | .rdy_pin = AT91_PIN_PA22, |
198 | .enable_pin = AT91_PIN_PD15, | 200 | .enable_pin = AT91_PIN_PD15, |
199 | .parts = ek_nand_partition, | 201 | .parts = ek_nand_partition, |
@@ -245,9 +247,9 @@ static void __init ek_add_device_nand(void) | |||
245 | 247 | ||
246 | /* configure chip-select 3 (NAND) */ | 248 | /* configure chip-select 3 (NAND) */ |
247 | if (machine_is_usb_a9g20()) | 249 | if (machine_is_usb_a9g20()) |
248 | sam9_smc_configure(3, &usb_a9g20_nand_smc_config); | 250 | sam9_smc_configure(0, 3, &usb_a9g20_nand_smc_config); |
249 | else | 251 | else |
250 | sam9_smc_configure(3, &usb_a9260_nand_smc_config); | 252 | sam9_smc_configure(0, 3, &usb_a9260_nand_smc_config); |
251 | 253 | ||
252 | at91_add_device_nand(&ek_nand_data); | 254 | at91_add_device_nand(&ek_nand_data); |
253 | } | 255 | } |
@@ -344,7 +346,7 @@ static void __init ek_board_init(void) | |||
344 | /* I2C */ | 346 | /* I2C */ |
345 | at91_add_device_i2c(NULL, 0); | 347 | at91_add_device_i2c(NULL, 0); |
346 | /* shutdown controller, wakeup button (5 msec low) */ | 348 | /* shutdown controller, wakeup button (5 msec low) */ |
347 | at91_sys_write(AT91_SHDW_MR, AT91_SHDW_CPTWK0_(10) | 349 | at91_shdwc_write(AT91_SHDW_MR, AT91_SHDW_CPTWK0_(10) |
348 | | AT91_SHDW_WKMODE0_LOW | 350 | | AT91_SHDW_WKMODE0_LOW |
349 | | AT91_SHDW_RTTWKEN); | 351 | | AT91_SHDW_RTTWKEN); |
350 | } | 352 | } |