diff options
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7740.c')
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7740.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 11bb1d984197..095222469d03 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c | |||
@@ -66,12 +66,6 @@ static struct map_desc r8a7740_io_desc[] __initdata = { | |||
66 | void __init r8a7740_map_io(void) | 66 | void __init r8a7740_map_io(void) |
67 | { | 67 | { |
68 | iotable_init(r8a7740_io_desc, ARRAY_SIZE(r8a7740_io_desc)); | 68 | iotable_init(r8a7740_io_desc, ARRAY_SIZE(r8a7740_io_desc)); |
69 | |||
70 | /* | ||
71 | * DMA memory at 0xff200000 - 0xffdfffff. The default 2MB size isn't | ||
72 | * enough to allocate the frame buffer memory. | ||
73 | */ | ||
74 | init_consistent_dma_size(12 << 20); | ||
75 | } | 69 | } |
76 | 70 | ||
77 | /* SCIFA0 */ | 71 | /* SCIFA0 */ |
@@ -590,6 +584,21 @@ static struct platform_device i2c1_device = { | |||
590 | .num_resources = ARRAY_SIZE(i2c1_resources), | 584 | .num_resources = ARRAY_SIZE(i2c1_resources), |
591 | }; | 585 | }; |
592 | 586 | ||
587 | static struct resource pmu_resources[] = { | ||
588 | [0] = { | ||
589 | .start = evt2irq(0x19a0), | ||
590 | .end = evt2irq(0x19a0), | ||
591 | .flags = IORESOURCE_IRQ, | ||
592 | }, | ||
593 | }; | ||
594 | |||
595 | static 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 | |||
593 | static struct platform_device *r8a7740_late_devices[] __initdata = { | 602 | static struct platform_device *r8a7740_late_devices[] __initdata = { |
594 | &i2c0_device, | 603 | &i2c0_device, |
595 | &i2c1_device, | 604 | &i2c1_device, |
@@ -597,6 +606,7 @@ static struct platform_device *r8a7740_late_devices[] __initdata = { | |||
597 | &dma1_device, | 606 | &dma1_device, |
598 | &dma2_device, | 607 | &dma2_device, |
599 | &usb_dma_device, | 608 | &usb_dma_device, |
609 | &pmu_device, | ||
600 | }; | 610 | }; |
601 | 611 | ||
602 | /* | 612 | /* |
@@ -747,7 +757,7 @@ static const char *r8a7740_boards_compat_dt[] __initdata = { | |||
747 | NULL, | 757 | NULL, |
748 | }; | 758 | }; |
749 | 759 | ||
750 | DT_MACHINE_START(SH7372_DT, "Generic R8A7740 (Flattened Device Tree)") | 760 | DT_MACHINE_START(R8A7740_DT, "Generic R8A7740 (Flattened Device Tree)") |
751 | .map_io = r8a7740_map_io, | 761 | .map_io = r8a7740_map_io, |
752 | .init_early = r8a7740_add_early_devices_dt, | 762 | .init_early = r8a7740_add_early_devices_dt, |
753 | .init_irq = r8a7740_init_irq, | 763 | .init_irq = r8a7740_init_irq, |