summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Matyukevich <geomatsi@gmail.com>2009-07-30 23:29:07 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-08-01 17:24:59 +0200
commit0c30df6fe0bd1e3845357e793dc1bfd908751c45 (patch)
tree24b59ef0186784f7623e91236c5b1f03b79d6331
parentARM: 5631/1: Platform data for CF/IDE support in AT91SAM9260 (diff)
downloadlinux-0c30df6fe0bd1e3845357e793dc1bfd908751c45.tar.xz
linux-0c30df6fe0bd1e3845357e793dc1bfd908751c45.zip
ARM: 5632/1: Board-specific data for IDE support on afeb9260
This patch adds board-specific data for IDE support on afeb9260. Depends on #5631/1 Tested-by: Sergey Matyukevich <geomatsi@gmail.com> Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> Acked-by: Andrew Victor <linux@maxim.org.za> Acked-by: Sergey Lapin <slapin@ossfans.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/mach-at91/board-afeb-9260v1.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/board-afeb-9260v1.c b/arch/arm/mach-at91/board-afeb-9260v1.c
index 970fd6b6753e..61e52b66bc72 100644
--- a/arch/arm/mach-at91/board-afeb-9260v1.c
+++ b/arch/arm/mach-at91/board-afeb-9260v1.c
@@ -174,6 +174,16 @@ static struct i2c_board_info __initdata afeb9260_i2c_devices[] = {
},
};
+/*
+ * IDE (CF True IDE mode)
+ */
+static struct at91_cf_data afeb9260_cf_data = {
+ .chipselect = 4,
+ .irq_pin = AT91_PIN_PA6,
+ .rst_pin = AT91_PIN_PA7,
+ .flags = AT91_CF_TRUE_IDE,
+};
+
static void __init afeb9260_board_init(void)
{
/* Serial */
@@ -202,6 +212,8 @@ static void __init afeb9260_board_init(void)
ARRAY_SIZE(afeb9260_i2c_devices));
/* Audio */
at91_add_device_ssc(AT91SAM9260_ID_SSC, ATMEL_SSC_TX);
+ /* IDE */
+ at91_add_device_cf(&afeb9260_cf_data);
}
MACHINE_START(AFEB9260, "Custom afeb9260 board")