ARM: shmobile: r8a7790 PFC support
authorMagnus Damm <damm@opensource.se>
Wed, 27 Mar 2013 15:50:03 +0000 (00:50 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 2 Apr 2013 02:02:20 +0000 (11:02 +0900)
Add a platform device for the r8a7790 PFC.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/Kconfig
arch/arm/mach-shmobile/include/mach/r8a7790.h
arch/arm/mach-shmobile/setup-r8a7790.c

index ccaea6aecea0ae884e1ae2fddb553522ca4288ea..ff674c5f2d03798f6ca5ffc6c3b3760828e3df86 100644 (file)
@@ -53,6 +53,7 @@ config ARCH_R8A7779
 
 config ARCH_R8A7790
        bool "R-Car H2 (R8A77900)"
+       select ARCH_WANT_OPTIONAL_GPIOLIB
        select ARM_GIC
        select CPU_V7
        select ARM_ARCH_TIMER
index f38ded61285fbdae779afb2765c258bb88d41c33..9bd6f5c894bbe07a6440f6af00ae8d81fccb6e61 100644 (file)
@@ -3,5 +3,6 @@
 
 void r8a7790_add_standard_devices(void);
 void r8a7790_clock_init(void);
+void r8a7790_pinmux_init(void);
 
 #endif /* __ASM_R8A7790_H__ */
index 9b4ccd7b503140c86b40d425f95f5580c51d07ee..481201a4f3f5774b047984ebcb290b94b6319807 100644 (file)
 #include <mach/r8a7790.h>
 #include <asm/mach/arch.h>
 
+static const struct resource pfc_resources[] = {
+       DEFINE_RES_MEM(0xe6060000, 0x250),
+};
+
+void __init r8a7790_pinmux_init(void)
+{
+       platform_device_register_simple("pfc-r8a7790", -1, pfc_resources,
+                                       ARRAY_SIZE(pfc_resources));
+}
+
 #define SCIF_COMMON(scif_type, baseaddr, irq)                  \
        .type           = scif_type,                            \
        .mapbase        = baseaddr,                             \