]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: shmobile: r8a7778: Register PFC device
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 12 Apr 2013 05:37:50 +0000 (05:37 +0000)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 24 Apr 2013 08:05:45 +0000 (17:05 +0900)
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/include/mach/r8a7778.h
arch/arm/mach-shmobile/setup-r8a7778.c

index ff674c5f2d03798f6ca5ffc6c3b3760828e3df86..3e7ad45cc931f3468bdb4b4c21dc9266476ef8bd 100644 (file)
@@ -37,6 +37,7 @@ config ARCH_R8A7740
 
 config ARCH_R8A7778
        bool "R-Car M1 (R8A77780)"
+       select ARCH_WANT_OPTIONAL_GPIOLIB
        select CPU_V7
        select SH_CLK_CPG
        select ARM_GIC
index 951149e6bcca20ca26df5b177086435ce50adc1e..68053fc4d9dcc106c5e40c422c099b4506d22da8 100644 (file)
@@ -28,5 +28,6 @@ extern void r8a7778_init_irq(void);
 extern void r8a7778_init_irq_dt(void);
 extern void r8a7778_clock_init(void);
 extern void r8a7778_init_irq_extpin(int irlm);
+extern void r8a7778_pinmux_init(void);
 
 #endif /* __ASM_R8A7778_H__ */
index 45f0e45794236e26e417a99cae3576027e042ea2..d82954b97abbd63da71c5cebac2ea876bdbfe76a 100644 (file)
@@ -102,6 +102,19 @@ void __init r8a7778_add_ether_device(struct sh_eth_plat_data *pdata)
                                          pdata, sizeof(*pdata));
 }
 
+/* PFC */
+static struct resource pfc_resources[] = {
+       DEFINE_RES_MEM(0xfffc0000, 0x118),
+};
+
+void __init r8a7778_pinmux_init(void)
+{
+       platform_device_register_simple(
+               "pfc-r8a7778", -1,
+               pfc_resources,
+               ARRAY_SIZE(pfc_resources));
+}
+
 void __init r8a7778_add_standard_devices(void)
 {
        int i;