sh: use sm501 8250 mfd support on r2d boards

Make use of recently added sm501 8250 uart support, commit
61711f8fd8180e458cfb6846bcf4fc636a95f3db makes the mfd code
handle 8250 uarts so there is no longer need to do it from
the r2d board code.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by Magnus Damm and committed by Paul Mundt fa7ff086 b76baf4c

+1 -38
+1 -38
arch/sh/boards/renesas/rts7751r2d/setup.c
··· 11 11 #include <linux/init.h> 12 12 #include <linux/platform_device.h> 13 13 #include <linux/ata_platform.h> 14 - #include <linux/serial_8250.h> 15 14 #include <linux/sm501.h> 16 15 #include <linux/sm501-regs.h> 17 16 #include <linux/pm.h> ··· 108 109 .resource = heartbeat_resources, 109 110 }; 110 111 111 - static struct plat_serial8250_port uart_platform_data[] = { 112 - { 113 - .membase = (void __iomem *)0xb3e30000, 114 - .mapbase = 0xb3e30000, 115 - .iotype = UPIO_MEM, 116 - .irq = IRQ_VOYAGER, 117 - .flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ, 118 - .regshift = 2, 119 - .uartclk = (9600 * 16), 120 - }, 121 - { 0 }, 122 - }; 123 - 124 - static struct platform_device uart_device = { 125 - .name = "serial8250", 126 - .id = PLAT8250_DEV_PLATFORM, 127 - .dev = { 128 - .platform_data = uart_platform_data, 129 - }, 130 - }; 131 - 132 112 static struct resource sm501_resources[] = { 133 113 [0] = { 134 114 .start = 0x10000000, ··· 163 185 }; 164 186 165 187 static struct sm501_initdata sm501_initdata = { 166 - .gpio_high = { 167 - .set = 0x00001fe0, 168 - .mask = 0x0, 169 - }, 170 - .devices = SM501_USE_USB_HOST, 188 + .devices = SM501_USE_USB_HOST | SM501_USE_UART0, 171 189 }; 172 190 173 191 static struct sm501_platdata sm501_platform_data = { ··· 182 208 }; 183 209 184 210 static struct platform_device *rts7751r2d_devices[] __initdata = { 185 - &uart_device, 186 211 &sm501_device, 187 212 &heartbeat_device, 188 213 &spi_sh_sci_device, ··· 245 272 246 273 sm501_reg = (void __iomem *)0xb3e00000 + SM501_DRAM_CONTROL; 247 274 writel(readl(sm501_reg) | 0x00f107c0, sm501_reg); 248 - 249 - /* 250 - * Power Mode Gate - Enable UART0 251 - */ 252 - 253 - sm501_reg = (void __iomem *)0xb3e00000 + SM501_POWER_MODE_0_GATE; 254 - writel(readl(sm501_reg) | (1 << SM501_GATE_UART0), sm501_reg); 255 - 256 - sm501_reg = (void __iomem *)0xb3e00000 + SM501_POWER_MODE_1_GATE; 257 - writel(readl(sm501_reg) | (1 << SM501_GATE_UART0), sm501_reg); 258 275 } 259 276 260 277 /*