Commit c019d49b authored by Andrew Victor's avatar Andrew Victor Committed by Russell King

[ARM] 3972/1: AT91: Update board.h

Replace the 'is_b' variable with 'slot_b' in at91_mmc_data.
Also add the new 'chipselect' variable for CF/PCMCIA and 'bus_width_16'
variable for NAND.

This (and previous patches) will unfortunately break the current MMC,
USB Gadget and PCMCIA drivers.  Updates and fixes for those drivers will
be submitted to the various subsystem maintainers.
Signed-off-by: default avatarAndrew Victor <andrew@sanpeople.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 69c5eccd
...@@ -88,7 +88,7 @@ static struct at91_udc_data __initdata carmeva_udc_data = { ...@@ -88,7 +88,7 @@ static struct at91_udc_data __initdata carmeva_udc_data = {
// }; // };
static struct at91_mmc_data __initdata carmeva_mmc_data = { static struct at91_mmc_data __initdata carmeva_mmc_data = {
.is_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.det_pin = AT91_PIN_PB10, .det_pin = AT91_PIN_PB10,
.wp_pin = AT91_PIN_PC14, .wp_pin = AT91_PIN_PC14,
......
...@@ -99,7 +99,7 @@ static struct at91_cf_data __initdata csb337_cf_data = { ...@@ -99,7 +99,7 @@ static struct at91_cf_data __initdata csb337_cf_data = {
static struct at91_mmc_data __initdata csb337_mmc_data = { static struct at91_mmc_data __initdata csb337_mmc_data = {
.det_pin = AT91_PIN_PD5, .det_pin = AT91_PIN_PD5,
.is_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.wp_pin = AT91_PIN_PD6, .wp_pin = AT91_PIN_PD6,
}; };
......
...@@ -95,7 +95,7 @@ static struct at91_cf_data __initdata dk_cf_data = { ...@@ -95,7 +95,7 @@ static struct at91_cf_data __initdata dk_cf_data = {
}; };
static struct at91_mmc_data __initdata dk_mmc_data = { static struct at91_mmc_data __initdata dk_mmc_data = {
.is_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
}; };
......
...@@ -87,7 +87,7 @@ static struct at91_cf_data __initdata eb9200_cf_data = { ...@@ -87,7 +87,7 @@ static struct at91_cf_data __initdata eb9200_cf_data = {
}; };
static struct at91_mmc_data __initdata eb9200_mmc_data = { static struct at91_mmc_data __initdata eb9200_mmc_data = {
.is_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
}; };
......
...@@ -89,7 +89,7 @@ static struct at91_udc_data __initdata ek_udc_data = { ...@@ -89,7 +89,7 @@ static struct at91_udc_data __initdata ek_udc_data = {
static struct at91_mmc_data __initdata ek_mmc_data = { static struct at91_mmc_data __initdata ek_mmc_data = {
.det_pin = AT91_PIN_PB27, .det_pin = AT91_PIN_PB27,
.is_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
.wp_pin = AT91_PIN_PA17, .wp_pin = AT91_PIN_PA17,
}; };
......
...@@ -84,7 +84,7 @@ static struct at91_udc_data __initdata kb9202_udc_data = { ...@@ -84,7 +84,7 @@ static struct at91_udc_data __initdata kb9202_udc_data = {
static struct at91_mmc_data __initdata kb9202_mmc_data = { static struct at91_mmc_data __initdata kb9202_mmc_data = {
.det_pin = AT91_PIN_PB2, .det_pin = AT91_PIN_PB2,
.is_b = 0, .slot_b = 0,
.wire4 = 1, .wire4 = 1,
}; };
......
...@@ -48,13 +48,14 @@ struct at91_cf_data { ...@@ -48,13 +48,14 @@ struct at91_cf_data {
u8 det_pin; /* Card detect */ u8 det_pin; /* Card detect */
u8 vcc_pin; /* power switching */ u8 vcc_pin; /* power switching */
u8 rst_pin; /* card reset */ u8 rst_pin; /* card reset */
u8 chipselect; /* EBI Chip Select number */
}; };
extern void __init at91_add_device_cf(struct at91_cf_data *data); extern void __init at91_add_device_cf(struct at91_cf_data *data);
/* MMC / SD */ /* MMC / SD */
struct at91_mmc_data { struct at91_mmc_data {
u8 det_pin; /* card detect IRQ */ u8 det_pin; /* card detect IRQ */
unsigned is_b:1; /* uses B side (vs A) */ 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 wp_pin; /* (SD) writeprotect detect */
u8 vcc_pin; /* power switching (high == on) */ u8 vcc_pin; /* power switching (high == on) */
...@@ -81,6 +82,7 @@ struct at91_nand_data { ...@@ -81,6 +82,7 @@ struct at91_nand_data {
u8 rdy_pin; /* ready/busy */ u8 rdy_pin; /* ready/busy */
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 */
u8 bus_width_16; /* buswidth is 16 bit */
struct mtd_partition* (*partition_info)(int, int*); struct mtd_partition* (*partition_info)(int, int*);
}; };
extern void __init at91_add_device_nand(struct at91_nand_data *data); extern void __init at91_add_device_nand(struct at91_nand_data *data);
......
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