|
@@ -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);
|
|
|
|
|
|
/* Compact Flash */
|
|
/* Compact Flash */
|
|
struct at91_cf_data {
|
|
struct at91_cf_data {
|
|
- u8 irq_pin; /* I/O IRQ */
|
|
|
|
- u8 det_pin; /* Card detect */
|
|
|
|
- u8 vcc_pin; /* power switching */
|
|
|
|
- u8 rst_pin; /* card reset */
|
|
|
|
|
|
+ int irq_pin; /* I/O IRQ */
|
|
|
|
+ int det_pin; /* Card detect */
|
|
|
|
+ int vcc_pin; /* power switching */
|
|
|
|
+ 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);
|
|
/* 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 */
|
|
|
|
- u8 vcc_pin; /* power switching (high == on) */
|
|
|
|
|
|
+ int wp_pin; /* (SD) writeprotect detect */
|
|
|
|
+ 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);
|
|
/* 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);
|
|
|
|
|
|
/* NAND / SmartMedia */
|
|
/* NAND / SmartMedia */
|
|
struct atmel_nand_data {
|
|
struct atmel_nand_data {
|
|
- u8 enable_pin; /* chip enable */
|
|
|
|
- u8 det_pin; /* card detect */
|
|
|
|
- u8 rdy_pin; /* ready/busy */
|
|
|
|
|
|
+ int enable_pin; /* chip enable */
|
|
|
|
+ int det_pin; /* card detect */
|
|
|
|
+ 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 */
|