ARM: shmobile: r8a7778: Register PFC device
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>
This commit is contained in:
parent
9904319d4f
commit
369b00bbe5
|
@ -37,6 +37,7 @@ config ARCH_R8A7740
|
||||||
|
|
||||||
config ARCH_R8A7778
|
config ARCH_R8A7778
|
||||||
bool "R-Car M1 (R8A77780)"
|
bool "R-Car M1 (R8A77780)"
|
||||||
|
select ARCH_WANT_OPTIONAL_GPIOLIB
|
||||||
select CPU_V7
|
select CPU_V7
|
||||||
select SH_CLK_CPG
|
select SH_CLK_CPG
|
||||||
select ARM_GIC
|
select ARM_GIC
|
||||||
|
|
|
@ -28,5 +28,6 @@ extern void r8a7778_init_irq(void);
|
||||||
extern void r8a7778_init_irq_dt(void);
|
extern void r8a7778_init_irq_dt(void);
|
||||||
extern void r8a7778_clock_init(void);
|
extern void r8a7778_clock_init(void);
|
||||||
extern void r8a7778_init_irq_extpin(int irlm);
|
extern void r8a7778_init_irq_extpin(int irlm);
|
||||||
|
extern void r8a7778_pinmux_init(void);
|
||||||
|
|
||||||
#endif /* __ASM_R8A7778_H__ */
|
#endif /* __ASM_R8A7778_H__ */
|
||||||
|
|
|
@ -94,6 +94,19 @@ static struct resource ether_resources[] = {
|
||||||
&sh_tmu##idx##_platform_data, \
|
&sh_tmu##idx##_platform_data, \
|
||||||
sizeof(sh_tmu##idx##_platform_data))
|
sizeof(sh_tmu##idx##_platform_data))
|
||||||
|
|
||||||
|
/* 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)
|
void __init r8a7778_add_standard_devices(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue