aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-03-27 11:50:03 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-04-01 22:02:20 -0400
commit69e351d029985a31abd41b2b8729788a01e8588d (patch)
tree1953be158e979330d020ce0d80fbe6d9d92cb9d4
parent8f5ec0a57ef503e7609d763cadba55f12b9486ce (diff)
ARM: shmobile: r8a7790 PFC support
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>
-rw-r--r--arch/arm/mach-shmobile/Kconfig1
-rw-r--r--arch/arm/mach-shmobile/include/mach/r8a7790.h1
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7790.c10
3 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index ccaea6aecea0..ff674c5f2d03 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -53,6 +53,7 @@ config ARCH_R8A7779
53 53
54config ARCH_R8A7790 54config ARCH_R8A7790
55 bool "R-Car H2 (R8A77900)" 55 bool "R-Car H2 (R8A77900)"
56 select ARCH_WANT_OPTIONAL_GPIOLIB
56 select ARM_GIC 57 select ARM_GIC
57 select CPU_V7 58 select CPU_V7
58 select ARM_ARCH_TIMER 59 select ARM_ARCH_TIMER
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7790.h b/arch/arm/mach-shmobile/include/mach/r8a7790.h
index f38ded61285f..9bd6f5c894bb 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7790.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7790.h
@@ -3,5 +3,6 @@
3 3
4void r8a7790_add_standard_devices(void); 4void r8a7790_add_standard_devices(void);
5void r8a7790_clock_init(void); 5void r8a7790_clock_init(void);
6void r8a7790_pinmux_init(void);
6 7
7#endif /* __ASM_R8A7790_H__ */ 8#endif /* __ASM_R8A7790_H__ */
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
index 9b4ccd7b5031..481201a4f3f5 100644
--- a/arch/arm/mach-shmobile/setup-r8a7790.c
+++ b/arch/arm/mach-shmobile/setup-r8a7790.c
@@ -29,6 +29,16 @@
29#include <mach/r8a7790.h> 29#include <mach/r8a7790.h>
30#include <asm/mach/arch.h> 30#include <asm/mach/arch.h>
31 31
32static const struct resource pfc_resources[] = {
33 DEFINE_RES_MEM(0xe6060000, 0x250),
34};
35
36void __init r8a7790_pinmux_init(void)
37{
38 platform_device_register_simple("pfc-r8a7790", -1, pfc_resources,
39 ARRAY_SIZE(pfc_resources));
40}
41
32#define SCIF_COMMON(scif_type, baseaddr, irq) \ 42#define SCIF_COMMON(scif_type, baseaddr, irq) \
33 .type = scif_type, \ 43 .type = scif_type, \
34 .mapbase = baseaddr, \ 44 .mapbase = baseaddr, \