aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7790.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
index b6deb196bea3..8bfdc3627971 100644
--- a/arch/arm/mach-shmobile/setup-r8a7790.c
+++ b/arch/arm/mach-shmobile/setup-r8a7790.c
@@ -103,11 +103,14 @@ void __init r8a7790_pinmux_init(void)
103#define __R8A7790_SCIF(scif_type, _scscr, algo, index, baseaddr, irq) \ 103#define __R8A7790_SCIF(scif_type, _scscr, algo, index, baseaddr, irq) \
104static struct plat_sci_port scif##index##_platform_data = { \ 104static struct plat_sci_port scif##index##_platform_data = { \
105 .type = scif_type, \ 105 .type = scif_type, \
106 .mapbase = baseaddr, \
107 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, \ 106 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, \
108 .scbrr_algo_id = algo, \ 107 .scbrr_algo_id = algo, \
109 .scscr = _scscr, \ 108 .scscr = _scscr, \
110 .irqs = SCIx_IRQ_MUXED(irq), \ 109}; \
110 \
111static struct resource scif##index##_resources[] = { \
112 DEFINE_RES_MEM(baseaddr, 0x100), \
113 DEFINE_RES_IRQ(irq), \
111} 114}
112 115
113#define R8A7790_SCIF(index, baseaddr, irq) \ 116#define R8A7790_SCIF(index, baseaddr, irq) \
@@ -138,9 +141,11 @@ R8A7790_HSCIF(8, 0xe62c0000, gic_spi(154)); /* HSCIF0 */
138R8A7790_HSCIF(9, 0xe62c8000, gic_spi(155)); /* HSCIF1 */ 141R8A7790_HSCIF(9, 0xe62c8000, gic_spi(155)); /* HSCIF1 */
139 142
140#define r8a7790_register_scif(index) \ 143#define r8a7790_register_scif(index) \
141 platform_device_register_data(&platform_bus, "sh-sci", index, \ 144 platform_device_register_resndata(&platform_bus, "sh-sci", index, \
142 &scif##index##_platform_data, \ 145 scif##index##_resources, \
143 sizeof(scif##index##_platform_data)) 146 ARRAY_SIZE(scif##index##_resources), \
147 &scif##index##_platform_data, \
148 sizeof(scif##index##_platform_data))
144 149
145static const struct renesas_irqc_config irqc0_data __initconst = { 150static const struct renesas_irqc_config irqc0_data __initconst = {
146 .irq_base = irq_pin(0), /* IRQ0 -> IRQ3 */ 151 .irq_base = irq_pin(0), /* IRQ0 -> IRQ3 */