Skip to content

Commit

Permalink
ARM: shmobile: r8a73a4 PFC support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Simon Horman committed Apr 2, 2013
1 parent 984ca29 commit d313d06
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-shmobile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ config ARCH_SH73A0

config ARCH_R8A73A4
bool "R-Mobile APE6 (R8A73A40)"
select ARCH_WANT_OPTIONAL_GPIOLIB
select ARM_GIC
select CPU_V7
select ARM_ARCH_TIMER
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-shmobile/include/mach/r8a73a4.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

void r8a73a4_add_standard_devices(void);
void r8a73a4_clock_init(void);
void r8a73a4_pinmux_init(void);

#endif /* __ASM_R8A73A4_H__ */
10 changes: 10 additions & 0 deletions arch/arm/mach-shmobile/setup-r8a73a4.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
#include <mach/r8a73a4.h>
#include <asm/mach/arch.h>

static const struct resource pfc_resources[] = {
DEFINE_RES_MEM(0xe6050000, 0x9000),
};

void __init r8a73a4_pinmux_init(void)
{
platform_device_register_simple("pfc-r8a73a4", -1, pfc_resources,
ARRAY_SIZE(pfc_resources));
}

#define SCIF_COMMON(scif_type, baseaddr, irq) \
.type = scif_type, \
.mapbase = baseaddr, \
Expand Down

0 comments on commit d313d06

Please sign in to comment.