Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: jz4740: Register jz4740 DMA device

Register a device for the newly added jz4740 dmaengine driver.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
[manually edited to align struct assignment]
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Lars-Peter Clausen and committed by
Vinod Koul
cdcb90ad 7c169a42

+23
+1
arch/mips/include/asm/mach-jz4740/platform.h
··· 32 32 extern struct platform_device jz4740_adc_device; 33 33 extern struct platform_device jz4740_wdt_device; 34 34 extern struct platform_device jz4740_pwm_device; 35 + extern struct platform_device jz4740_dma_device; 35 36 36 37 void jz4740_serial_device_register(void); 37 38
+1
arch/mips/jz4740/board-qi_lb60.c
··· 438 438 &jz4740_rtc_device, 439 439 &jz4740_adc_device, 440 440 &jz4740_pwm_device, 441 + &jz4740_dma_device, 441 442 &qi_lb60_gpio_keys, 442 443 &qi_lb60_pwm_beeper, 443 444 &qi_lb60_charger_device,
+21
arch/mips/jz4740/platform.c
··· 329 329 .name = "jz4740-pwm", 330 330 .id = -1, 331 331 }; 332 + 333 + /* DMA */ 334 + static struct resource jz4740_dma_resources[] = { 335 + { 336 + .start = JZ4740_DMAC_BASE_ADDR, 337 + .end = JZ4740_DMAC_BASE_ADDR + 0x400 - 1, 338 + .flags = IORESOURCE_MEM, 339 + }, 340 + { 341 + .start = JZ4740_IRQ_DMAC, 342 + .end = JZ4740_IRQ_DMAC, 343 + .flags = IORESOURCE_IRQ, 344 + }, 345 + }; 346 + 347 + struct platform_device jz4740_dma_device = { 348 + .name = "jz4740-dma", 349 + .id = -1, 350 + .num_resources = ARRAY_SIZE(jz4740_dma_resources), 351 + .resource = jz4740_dma_resources, 352 + };