16 #include <linux/device.h>
18 #include <linux/kernel.h>
20 #include <linux/resource.h>
28 #include <linux/serial_core.h>
35 static struct resource jz4740_usb_ohci_resources[] = {
49 .name =
"jz4740-ohci",
52 .dma_mask = &jz4740_usb_ohci_device.
dev.coherent_dma_mask,
55 .num_resources =
ARRAY_SIZE(jz4740_usb_ohci_resources),
56 .resource = jz4740_usb_ohci_resources,
60 static struct resource jz4740_usb_gdt_resources[] = {
77 .dma_mask = &jz4740_udc_device.
dev.coherent_dma_mask,
80 .num_resources =
ARRAY_SIZE(jz4740_usb_gdt_resources),
81 .resource = jz4740_usb_gdt_resources,
85 static struct resource jz4740_mmc_resources[] = {
102 .dma_mask = &jz4740_mmc_device.
dev.coherent_dma_mask,
105 .num_resources =
ARRAY_SIZE(jz4740_mmc_resources),
106 .resource = jz4740_mmc_resources,
110 static struct resource jz4740_rtc_resources[] = {
124 .name =
"jz4740-rtc",
126 .num_resources =
ARRAY_SIZE(jz4740_rtc_resources),
127 .resource = jz4740_rtc_resources,
131 static struct resource jz4740_i2c_resources[] = {
145 .name =
"jz4740-i2c",
147 .num_resources =
ARRAY_SIZE(jz4740_i2c_resources),
148 .resource = jz4740_i2c_resources,
152 static struct resource jz4740_nand_resources[] = {
162 .end = 0x180C0000 - 1,
168 .end = 0x140C0000 - 1,
174 .end = 0x0C0C0000 - 1,
180 .end = 0x080C0000 - 1,
186 .name =
"jz4740-nand",
187 .num_resources =
ARRAY_SIZE(jz4740_nand_resources),
188 .resource = jz4740_nand_resources,
192 static struct resource jz4740_framebuffer_resources[] = {
203 .num_resources =
ARRAY_SIZE(jz4740_framebuffer_resources),
204 .resource = jz4740_framebuffer_resources,
206 .dma_mask = &jz4740_framebuffer_device.
dev.coherent_dma_mask,
212 static struct resource jz4740_i2s_resources[] = {
221 .name =
"jz4740-i2s",
223 .num_resources =
ARRAY_SIZE(jz4740_i2s_resources),
224 .resource = jz4740_i2s_resources,
229 .name =
"jz4740-pcm-audio",
234 static struct resource jz4740_codec_resources[] = {
243 .name =
"jz4740-codec",
245 .num_resources =
ARRAY_SIZE(jz4740_codec_resources),
246 .resource = jz4740_codec_resources,
250 static struct resource jz4740_adc_resources[] = {
269 .name =
"jz4740-adc",
271 .num_resources =
ARRAY_SIZE(jz4740_adc_resources),
272 .resource = jz4740_adc_resources,
276 #define JZ4740_UART_DATA(_id) \
278 .flags = UPF_SKIP_TEST | UPF_IOREMAP | UPF_FIXED_TYPE, \
279 .iotype = UPIO_MEM, \
281 .serial_out = jz4740_serial_out, \
282 .type = PORT_16550, \
283 .mapbase = JZ4740_UART ## _id ## _BASE_ADDR, \
284 .irq = JZ4740_IRQ_UART ## _id, \
294 .name =
"serial8250",
297 .platform_data = jz4740_uart_data,
305 for (p = jz4740_uart_data; p->
flags != 0; ++
p)
312 static struct resource jz4740_wdt_resources[] = {
321 .name =
"jz4740-wdt",
323 .num_resources =
ARRAY_SIZE(jz4740_wdt_resources),
324 .resource = jz4740_wdt_resources,
329 .name =
"jz4740-pwm",