aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentine Barshak <valentine.barshak@cogentembedded.com>2014-01-09 10:23:22 -0500
committerSimon Horman <horms+renesas@verge.net.au>2014-02-03 20:17:55 -0500
commit4fc0a0b93f178c0b077201ab70a53e1be6a69054 (patch)
tree561a932a7f57ffe5b1f64cc791b9faa8e3167018
parent1e0d2c495316862fa3da73150ee86ba30c9faf0c (diff)
ARM: shmobile: koelsch: Add SATA0 support
This adds SATA0 support to Koelsch board. SATA1 is not available since its pinmux configuration is fixed to PCIe. Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/mach-shmobile/board-koelsch.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c
index de7cc64b1f37..2ab5c75ba2c2 100644
--- a/arch/arm/mach-shmobile/board-koelsch.c
+++ b/arch/arm/mach-shmobile/board-koelsch.c
@@ -148,6 +148,21 @@ static const struct gpio_keys_platform_data koelsch_keys_pdata __initconst = {
148 .nbuttons = ARRAY_SIZE(gpio_buttons), 148 .nbuttons = ARRAY_SIZE(gpio_buttons),
149}; 149};
150 150
151/* SATA0 */
152static const struct resource sata0_resources[] __initconst = {
153 DEFINE_RES_MEM(0xee300000, 0x2000),
154 DEFINE_RES_IRQ(gic_spi(105)),
155};
156
157static const struct platform_device_info sata0_info __initconst = {
158 .parent = &platform_bus,
159 .name = "sata-r8a7791",
160 .id = 0,
161 .res = sata0_resources,
162 .num_res = ARRAY_SIZE(sata0_resources),
163 .dma_mask = DMA_BIT_MASK(32),
164};
165
151static const struct pinctrl_map koelsch_pinctrl_map[] = { 166static const struct pinctrl_map koelsch_pinctrl_map[] = {
152 /* DU */ 167 /* DU */
153 PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7791", "pfc-r8a7791", 168 PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7791", "pfc-r8a7791",
@@ -192,6 +207,8 @@ static void __init koelsch_add_standard_devices(void)
192 sizeof(koelsch_keys_pdata)); 207 sizeof(koelsch_keys_pdata));
193 208
194 koelsch_add_du_device(); 209 koelsch_add_du_device();
210
211 platform_device_register_full(&sata0_info);
195} 212}
196 213
197/* 214/*