aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-r8a7740.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7740.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7740.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index 96f11394c7c0..095222469d03 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -584,6 +584,21 @@ static struct platform_device i2c1_device = {
584 .num_resources = ARRAY_SIZE(i2c1_resources), 584 .num_resources = ARRAY_SIZE(i2c1_resources),
585}; 585};
586 586
587static struct resource pmu_resources[] = {
588 [0] = {
589 .start = evt2irq(0x19a0),
590 .end = evt2irq(0x19a0),
591 .flags = IORESOURCE_IRQ,
592 },
593};
594
595static struct platform_device pmu_device = {
596 .name = "arm-pmu",
597 .id = -1,
598 .num_resources = ARRAY_SIZE(pmu_resources),
599 .resource = pmu_resources,
600};
601
587static struct platform_device *r8a7740_late_devices[] __initdata = { 602static struct platform_device *r8a7740_late_devices[] __initdata = {
588 &i2c0_device, 603 &i2c0_device,
589 &i2c1_device, 604 &i2c1_device,
@@ -591,6 +606,7 @@ static struct platform_device *r8a7740_late_devices[] __initdata = {
591 &dma1_device, 606 &dma1_device,
592 &dma2_device, 607 &dma2_device,
593 &usb_dma_device, 608 &usb_dma_device,
609 &pmu_device,
594}; 610};
595 611
596/* 612/*
@@ -741,7 +757,7 @@ static const char *r8a7740_boards_compat_dt[] __initdata = {
741 NULL, 757 NULL,
742}; 758};
743 759
744DT_MACHINE_START(SH7372_DT, "Generic R8A7740 (Flattened Device Tree)") 760DT_MACHINE_START(R8A7740_DT, "Generic R8A7740 (Flattened Device Tree)")
745 .map_io = r8a7740_map_io, 761 .map_io = r8a7740_map_io,
746 .init_early = r8a7740_add_early_devices_dt, 762 .init_early = r8a7740_add_early_devices_dt,
747 .init_irq = r8a7740_init_irq, 763 .init_irq = r8a7740_init_irq,