Commit 63b4c296 authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD Committed by Arnd Bergmann

ARM: at91/boards: use -EINVAL for invalid gpio

this will allow to use gpio_is_valid
Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
parent 1a2d9156
...@@ -70,6 +70,8 @@ static struct macb_platform_data __initdata onearm_eth_data = { ...@@ -70,6 +70,8 @@ static struct macb_platform_data __initdata onearm_eth_data = {
static struct at91_usbh_data __initdata onearm_usbh_data = { static struct at91_usbh_data __initdata onearm_usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata onearm_udc_data = { static struct at91_udc_data __initdata onearm_udc_data = {
......
...@@ -75,6 +75,8 @@ static void __init afeb9260_init_early(void) ...@@ -75,6 +75,8 @@ static void __init afeb9260_init_early(void)
*/ */
static struct at91_usbh_data __initdata afeb9260_usbh_data = { static struct at91_usbh_data __initdata afeb9260_usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -82,7 +84,7 @@ static struct at91_usbh_data __initdata afeb9260_usbh_data = { ...@@ -82,7 +84,7 @@ static struct at91_usbh_data __initdata afeb9260_usbh_data = {
*/ */
static struct at91_udc_data __initdata afeb9260_udc_data = { static struct at91_udc_data __initdata afeb9260_udc_data = {
.vbus_pin = AT91_PIN_PC5, .vbus_pin = AT91_PIN_PC5,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
...@@ -138,6 +140,7 @@ static struct atmel_nand_data __initdata afeb9260_nand_data = { ...@@ -138,6 +140,7 @@ static struct atmel_nand_data __initdata afeb9260_nand_data = {
.bus_width_16 = 0, .bus_width_16 = 0,
.parts = afeb9260_nand_partition, .parts = afeb9260_nand_partition,
.num_parts = ARRAY_SIZE(afeb9260_nand_partition), .num_parts = ARRAY_SIZE(afeb9260_nand_partition),
.det_pin = -EINVAL,
}; };
...@@ -149,6 +152,7 @@ static struct at91_mmc_data __initdata afeb9260_mmc_data = { ...@@ -149,6 +152,7 @@ static struct at91_mmc_data __initdata afeb9260_mmc_data = {
.wp_pin = AT91_PIN_PC4, .wp_pin = AT91_PIN_PC4,
.slot_b = 1, .slot_b = 1,
.wire4 = 1, .wire4 = 1,
.vcc_pin = -EINVAL,
}; };
...@@ -169,6 +173,8 @@ static struct i2c_board_info __initdata afeb9260_i2c_devices[] = { ...@@ -169,6 +173,8 @@ static struct i2c_board_info __initdata afeb9260_i2c_devices[] = {
static struct at91_cf_data afeb9260_cf_data = { static struct at91_cf_data afeb9260_cf_data = {
.chipselect = 4, .chipselect = 4,
.irq_pin = AT91_PIN_PA6, .irq_pin = AT91_PIN_PA6,
.det_pin = -EINVAL,
.vcc_pin = -EINVAL,
.rst_pin = AT91_PIN_PA7, .rst_pin = AT91_PIN_PA7,
.flags = AT91_CF_TRUE_IDE, .flags = AT91_CF_TRUE_IDE,
}; };
......
...@@ -62,6 +62,8 @@ static void __init cam60_init_early(void) ...@@ -62,6 +62,8 @@ static void __init cam60_init_early(void)
*/ */
static struct at91_usbh_data __initdata cam60_usbh_data = { static struct at91_usbh_data __initdata cam60_usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
...@@ -135,7 +137,7 @@ static struct mtd_partition __initdata cam60_nand_partition[] = { ...@@ -135,7 +137,7 @@ static struct mtd_partition __initdata cam60_nand_partition[] = {
static struct atmel_nand_data __initdata cam60_nand_data = { static struct atmel_nand_data __initdata cam60_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
// .det_pin = ... not there .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PA9, .rdy_pin = AT91_PIN_PA9,
.enable_pin = AT91_PIN_PA7, .enable_pin = AT91_PIN_PA7,
.parts = cam60_nand_partition, .parts = cam60_nand_partition,
......
...@@ -70,6 +70,8 @@ static void __init cap9adk_init_early(void) ...@@ -70,6 +70,8 @@ static void __init cap9adk_init_early(void)
*/ */
static struct at91_usbh_data __initdata cap9adk_usbh_data = { static struct at91_usbh_data __initdata cap9adk_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -144,9 +146,9 @@ static struct spi_board_info cap9adk_spi_devices[] = { ...@@ -144,9 +146,9 @@ static struct spi_board_info cap9adk_spi_devices[] = {
*/ */
static struct at91_mmc_data __initdata cap9adk_mmc_data = { static struct at91_mmc_data __initdata cap9adk_mmc_data = {
.wire4 = 1, .wire4 = 1,
// .det_pin = ... not connected .det_pin = -EINVAL,
// .wp_pin = ... not connected .wp_pin = -EINVAL,
// .vcc_pin = ... not connected .vcc_pin = -EINVAL,
}; };
...@@ -154,6 +156,7 @@ static struct at91_mmc_data __initdata cap9adk_mmc_data = { ...@@ -154,6 +156,7 @@ static struct at91_mmc_data __initdata cap9adk_mmc_data = {
* MACB Ethernet device * MACB Ethernet device
*/ */
static struct macb_platform_data __initdata cap9adk_macb_data = { static struct macb_platform_data __initdata cap9adk_macb_data = {
.phy_irq_pin = -EINVAL,
.is_rmii = 1, .is_rmii = 1,
}; };
...@@ -172,8 +175,8 @@ static struct mtd_partition __initdata cap9adk_nand_partitions[] = { ...@@ -172,8 +175,8 @@ static struct mtd_partition __initdata cap9adk_nand_partitions[] = {
static struct atmel_nand_data __initdata cap9adk_nand_data = { static struct atmel_nand_data __initdata cap9adk_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
// .det_pin = ... not connected .det_pin = -EINVAL,
// .rdy_pin = ... not connected .rdy_pin = -EINVAL,
.enable_pin = AT91_PIN_PD15, .enable_pin = AT91_PIN_PD15,
.parts = cap9adk_nand_partitions, .parts = cap9adk_nand_partitions,
.num_parts = ARRAY_SIZE(cap9adk_nand_partitions), .num_parts = ARRAY_SIZE(cap9adk_nand_partitions),
...@@ -351,7 +354,7 @@ static struct atmel_lcdfb_info __initdata cap9adk_lcdc_data; ...@@ -351,7 +354,7 @@ static struct atmel_lcdfb_info __initdata cap9adk_lcdc_data;
* AC97 * AC97
*/ */
static struct ac97c_platform_data cap9adk_ac97_data = { static struct ac97c_platform_data cap9adk_ac97_data = {
// .reset_pin = ... not connected .reset_pin = -EINVAL,
}; };
......
...@@ -64,6 +64,8 @@ static struct macb_platform_data __initdata carmeva_eth_data = { ...@@ -64,6 +64,8 @@ static struct macb_platform_data __initdata carmeva_eth_data = {
static struct at91_usbh_data __initdata carmeva_usbh_data = { static struct at91_usbh_data __initdata carmeva_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata carmeva_udc_data = { static struct at91_udc_data __initdata carmeva_udc_data = {
...@@ -75,8 +77,8 @@ static struct at91_udc_data __initdata carmeva_udc_data = { ...@@ -75,8 +77,8 @@ static struct at91_udc_data __initdata carmeva_udc_data = {
// static struct at91_cf_data __initdata carmeva_cf_data = { // static struct at91_cf_data __initdata carmeva_cf_data = {
// .det_pin = AT91_PIN_PB0, // .det_pin = AT91_PIN_PB0,
// .rst_pin = AT91_PIN_PC5, // .rst_pin = AT91_PIN_PC5,
// .irq_pin = ... not connected // .irq_pin = -EINVAL,
// .vcc_pin = ... always powered // .vcc_pin = -EINVAL,
// }; // };
static struct at91_mmc_data __initdata carmeva_mmc_data = { static struct at91_mmc_data __initdata carmeva_mmc_data = {
...@@ -84,6 +86,7 @@ static struct at91_mmc_data __initdata carmeva_mmc_data = { ...@@ -84,6 +86,7 @@ static struct at91_mmc_data __initdata carmeva_mmc_data = {
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PB10, .det_pin = AT91_PIN_PB10,
.wp_pin = AT91_PIN_PC14, .wp_pin = AT91_PIN_PC14,
.vcc_pin = -EINVAL,
}; };
static struct spi_board_info carmeva_spi_devices[] = { static struct spi_board_info carmeva_spi_devices[] = {
......
...@@ -86,6 +86,8 @@ static void __init cpu9krea_init_early(void) ...@@ -86,6 +86,8 @@ static void __init cpu9krea_init_early(void)
*/ */
static struct at91_usbh_data __initdata cpu9krea_usbh_data = { static struct at91_usbh_data __initdata cpu9krea_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -93,13 +95,14 @@ static struct at91_usbh_data __initdata cpu9krea_usbh_data = { ...@@ -93,13 +95,14 @@ static struct at91_usbh_data __initdata cpu9krea_usbh_data = {
*/ */
static struct at91_udc_data __initdata cpu9krea_udc_data = { static struct at91_udc_data __initdata cpu9krea_udc_data = {
.vbus_pin = AT91_PIN_PC8, .vbus_pin = AT91_PIN_PC8,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
/* /*
* MACB Ethernet device * MACB Ethernet device
*/ */
static struct macb_platform_data __initdata cpu9krea_macb_data = { static struct macb_platform_data __initdata cpu9krea_macb_data = {
.phy_irq_pin = -EINVAL,
.is_rmii = 1, .is_rmii = 1,
}; };
...@@ -112,6 +115,7 @@ static struct atmel_nand_data __initdata cpu9krea_nand_data = { ...@@ -112,6 +115,7 @@ static struct atmel_nand_data __initdata cpu9krea_nand_data = {
.rdy_pin = AT91_PIN_PC13, .rdy_pin = AT91_PIN_PC13,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
.bus_width_16 = 0, .bus_width_16 = 0,
.det_pin = -EINVAL,
}; };
#ifdef CONFIG_MACH_CPU9260 #ifdef CONFIG_MACH_CPU9260
...@@ -337,6 +341,8 @@ static struct at91_mmc_data __initdata cpu9krea_mmc_data = { ...@@ -337,6 +341,8 @@ static struct at91_mmc_data __initdata cpu9krea_mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PA29, .det_pin = AT91_PIN_PA29,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
static void __init cpu9krea_board_init(void) static void __init cpu9krea_board_init(void)
......
...@@ -83,11 +83,14 @@ static void __init cpuat91_init_early(void) ...@@ -83,11 +83,14 @@ static void __init cpuat91_init_early(void)
} }
static struct macb_platform_data __initdata cpuat91_eth_data = { static struct macb_platform_data __initdata cpuat91_eth_data = {
.phy_irq_pin = -EINVAL,
.is_rmii = 1, .is_rmii = 1,
}; };
static struct at91_usbh_data __initdata cpuat91_usbh_data = { static struct at91_usbh_data __initdata cpuat91_usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata cpuat91_udc_data = { static struct at91_udc_data __initdata cpuat91_udc_data = {
...@@ -98,6 +101,8 @@ static struct at91_udc_data __initdata cpuat91_udc_data = { ...@@ -98,6 +101,8 @@ static struct at91_udc_data __initdata cpuat91_udc_data = {
static struct at91_mmc_data __initdata cpuat91_mmc_data = { static struct at91_mmc_data __initdata cpuat91_mmc_data = {
.det_pin = AT91_PIN_PC2, .det_pin = AT91_PIN_PC2,
.wire4 = 1, .wire4 = 1,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
static struct physmap_flash_data cpuat91_flash_data = { static struct physmap_flash_data cpuat91_flash_data = {
......
...@@ -65,11 +65,13 @@ static struct macb_platform_data __initdata csb337_eth_data = { ...@@ -65,11 +65,13 @@ static struct macb_platform_data __initdata csb337_eth_data = {
static struct at91_usbh_data __initdata csb337_usbh_data = { static struct at91_usbh_data __initdata csb337_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata csb337_udc_data = { static struct at91_udc_data __initdata csb337_udc_data = {
// this has no VBUS sensing pin
.pullup_pin = AT91_PIN_PA24, .pullup_pin = AT91_PIN_PA24,
.vbus_pin = -EINVAL,
}; };
static struct i2c_board_info __initdata csb337_i2c_devices[] = { static struct i2c_board_info __initdata csb337_i2c_devices[] = {
...@@ -98,6 +100,7 @@ static struct at91_mmc_data __initdata csb337_mmc_data = { ...@@ -98,6 +100,7 @@ static struct at91_mmc_data __initdata csb337_mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.wp_pin = AT91_PIN_PD6, .wp_pin = AT91_PIN_PD6,
.vcc_pin = -EINVAL,
}; };
static struct spi_board_info csb337_spi_devices[] = { static struct spi_board_info csb337_spi_devices[] = {
......
...@@ -59,6 +59,8 @@ static struct macb_platform_data __initdata csb637_eth_data = { ...@@ -59,6 +59,8 @@ static struct macb_platform_data __initdata csb637_eth_data = {
static struct at91_usbh_data __initdata csb637_usbh_data = { static struct at91_usbh_data __initdata csb637_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata csb637_udc_data = { static struct at91_udc_data __initdata csb637_udc_data = {
......
...@@ -50,6 +50,7 @@ static void __init ek_init_early(void) ...@@ -50,6 +50,7 @@ static void __init ek_init_early(void)
static struct atmel_nand_data __initdata ek_nand_data = { static struct atmel_nand_data __initdata ek_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
.det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC8, .rdy_pin = AT91_PIN_PC8,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
}; };
......
...@@ -67,6 +67,8 @@ static struct macb_platform_data __initdata eb9200_eth_data = { ...@@ -67,6 +67,8 @@ static struct macb_platform_data __initdata eb9200_eth_data = {
static struct at91_usbh_data __initdata eb9200_usbh_data = { static struct at91_usbh_data __initdata eb9200_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata eb9200_udc_data = { static struct at91_udc_data __initdata eb9200_udc_data = {
...@@ -75,15 +77,18 @@ static struct at91_udc_data __initdata eb9200_udc_data = { ...@@ -75,15 +77,18 @@ static struct at91_udc_data __initdata eb9200_udc_data = {
}; };
static struct at91_cf_data __initdata eb9200_cf_data = { static struct at91_cf_data __initdata eb9200_cf_data = {
.irq_pin = -EINVAL,
.det_pin = AT91_PIN_PB0, .det_pin = AT91_PIN_PB0,
.vcc_pin = -EINVAL,
.rst_pin = AT91_PIN_PC5, .rst_pin = AT91_PIN_PC5,
// .irq_pin = ... not connected
// .vcc_pin = ... always powered
}; };
static struct at91_mmc_data __initdata eb9200_mmc_data = { static struct at91_mmc_data __initdata eb9200_mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.det_pin = -EINVAL,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
static struct i2c_board_info __initdata eb9200_i2c_devices[] = { static struct i2c_board_info __initdata eb9200_i2c_devices[] = {
......
...@@ -71,11 +71,16 @@ static struct macb_platform_data __initdata ecb_at91eth_data = { ...@@ -71,11 +71,16 @@ static struct macb_platform_data __initdata ecb_at91eth_data = {
static struct at91_usbh_data __initdata ecb_at91usbh_data = { static struct at91_usbh_data __initdata ecb_at91usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_mmc_data __initdata ecb_at91mmc_data = { static struct at91_mmc_data __initdata ecb_at91mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.det_pin = -EINVAL,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
......
...@@ -54,6 +54,8 @@ static struct macb_platform_data __initdata eco920_eth_data = { ...@@ -54,6 +54,8 @@ static struct macb_platform_data __initdata eco920_eth_data = {
static struct at91_usbh_data __initdata eco920_usbh_data = { static struct at91_usbh_data __initdata eco920_usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata eco920_udc_data = { static struct at91_udc_data __initdata eco920_udc_data = {
...@@ -64,6 +66,9 @@ static struct at91_udc_data __initdata eco920_udc_data = { ...@@ -64,6 +66,9 @@ static struct at91_udc_data __initdata eco920_udc_data = {
static struct at91_mmc_data __initdata eco920_mmc_data = { static struct at91_mmc_data __initdata eco920_mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 0, .wire4 = 0,
.det_pin = -EINVAL,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
static struct physmap_flash_data eco920_flash_data = { static struct physmap_flash_data eco920_flash_data = {
......
...@@ -52,12 +52,14 @@ static void __init flexibity_init_early(void) ...@@ -52,12 +52,14 @@ static void __init flexibity_init_early(void)
/* USB Host port */ /* USB Host port */
static struct at91_usbh_data __initdata flexibity_usbh_data = { static struct at91_usbh_data __initdata flexibity_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* USB Device port */ /* USB Device port */
static struct at91_udc_data __initdata flexibity_udc_data = { static struct at91_udc_data __initdata flexibity_udc_data = {
.vbus_pin = AT91_PIN_PC5, .vbus_pin = AT91_PIN_PC5,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
/* SPI devices */ /* SPI devices */
...@@ -76,6 +78,7 @@ static struct at91_mmc_data __initdata flexibity_mmc_data = { ...@@ -76,6 +78,7 @@ static struct at91_mmc_data __initdata flexibity_mmc_data = {
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PC9, .det_pin = AT91_PIN_PC9,
.wp_pin = AT91_PIN_PC4, .wp_pin = AT91_PIN_PC4,
.vcc_pin = -EINVAL,
}; };
/* LEDs */ /* LEDs */
......
...@@ -106,6 +106,8 @@ static void __init foxg20_init_early(void) ...@@ -106,6 +106,8 @@ static void __init foxg20_init_early(void)
*/ */
static struct at91_usbh_data __initdata foxg20_usbh_data = { static struct at91_usbh_data __initdata foxg20_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -113,7 +115,7 @@ static struct at91_usbh_data __initdata foxg20_usbh_data = { ...@@ -113,7 +115,7 @@ static struct at91_usbh_data __initdata foxg20_usbh_data = {
*/ */
static struct at91_udc_data __initdata foxg20_udc_data = { static struct at91_udc_data __initdata foxg20_udc_data = {
.vbus_pin = AT91_PIN_PC6, .vbus_pin = AT91_PIN_PC6,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
...@@ -147,6 +149,9 @@ static struct macb_platform_data __initdata foxg20_macb_data = { ...@@ -147,6 +149,9 @@ static struct macb_platform_data __initdata foxg20_macb_data = {
static struct at91_mmc_data __initdata foxg20_mmc_data = { static struct at91_mmc_data __initdata foxg20_mmc_data = {
.slot_b = 1, .slot_b = 1,
.wire4 = 1, .wire4 = 1,
.det_pin = -EINVAL,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
......
...@@ -80,6 +80,8 @@ static void __init gsia18s_init_early(void) ...@@ -80,6 +80,8 @@ static void __init gsia18s_init_early(void)
*/ */
static struct at91_usbh_data __initdata usbh_data = { static struct at91_usbh_data __initdata usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -87,7 +89,7 @@ static struct at91_usbh_data __initdata usbh_data = { ...@@ -87,7 +89,7 @@ static struct at91_usbh_data __initdata usbh_data = {
*/ */
static struct at91_udc_data __initdata udc_data = { static struct at91_udc_data __initdata udc_data = {
.vbus_pin = AT91_PIN_PA22, .vbus_pin = AT91_PIN_PA22,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
/* /*
...@@ -530,6 +532,7 @@ static struct i2c_board_info __initdata gsia18s_i2c_devices[] = { ...@@ -530,6 +532,7 @@ static struct i2c_board_info __initdata gsia18s_i2c_devices[] = {
static struct at91_cf_data __initdata gsia18s_cf1_data = { static struct at91_cf_data __initdata gsia18s_cf1_data = {
.irq_pin = AT91_PIN_PA27, .irq_pin = AT91_PIN_PA27,
.det_pin = AT91_PIN_PB30, .det_pin = AT91_PIN_PB30,
.vcc_pin = -EINVAL,
.rst_pin = AT91_PIN_PB31, .rst_pin = AT91_PIN_PB31,
.chipselect = 5, .chipselect = 5,
.flags = AT91_CF_TRUE_IDE, .flags = AT91_CF_TRUE_IDE,
......
...@@ -68,6 +68,8 @@ static struct macb_platform_data __initdata kafa_eth_data = { ...@@ -68,6 +68,8 @@ static struct macb_platform_data __initdata kafa_eth_data = {
static struct at91_usbh_data __initdata kafa_usbh_data = { static struct at91_usbh_data __initdata kafa_usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata kafa_udc_data = { static struct at91_udc_data __initdata kafa_udc_data = {
......
...@@ -76,6 +76,8 @@ static struct macb_platform_data __initdata kb9202_eth_data = { ...@@ -76,6 +76,8 @@ static struct macb_platform_data __initdata kb9202_eth_data = {
static struct at91_usbh_data __initdata kb9202_usbh_data = { static struct at91_usbh_data __initdata kb9202_usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata kb9202_udc_data = { static struct at91_udc_data __initdata kb9202_udc_data = {
...@@ -87,6 +89,8 @@ static struct at91_mmc_data __initdata kb9202_mmc_data = { ...@@ -87,6 +89,8 @@ static struct at91_mmc_data __initdata kb9202_mmc_data = {
.det_pin = AT91_PIN_PB2, .det_pin = AT91_PIN_PB2,
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
static struct mtd_partition __initdata kb9202_nand_partition[] = { static struct mtd_partition __initdata kb9202_nand_partition[] = {
...@@ -100,7 +104,7 @@ static struct mtd_partition __initdata kb9202_nand_partition[] = { ...@@ -100,7 +104,7 @@ static struct mtd_partition __initdata kb9202_nand_partition[] = {
static struct atmel_nand_data __initdata kb9202_nand_data = { static struct atmel_nand_data __initdata kb9202_nand_data = {
.ale = 22, .ale = 22,
.cle = 21, .cle = 21,
// .det_pin = ... not there .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC29, .rdy_pin = AT91_PIN_PC29,
.enable_pin = AT91_PIN_PC28, .enable_pin = AT91_PIN_PC28,
.parts = kb9202_nand_partition, .parts = kb9202_nand_partition,
......
...@@ -72,6 +72,7 @@ static void __init neocore926_init_early(void) ...@@ -72,6 +72,7 @@ static void __init neocore926_init_early(void)
static struct at91_usbh_data __initdata neocore926_usbh_data = { static struct at91_usbh_data __initdata neocore926_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = { AT91_PIN_PA24, AT91_PIN_PA21 }, .vbus_pin = { AT91_PIN_PA24, AT91_PIN_PA21 },
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -79,7 +80,7 @@ static struct at91_usbh_data __initdata neocore926_usbh_data = { ...@@ -79,7 +80,7 @@ static struct at91_usbh_data __initdata neocore926_usbh_data = {
*/ */
static struct at91_udc_data __initdata neocore926_udc_data = { static struct at91_udc_data __initdata neocore926_udc_data = {
.vbus_pin = AT91_PIN_PA25, .vbus_pin = AT91_PIN_PA25,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
...@@ -149,6 +150,7 @@ static struct at91_mmc_data __initdata neocore926_mmc_data = { ...@@ -149,6 +150,7 @@ static struct at91_mmc_data __initdata neocore926_mmc_data = {
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PE18, .det_pin = AT91_PIN_PE18,
.wp_pin = AT91_PIN_PE19, .wp_pin = AT91_PIN_PE19,
.vcc_pin = -EINVAL,
}; };
...@@ -190,6 +192,7 @@ static struct atmel_nand_data __initdata neocore926_nand_data = { ...@@ -190,6 +192,7 @@ static struct atmel_nand_data __initdata neocore926_nand_data = {
.enable_pin = AT91_PIN_PD15, .enable_pin = AT91_PIN_PD15,
.parts = neocore926_nand_partition, .parts = neocore926_nand_partition,
.num_parts = ARRAY_SIZE(neocore926_nand_partition), .num_parts = ARRAY_SIZE(neocore926_nand_partition),
.det_pin = -EINVAL,
}; };
static struct sam9_smc_config __initdata neocore926_nand_smc_config = { static struct sam9_smc_config __initdata neocore926_nand_smc_config = {
......
...@@ -107,6 +107,8 @@ static void __init add_device_pcontrol(void) ...@@ -107,6 +107,8 @@ static void __init add_device_pcontrol(void)
*/ */
static struct at91_usbh_data __initdata usbh_data = { static struct at91_usbh_data __initdata usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
......
...@@ -67,6 +67,8 @@ static struct macb_platform_data __initdata picotux200_eth_data = { ...@@ -67,6 +67,8 @@ static struct macb_platform_data __initdata picotux200_eth_data = {
static struct at91_usbh_data __initdata picotux200_usbh_data = { static struct at91_usbh_data __initdata picotux200_usbh_data = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_mmc_data __initdata picotux200_mmc_data = { static struct at91_mmc_data __initdata picotux200_mmc_data = {
...@@ -74,6 +76,7 @@ static struct at91_mmc_data __initdata picotux200_mmc_data = { ...@@ -74,6 +76,7 @@ static struct at91_mmc_data __initdata picotux200_mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.wp_pin = AT91_PIN_PA17, .wp_pin = AT91_PIN_PA17,
.vcc_pin = -EINVAL,
}; };
#define PICOTUX200_FLASH_BASE AT91_CHIPSELECT_0 #define PICOTUX200_FLASH_BASE AT91_CHIPSELECT_0
......
...@@ -77,6 +77,8 @@ static void __init ek_init_early(void) ...@@ -77,6 +77,8 @@ static void __init ek_init_early(void)
*/ */
static struct at91_usbh_data __initdata ek_usbh_data = { static struct at91_usbh_data __initdata ek_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -84,7 +86,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = { ...@@ -84,7 +86,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = {
*/ */
static struct at91_udc_data __initdata ek_udc_data = { static struct at91_udc_data __initdata ek_udc_data = {
.vbus_pin = AT91_PIN_PC5, .vbus_pin = AT91_PIN_PC5,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
/* /*
...@@ -133,7 +135,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = { ...@@ -133,7 +135,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
static struct atmel_nand_data __initdata ek_nand_data = { static struct atmel_nand_data __initdata ek_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
// .det_pin = ... not connected .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC13, .rdy_pin = AT91_PIN_PC13,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
.parts = ek_nand_partition, .parts = ek_nand_partition,
...@@ -172,9 +174,9 @@ static void __init ek_add_device_nand(void) ...@@ -172,9 +174,9 @@ static void __init ek_add_device_nand(void)
static struct at91_mmc_data __initdata ek_mmc_data = { static struct at91_mmc_data __initdata ek_mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
// .det_pin = ... not connected .det_pin = -EINVAL,
// .wp_pin = ... not connected .wp_pin = -EINVAL,
// .vcc_pin = ... not connected .vcc_pin = -EINVAL,
}; };
/* /*
......
...@@ -72,6 +72,8 @@ static struct macb_platform_data __initdata dk_eth_data = { ...@@ -72,6 +72,8 @@ static struct macb_platform_data __initdata dk_eth_data = {
static struct at91_usbh_data __initdata dk_usbh_data = { static struct at91_usbh_data __initdata dk_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata dk_udc_data = { static struct at91_udc_data __initdata dk_udc_data = {
...@@ -80,16 +82,19 @@ static struct at91_udc_data __initdata dk_udc_data = { ...@@ -80,16 +82,19 @@ static struct at91_udc_data __initdata dk_udc_data = {
}; };
static struct at91_cf_data __initdata dk_cf_data = { static struct at91_cf_data __initdata dk_cf_data = {
.irq_pin = -EINVAL,
.det_pin = AT91_PIN_PB0, .det_pin = AT91_PIN_PB0,
.vcc_pin = -EINVAL,
.rst_pin = AT91_PIN_PC5, .rst_pin = AT91_PIN_PC5,
// .irq_pin = ... not connected
// .vcc_pin = ... always powered
}; };
#ifndef CONFIG_MTD_AT91_DATAFLASH_CARD #ifndef CONFIG_MTD_AT91_DATAFLASH_CARD
static struct at91_mmc_data __initdata dk_mmc_data = { static struct at91_mmc_data __initdata dk_mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.det_pin = -EINVAL,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
#endif #endif
...@@ -143,7 +148,7 @@ static struct atmel_nand_data __initdata dk_nand_data = { ...@@ -143,7 +148,7 @@ static struct atmel_nand_data __initdata dk_nand_data = {
.cle = 21, .cle = 21,
.det_pin = AT91_PIN_PB1, .det_pin = AT91_PIN_PB1,
.rdy_pin = AT91_PIN_PC2, .rdy_pin = AT91_PIN_PC2,
// .enable_pin = ... not there .enable_pin = -EINVAL,
.parts = dk_nand_partition, .parts = dk_nand_partition,
.num_parts = ARRAY_SIZE(dk_nand_partition), .num_parts = ARRAY_SIZE(dk_nand_partition),
}; };
......
...@@ -72,6 +72,8 @@ static struct macb_platform_data __initdata ek_eth_data = { ...@@ -72,6 +72,8 @@ static struct macb_platform_data __initdata ek_eth_data = {
static struct at91_usbh_data __initdata ek_usbh_data = { static struct at91_usbh_data __initdata ek_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata ek_udc_data = { static struct at91_udc_data __initdata ek_udc_data = {
...@@ -85,6 +87,7 @@ static struct at91_mmc_data __initdata ek_mmc_data = { ...@@ -85,6 +87,7 @@ static struct at91_mmc_data __initdata ek_mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.wp_pin = AT91_PIN_PA17, .wp_pin = AT91_PIN_PA17,
.vcc_pin = -EINVAL,
}; };
#endif #endif
......
...@@ -70,6 +70,8 @@ static struct macb_platform_data rsi_ews_eth_data __initdata = { ...@@ -70,6 +70,8 @@ static struct macb_platform_data rsi_ews_eth_data __initdata = {
*/ */
static struct at91_usbh_data rsi_ews_usbh_data __initdata = { static struct at91_usbh_data rsi_ews_usbh_data __initdata = {
.ports = 1, .ports = 1,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
......
...@@ -72,6 +72,8 @@ static void __init ek_init_early(void) ...@@ -72,6 +72,8 @@ static void __init ek_init_early(void)
*/ */
static struct at91_usbh_data __initdata ek_usbh_data = { static struct at91_usbh_data __initdata ek_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -79,7 +81,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = { ...@@ -79,7 +81,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = {
*/ */
static struct at91_udc_data __initdata ek_udc_data = { static struct at91_udc_data __initdata ek_udc_data = {
.vbus_pin = AT91_PIN_PC5, .vbus_pin = AT91_PIN_PC5,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
...@@ -134,7 +136,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = { ...@@ -134,7 +136,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
static struct atmel_nand_data __initdata ek_nand_data = { static struct atmel_nand_data __initdata ek_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
// .det_pin = ... not connected .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC13, .rdy_pin = AT91_PIN_PC13,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
.parts = ek_nand_partition, .parts = ek_nand_partition,
...@@ -176,7 +178,7 @@ static struct at91_mmc_data __initdata ek_mmc_data = { ...@@ -176,7 +178,7 @@ static struct at91_mmc_data __initdata ek_mmc_data = {
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PC8, .det_pin = AT91_PIN_PC8,
.wp_pin = AT91_PIN_PC4, .wp_pin = AT91_PIN_PC4,
// .vcc_pin = ... not connected .vcc_pin = -EINVAL,
}; };
static void __init ek_board_init(void) static void __init ek_board_init(void)
......
...@@ -75,6 +75,8 @@ static void __init ek_init_early(void) ...@@ -75,6 +75,8 @@ static void __init ek_init_early(void)
*/ */
static struct at91_usbh_data __initdata ek_usbh_data = { static struct at91_usbh_data __initdata ek_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -82,7 +84,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = { ...@@ -82,7 +84,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = {
*/ */
static struct at91_udc_data __initdata ek_udc_data = { static struct at91_udc_data __initdata ek_udc_data = {
.vbus_pin = AT91_PIN_PC5, .vbus_pin = AT91_PIN_PC5,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
...@@ -176,7 +178,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = { ...@@ -176,7 +178,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
static struct atmel_nand_data __initdata ek_nand_data = { static struct atmel_nand_data __initdata ek_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
// .det_pin = ... not connected .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC13, .rdy_pin = AT91_PIN_PC13,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
.parts = ek_nand_partition, .parts = ek_nand_partition,
...@@ -223,9 +225,9 @@ static void __init ek_add_device_nand(void) ...@@ -223,9 +225,9 @@ static void __init ek_add_device_nand(void)
static struct at91_mmc_data __initdata ek_mmc_data = { static struct at91_mmc_data __initdata ek_mmc_data = {
.slot_b = 1, .slot_b = 1,
.wire4 = 1, .wire4 = 1,
// .det_pin = ... not connected .det_pin = -EINVAL,
// .wp_pin = ... not connected .wp_pin = -EINVAL,
// .vcc_pin = ... not connected .vcc_pin = -EINVAL,
}; };
......
...@@ -151,6 +151,8 @@ static void __init ek_add_device_dm9000(void) {} ...@@ -151,6 +151,8 @@ static void __init ek_add_device_dm9000(void) {}
*/ */
static struct at91_usbh_data __initdata ek_usbh_data = { static struct at91_usbh_data __initdata ek_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
...@@ -159,7 +161,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = { ...@@ -159,7 +161,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = {
*/ */
static struct at91_udc_data __initdata ek_udc_data = { static struct at91_udc_data __initdata ek_udc_data = {
.vbus_pin = AT91_PIN_PB29, .vbus_pin = AT91_PIN_PB29,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
...@@ -182,7 +184,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = { ...@@ -182,7 +184,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
static struct atmel_nand_data __initdata ek_nand_data = { static struct atmel_nand_data __initdata ek_nand_data = {
.ale = 22, .ale = 22,
.cle = 21, .cle = 21,
// .det_pin = ... not connected .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC15, .rdy_pin = AT91_PIN_PC15,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
.parts = ek_nand_partition, .parts = ek_nand_partition,
...@@ -345,6 +347,9 @@ static struct spi_board_info ek_spi_devices[] = { ...@@ -345,6 +347,9 @@ static struct spi_board_info ek_spi_devices[] = {
*/ */
static struct at91_mmc_data __initdata ek_mmc_data = { static struct at91_mmc_data __initdata ek_mmc_data = {
.wire4 = 1, .wire4 = 1,
.det_pin = -EINVAL,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
#endif /* CONFIG_SPI_ATMEL_* */ #endif /* CONFIG_SPI_ATMEL_* */
......
...@@ -74,6 +74,7 @@ static void __init ek_init_early(void) ...@@ -74,6 +74,7 @@ static void __init ek_init_early(void)
static struct at91_usbh_data __initdata ek_usbh_data = { static struct at91_usbh_data __initdata ek_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = { AT91_PIN_PA24, AT91_PIN_PA21 }, .vbus_pin = { AT91_PIN_PA24, AT91_PIN_PA21 },
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -81,7 +82,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = { ...@@ -81,7 +82,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = {
*/ */
static struct at91_udc_data __initdata ek_udc_data = { static struct at91_udc_data __initdata ek_udc_data = {
.vbus_pin = AT91_PIN_PA25, .vbus_pin = AT91_PIN_PA25,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
...@@ -151,7 +152,7 @@ static struct at91_mmc_data __initdata ek_mmc_data = { ...@@ -151,7 +152,7 @@ static struct at91_mmc_data __initdata ek_mmc_data = {
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PE18, .det_pin = AT91_PIN_PE18,
.wp_pin = AT91_PIN_PE19, .wp_pin = AT91_PIN_PE19,
// .vcc_pin = ... not connected .vcc_pin = -EINVAL,
}; };
...@@ -183,7 +184,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = { ...@@ -183,7 +184,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
static struct atmel_nand_data __initdata ek_nand_data = { static struct atmel_nand_data __initdata ek_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
// .det_pin = ... not connected .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PA22, .rdy_pin = AT91_PIN_PA22,
.enable_pin = AT91_PIN_PD15, .enable_pin = AT91_PIN_PD15,
.parts = ek_nand_partition, .parts = ek_nand_partition,
...@@ -353,6 +354,7 @@ static void __init ek_add_device_buttons(void) {} ...@@ -353,6 +354,7 @@ static void __init ek_add_device_buttons(void) {}
* reset_pin is not connected: NRST * reset_pin is not connected: NRST
*/ */
static struct ac97c_platform_data ek_ac97_data = { static struct ac97c_platform_data ek_ac97_data = {
.reset_pin = -EINVAL,
}; };
......
...@@ -86,6 +86,8 @@ static void __init ek_init_early(void) ...@@ -86,6 +86,8 @@ static void __init ek_init_early(void)
*/ */
static struct at91_usbh_data __initdata ek_usbh_data = { static struct at91_usbh_data __initdata ek_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -93,7 +95,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = { ...@@ -93,7 +95,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = {
*/ */
static struct at91_udc_data __initdata ek_udc_data = { static struct at91_udc_data __initdata ek_udc_data = {
.vbus_pin = AT91_PIN_PC5, .vbus_pin = AT91_PIN_PC5,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
...@@ -163,6 +165,7 @@ static struct atmel_nand_data __initdata ek_nand_data = { ...@@ -163,6 +165,7 @@ static struct atmel_nand_data __initdata ek_nand_data = {
.cle = 22, .cle = 22,
.rdy_pin = AT91_PIN_PC13, .rdy_pin = AT91_PIN_PC13,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
.det_pin = -EINVAL,
.parts = ek_nand_partition, .parts = ek_nand_partition,
.num_parts = ARRAY_SIZE(ek_nand_partition), .num_parts = ARRAY_SIZE(ek_nand_partition),
}; };
...@@ -210,6 +213,7 @@ static struct mci_platform_data __initdata ek_mmc_data = { ...@@ -210,6 +213,7 @@ static struct mci_platform_data __initdata ek_mmc_data = {
.slot[1] = { .slot[1] = {
.bus_width = 4, .bus_width = 4,
.detect_pin = AT91_PIN_PC9, .detect_pin = AT91_PIN_PC9,
.wp_pin = -EINVAL,
}, },
}; };
...@@ -218,6 +222,8 @@ static struct at91_mmc_data __initdata ek_mmc_data = { ...@@ -218,6 +222,8 @@ static struct at91_mmc_data __initdata ek_mmc_data = {
.slot_b = 1, /* Only one slot so use slot B */ .slot_b = 1, /* Only one slot so use slot B */
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PC9, .det_pin = AT91_PIN_PC9,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
#endif #endif
...@@ -227,6 +233,7 @@ static void __init ek_add_device_mmc(void) ...@@ -227,6 +233,7 @@ static void __init ek_add_device_mmc(void)
if (ek_have_2mmc()) { if (ek_have_2mmc()) {
ek_mmc_data.slot[0].bus_width = 4; ek_mmc_data.slot[0].bus_width = 4;
ek_mmc_data.slot[0].detect_pin = AT91_PIN_PC2; ek_mmc_data.slot[0].detect_pin = AT91_PIN_PC2;
ek_mmc_data.slot[0].wp_pin = -1;
} }
at91_add_device_mci(0, &ek_mmc_data); at91_add_device_mci(0, &ek_mmc_data);
#else #else
......
...@@ -69,6 +69,7 @@ static void __init ek_init_early(void) ...@@ -69,6 +69,7 @@ static void __init ek_init_early(void)
static struct at91_usbh_data __initdata ek_usbh_hs_data = { static struct at91_usbh_data __initdata ek_usbh_hs_data = {
.ports = 2, .ports = 2,
.vbus_pin = {AT91_PIN_PD1, AT91_PIN_PD3}, .vbus_pin = {AT91_PIN_PD1, AT91_PIN_PD3},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
...@@ -100,6 +101,7 @@ static struct mci_platform_data __initdata mci0_data = { ...@@ -100,6 +101,7 @@ static struct mci_platform_data __initdata mci0_data = {
.slot[0] = { .slot[0] = {
.bus_width = 4, .bus_width = 4,
.detect_pin = AT91_PIN_PD10, .detect_pin = AT91_PIN_PD10,
.wp_pin = -EINVAL,
}, },
}; };
...@@ -143,6 +145,7 @@ static struct atmel_nand_data __initdata ek_nand_data = { ...@@ -143,6 +145,7 @@ static struct atmel_nand_data __initdata ek_nand_data = {
.cle = 22, .cle = 22,
.rdy_pin = AT91_PIN_PC8, .rdy_pin = AT91_PIN_PC8,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
.det_pin = -EINVAL,
.parts = ek_nand_partition, .parts = ek_nand_partition,
.num_parts = ARRAY_SIZE(ek_nand_partition), .num_parts = ARRAY_SIZE(ek_nand_partition),
}; };
...@@ -330,6 +333,7 @@ static void __init ek_add_device_buttons(void) {} ...@@ -330,6 +333,7 @@ static void __init ek_add_device_buttons(void) {}
* reset_pin is not connected: NRST * reset_pin is not connected: NRST
*/ */
static struct ac97c_platform_data ek_ac97_data = { static struct ac97c_platform_data ek_ac97_data = {
.reset_pin = -EINVAL,
}; };
......
...@@ -67,8 +67,8 @@ static struct usba_platform_data __initdata ek_usba_udc_data = { ...@@ -67,8 +67,8 @@ static struct usba_platform_data __initdata ek_usba_udc_data = {
static struct at91_mmc_data __initdata ek_mmc_data = { static struct at91_mmc_data __initdata ek_mmc_data = {
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PA15, .det_pin = AT91_PIN_PA15,
// .wp_pin = ... not connected .wp_pin = -EINVAL,
// .vcc_pin = ... not connected .vcc_pin = -EINVAL,
}; };
...@@ -91,7 +91,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = { ...@@ -91,7 +91,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
static struct atmel_nand_data __initdata ek_nand_data = { static struct atmel_nand_data __initdata ek_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
// .det_pin = ... not connected .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PD17, .rdy_pin = AT91_PIN_PD17,
.enable_pin = AT91_PIN_PB6, .enable_pin = AT91_PIN_PB6,
.parts = ek_nand_partition, .parts = ek_nand_partition,
...@@ -204,6 +204,7 @@ static struct atmel_lcdfb_info __initdata ek_lcdc_data; ...@@ -204,6 +204,7 @@ static struct atmel_lcdfb_info __initdata ek_lcdc_data;
* reset_pin is not connected: NRST * reset_pin is not connected: NRST
*/ */
static struct ac97c_platform_data ek_ac97_data = { static struct ac97c_platform_data ek_ac97_data = {
.reset_pin = -EINVAL,
}; };
......
...@@ -57,15 +57,19 @@ static void __init snapper9260_init_early(void) ...@@ -57,15 +57,19 @@ static void __init snapper9260_init_early(void)
static struct at91_usbh_data __initdata snapper9260_usbh_data = { static struct at91_usbh_data __initdata snapper9260_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
static struct at91_udc_data __initdata snapper9260_udc_data = { static struct at91_udc_data __initdata snapper9260_udc_data = {
.vbus_pin = SNAPPER9260_IO_EXP_GPIO(5), .vbus_pin = SNAPPER9260_IO_EXP_GPIO(5),
.vbus_active_low = 1, .vbus_active_low = 1,
.vbus_polled = 1, .vbus_polled = 1,
.pullup_pin = -EINVAL,
}; };
static struct macb_platform_data snapper9260_macb_data = { static struct macb_platform_data snapper9260_macb_data = {
.phy_irq_pin = -EINVAL,
.is_rmii = 1, .is_rmii = 1,
}; };
...@@ -104,6 +108,8 @@ static struct atmel_nand_data __initdata snapper9260_nand_data = { ...@@ -104,6 +108,8 @@ static struct atmel_nand_data __initdata snapper9260_nand_data = {
.parts = snapper9260_nand_partitions, .parts = snapper9260_nand_partitions,
.num_parts = ARRAY_SIZE(snapper9260_nand_partitions), .num_parts = ARRAY_SIZE(snapper9260_nand_partitions),
.bus_width_16 = 0, .bus_width_16 = 0,
.enable_pin = -EINVAL,
.det_pin = -EINVAL,
}; };
static struct sam9_smc_config __initdata snapper9260_nand_smc_config = { static struct sam9_smc_config __initdata snapper9260_nand_smc_config = {
......
...@@ -85,6 +85,7 @@ static struct atmel_nand_data __initdata nand_data = { ...@@ -85,6 +85,7 @@ static struct atmel_nand_data __initdata nand_data = {
.rdy_pin = AT91_PIN_PC13, .rdy_pin = AT91_PIN_PC13,
.enable_pin = AT91_PIN_PC14, .enable_pin = AT91_PIN_PC14,
.bus_width_16 = 0, .bus_width_16 = 0,
.det_pin = -EINVAL,
}; };
static struct sam9_smc_config __initdata nand_smc_config = { static struct sam9_smc_config __initdata nand_smc_config = {
...@@ -122,12 +123,17 @@ static void __init add_device_nand(void) ...@@ -122,12 +123,17 @@ static void __init add_device_nand(void)
static struct mci_platform_data __initdata mmc_data = { static struct mci_platform_data __initdata mmc_data = {
.slot[0] = { .slot[0] = {
.bus_width = 4, .bus_width = 4,
.detect_pin = -1;
.wp_pin = -1;
}, },
}; };
#else #else
static struct at91_mmc_data __initdata mmc_data = { static struct at91_mmc_data __initdata mmc_data = {
.slot_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.det_pin = -EINVAL,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
#endif #endif
...@@ -137,6 +143,8 @@ static struct at91_mmc_data __initdata mmc_data = { ...@@ -137,6 +143,8 @@ static struct at91_mmc_data __initdata mmc_data = {
*/ */
static struct at91_usbh_data __initdata usbh_data = { static struct at91_usbh_data __initdata usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
...@@ -145,12 +153,12 @@ static struct at91_usbh_data __initdata usbh_data = { ...@@ -145,12 +153,12 @@ static struct at91_usbh_data __initdata usbh_data = {
*/ */
static struct at91_udc_data __initdata portuxg20_udc_data = { static struct at91_udc_data __initdata portuxg20_udc_data = {
.vbus_pin = AT91_PIN_PC7, .vbus_pin = AT91_PIN_PC7,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
static struct at91_udc_data __initdata stamp9g20evb_udc_data = { static struct at91_udc_data __initdata stamp9g20evb_udc_data = {
.vbus_pin = AT91_PIN_PA22, .vbus_pin = AT91_PIN_PA22,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
......
...@@ -66,6 +66,8 @@ static void __init ek_init_early(void) ...@@ -66,6 +66,8 @@ static void __init ek_init_early(void)
*/ */
static struct at91_usbh_data __initdata ek_usbh_data = { static struct at91_usbh_data __initdata ek_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -73,7 +75,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = { ...@@ -73,7 +75,7 @@ static struct at91_usbh_data __initdata ek_usbh_data = {
*/ */
static struct at91_udc_data __initdata ek_udc_data = { static struct at91_udc_data __initdata ek_udc_data = {
.vbus_pin = AT91_PIN_PB11, .vbus_pin = AT91_PIN_PB11,
.pullup_pin = 0, /* pull-up driven by UDC */ .pullup_pin = -EINVAL, /* pull-up driven by UDC */
}; };
static void __init ek_add_device_udc(void) static void __init ek_add_device_udc(void)
...@@ -193,7 +195,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = { ...@@ -193,7 +195,7 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
static struct atmel_nand_data __initdata ek_nand_data = { static struct atmel_nand_data __initdata ek_nand_data = {
.ale = 21, .ale = 21,
.cle = 22, .cle = 22,
// .det_pin = ... not connected .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PA22, .rdy_pin = AT91_PIN_PA22,
.enable_pin = AT91_PIN_PD15, .enable_pin = AT91_PIN_PD15,
.parts = ek_nand_partition, .parts = ek_nand_partition,
......
...@@ -120,6 +120,8 @@ static struct macb_platform_data __initdata yl9200_eth_data = { ...@@ -120,6 +120,8 @@ static struct macb_platform_data __initdata yl9200_eth_data = {
*/ */
static struct at91_usbh_data __initdata yl9200_usbh_data = { static struct at91_usbh_data __initdata yl9200_usbh_data = {
.ports = 1, /* PQFP version of AT91RM9200 */ .ports = 1, /* PQFP version of AT91RM9200 */
.vbus_pin = {-EINVAL, -EINVAL},
.overcurrent_pin= {-EINVAL, -EINVAL},
}; };
/* /*
...@@ -137,8 +139,9 @@ static struct at91_udc_data __initdata yl9200_udc_data = { ...@@ -137,8 +139,9 @@ static struct at91_udc_data __initdata yl9200_udc_data = {
*/ */
static struct at91_mmc_data __initdata yl9200_mmc_data = { static struct at91_mmc_data __initdata yl9200_mmc_data = {
.det_pin = AT91_PIN_PB9, .det_pin = AT91_PIN_PB9,
// .wp_pin = ... not connected
.wire4 = 1, .wire4 = 1,
.wp_pin = -EINVAL,
.vcc_pin = -EINVAL,
}; };
/* /*
...@@ -175,7 +178,7 @@ static struct mtd_partition __initdata yl9200_nand_partition[] = { ...@@ -175,7 +178,7 @@ static struct mtd_partition __initdata yl9200_nand_partition[] = {
static struct atmel_nand_data __initdata yl9200_nand_data = { static struct atmel_nand_data __initdata yl9200_nand_data = {
.ale = 6, .ale = 6,
.cle = 7, .cle = 7,
// .det_pin = ... not connected .det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC14, /* R/!B (Sheet10) */ .rdy_pin = AT91_PIN_PC14, /* R/!B (Sheet10) */
.enable_pin = AT91_PIN_PC15, /* !CE (Sheet10) */ .enable_pin = AT91_PIN_PC15, /* !CE (Sheet10) */
.parts = yl9200_nand_partition, .parts = yl9200_nand_partition,
......
...@@ -44,10 +44,10 @@ ...@@ -44,10 +44,10 @@
/* USB Device */ /* USB Device */
struct at91_udc_data { struct at91_udc_data {
u8 vbus_pin; /* high == host powering us */ int vbus_pin; /* high == host powering us */
u8 vbus_active_low; /* vbus polarity */ u8 vbus_active_low; /* vbus polarity */
u8 vbus_polled; /* Use polling, not interrupt */ u8 vbus_polled; /* Use polling, not interrupt */
u8 pullup_pin; /* active == D+ pulled up */ int pullup_pin; /* active == D+ pulled up */
u8 pullup_active_low; /* true == pullup_pin is active low */ u8 pullup_active_low; /* true == pullup_pin is active low */
}; };
extern void __init at91_add_device_udc(struct at91_udc_data *data); extern void __init at91_add_device_udc(struct at91_udc_data *data);
...@@ -57,10 +57,10 @@ extern void __init at91_add_device_usba(struct usba_platform_data *data); ...@@ -57,10 +57,10 @@ extern void __init at91_add_device_usba(struct usba_platform_data *data);
/* Compact Flash */ /* Compact Flash */
struct at91_cf_data { struct at91_cf_data {
u8 irq_pin; /* I/O IRQ */ int irq_pin; /* I/O IRQ */
u8 det_pin; /* Card detect */ int det_pin; /* Card detect */
u8 vcc_pin; /* power switching */ int vcc_pin; /* power switching */
u8 rst_pin; /* card reset */ int rst_pin; /* card reset */
u8 chipselect; /* EBI Chip Select number */ u8 chipselect; /* EBI Chip Select number */
u8 flags; u8 flags;
#define AT91_CF_TRUE_IDE 0x01 #define AT91_CF_TRUE_IDE 0x01
...@@ -71,11 +71,11 @@ extern void __init at91_add_device_cf(struct at91_cf_data *data); ...@@ -71,11 +71,11 @@ extern void __init at91_add_device_cf(struct at91_cf_data *data);
/* MMC / SD */ /* MMC / SD */
/* at91_mci platform config */ /* at91_mci platform config */
struct at91_mmc_data { struct at91_mmc_data {
u8 det_pin; /* card detect IRQ */ int det_pin; /* card detect IRQ */
unsigned slot_b:1; /* uses Slot B */ unsigned slot_b:1; /* uses Slot B */
unsigned wire4:1; /* (SD) supports DAT0..DAT3 */ unsigned wire4:1; /* (SD) supports DAT0..DAT3 */
u8 wp_pin; /* (SD) writeprotect detect */ int wp_pin; /* (SD) writeprotect detect */
u8 vcc_pin; /* power switching (high == on) */ int vcc_pin; /* power switching (high == on) */
}; };
extern void __init at91_add_device_mmc(short mmc_id, struct at91_mmc_data *data); extern void __init at91_add_device_mmc(short mmc_id, struct at91_mmc_data *data);
...@@ -87,10 +87,10 @@ extern void __init at91_add_device_eth(struct macb_platform_data *data); ...@@ -87,10 +87,10 @@ extern void __init at91_add_device_eth(struct macb_platform_data *data);
/* USB Host */ /* USB Host */
struct at91_usbh_data { struct at91_usbh_data {
u8 ports; /* number of ports on root hub */ u8 ports; /* number of ports on root hub */
u8 vbus_pin[2]; /* port power-control pin */ int vbus_pin[2]; /* port power-control pin */
u8 vbus_pin_inverted; u8 vbus_pin_inverted;
u8 overcurrent_supported; u8 overcurrent_supported;
u8 overcurrent_pin[2]; int overcurrent_pin[2];
u8 overcurrent_status[2]; u8 overcurrent_status[2];
u8 overcurrent_changed[2]; u8 overcurrent_changed[2];
}; };
...@@ -100,9 +100,9 @@ extern void __init at91_add_device_usbh_ehci(struct at91_usbh_data *data); ...@@ -100,9 +100,9 @@ extern void __init at91_add_device_usbh_ehci(struct at91_usbh_data *data);
/* NAND / SmartMedia */ /* NAND / SmartMedia */
struct atmel_nand_data { struct atmel_nand_data {
u8 enable_pin; /* chip enable */ int enable_pin; /* chip enable */
u8 det_pin; /* card detect */ int det_pin; /* card detect */
u8 rdy_pin; /* ready/busy */ int rdy_pin; /* ready/busy */
u8 rdy_pin_active_low; /* rdy_pin value is inverted */ u8 rdy_pin_active_low; /* rdy_pin value is inverted */
u8 ale; /* address line number connected to ALE */ u8 ale; /* address line number connected to ALE */
u8 cle; /* address line number connected to CLE */ u8 cle; /* address line number connected to CLE */
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
struct macb_platform_data { struct macb_platform_data {
u32 phy_mask; u32 phy_mask;
u8 phy_irq_pin; /* PHY IRQ */ int phy_irq_pin; /* PHY IRQ */
u8 is_rmii; /* using RMII interface? */ u8 is_rmii; /* using RMII interface? */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment