diff options
author | Magnus Damm <damm@opensource.se> | 2013-03-25 21:34:52 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-04-01 21:58:20 -0400 |
commit | d313d068d4b5801ea9c0c66bed66f37c64ad6807 (patch) | |
tree | 0f7e9af4d8423b98dbfe014625e4f11f6cf53cd6 | |
parent | 984ca295010ad0113b986a404931566f9b1791d4 (diff) |
ARM: shmobile: r8a73a4 PFC support
Add a platform device for the r8a73a4 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/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r8a73a4.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a73a4.c | 10 |
3 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig index 17a59cde826e..0e4a820bcbe8 100644 --- a/arch/arm/mach-shmobile/Kconfig +++ b/arch/arm/mach-shmobile/Kconfig | |||
@@ -20,6 +20,7 @@ config ARCH_SH73A0 | |||
20 | 20 | ||
21 | config ARCH_R8A73A4 | 21 | config ARCH_R8A73A4 |
22 | bool "R-Mobile APE6 (R8A73A40)" | 22 | bool "R-Mobile APE6 (R8A73A40)" |
23 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
23 | select ARM_GIC | 24 | select ARM_GIC |
24 | select CPU_V7 | 25 | select CPU_V7 |
25 | select ARM_ARCH_TIMER | 26 | select ARM_ARCH_TIMER |
diff --git a/arch/arm/mach-shmobile/include/mach/r8a73a4.h b/arch/arm/mach-shmobile/include/mach/r8a73a4.h index 6db3495479d8..f043103e32c9 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a73a4.h +++ b/arch/arm/mach-shmobile/include/mach/r8a73a4.h | |||
@@ -3,5 +3,6 @@ | |||
3 | 3 | ||
4 | void r8a73a4_add_standard_devices(void); | 4 | void r8a73a4_add_standard_devices(void); |
5 | void r8a73a4_clock_init(void); | 5 | void r8a73a4_clock_init(void); |
6 | void r8a73a4_pinmux_init(void); | ||
6 | 7 | ||
7 | #endif /* __ASM_R8A73A4_H__ */ | 8 | #endif /* __ASM_R8A73A4_H__ */ |
diff --git a/arch/arm/mach-shmobile/setup-r8a73a4.c b/arch/arm/mach-shmobile/setup-r8a73a4.c index da5ae1611518..c2d86f30cde4 100644 --- a/arch/arm/mach-shmobile/setup-r8a73a4.c +++ b/arch/arm/mach-shmobile/setup-r8a73a4.c | |||
@@ -28,6 +28,16 @@ | |||
28 | #include <mach/r8a73a4.h> | 28 | #include <mach/r8a73a4.h> |
29 | #include <asm/mach/arch.h> | 29 | #include <asm/mach/arch.h> |
30 | 30 | ||
31 | static const struct resource pfc_resources[] = { | ||
32 | DEFINE_RES_MEM(0xe6050000, 0x9000), | ||
33 | }; | ||
34 | |||
35 | void __init r8a73a4_pinmux_init(void) | ||
36 | { | ||
37 | platform_device_register_simple("pfc-r8a73a4", -1, pfc_resources, | ||
38 | ARRAY_SIZE(pfc_resources)); | ||
39 | } | ||
40 | |||
31 | #define SCIF_COMMON(scif_type, baseaddr, irq) \ | 41 | #define SCIF_COMMON(scif_type, baseaddr, irq) \ |
32 | .type = scif_type, \ | 42 | .type = scif_type, \ |
33 | .mapbase = baseaddr, \ | 43 | .mapbase = baseaddr, \ |