]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: lager: Add SATA support
authorValentine Barshak <valentine.barshak@cogentembedded.com>
Thu, 19 Dec 2013 17:57:23 +0000 (21:57 +0400)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Feb 2014 01:17:55 +0000 (10:17 +0900)
This adds SATA support to Lager board. Only SATA1 port is available.

Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Acked-by: Magnus Damm <damm@opensource.se>
[horms+renesas@verge.net.au: resolved trivial conflicts]
[horms+renesas@verge.net.au: capitalised "ARM" in subject]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-lager.c

index aa8f1d915865cb3b708c2f572325d8121b537d36..8dde4462f60089005106a5c56a83abe755c626f4 100644 (file)
@@ -349,6 +349,21 @@ static void __init lager_add_camera1_device(void)
        lager_add_vin_device(1, &vin1_pdata);
 }
 
+/* SATA1 */
+static const struct resource sata1_resources[] __initconst = {
+       DEFINE_RES_MEM(0xee500000, 0x2000),
+       DEFINE_RES_IRQ(gic_spi(106)),
+};
+
+static const struct platform_device_info sata1_info __initconst = {
+       .parent         = &platform_bus,
+       .name           = "sata-r8a7790",
+       .id             = 1,
+       .res            = sata1_resources,
+       .num_res        = ARRAY_SIZE(sata1_resources),
+       .dma_mask       = DMA_BIT_MASK(32),
+};
+
 static const struct pinctrl_map lager_pinctrl_map[] = {
        /* DU (CN10: ARGB0, CN13: LVDS) */
        PIN_MAP_MUX_GROUP_DEFAULT("rcar-du-r8a7790", "pfc-r8a7790",
@@ -444,6 +459,8 @@ static void __init lager_add_standard_devices(void)
                                      &vccq_sdhi2_info, sizeof(struct gpio_regulator_config));
 
        lager_add_camera1_device();
+
+       platform_device_register_full(&sata1_info);
 }
 
 /*