From 693e55f09b99ca2028a55494da9f9af50258f6ba Mon Sep 17 00:00:00 2001 From: kfx Date: Mon, 16 Jul 2012 18:07:00 +0800 Subject: [PATCH] rk2928: devices.c: add rga support --- arch/arm/mach-rk2928/devices.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-rk2928/devices.c b/arch/arm/mach-rk2928/devices.c index 4f8ea31fbdbe..65088c834bcc 100755 --- a/arch/arm/mach-rk2928/devices.c +++ b/arch/arm/mach-rk2928/devices.c @@ -490,6 +490,27 @@ static void __init rk2928_init_spim(void) platform_device_register(&rk29xx_device_spi0m); #endif } +#ifdef CONFIG_RGA_RK30 +static struct resource resource_rga[] = { + [0] = { + .start = RK30_RGA_PHYS, + .end = RK30_RGA_PHYS + RK30_RGA_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_RGA, + .end = IRQ_RGA, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device device_rga = { + .name = "rga", + .id = -1, + .num_resources = ARRAY_SIZE(resource_rga), + .resource = resource_rga, +}; +#endif #ifdef CONFIG_SND_RK29_SOC_I2S #ifdef CONFIG_SND_RK29_SOC_I2S_8CH static struct resource resource_iis0_8ch[] = { @@ -554,6 +575,9 @@ static int __init rk2928_init_devices(void) #ifdef CONFIG_KEYS_RK29 platform_device_register(&device_keys); #endif +#ifdef CONFIG_RGA_RK30 + platform_device_register(&device_rga); +#endif #if defined(CONFIG_FIQ_DEBUGGER) && defined(DEBUG_UART_PHYS) rk_serial_debug_init(DEBUG_UART_BASE, IRQ_DEBUG_UART, IRQ_UART_SIGNAL, -1); #endif -- 2.34.1