/* linux/arch/arm/plat-s5p/dev-fimc-lite.c * * Copyright (c) 2011 Samsung Electronics * * Base S5P FIMC-Lite resource and device definitions * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include #include #include #include #include #include static struct resource exynos_flite0_resource[] = { [0] = { .start = EXYNOS_PA_FIMC_LITE0, .end = EXYNOS_PA_FIMC_LITE0 + SZ_4K - 1, .flags = IORESOURCE_MEM, }, [1] = { .start = IRQ_FIMC_LITE0, .end = IRQ_FIMC_LITE0, .flags = IORESOURCE_IRQ, }, }; struct platform_device exynos_device_flite0 = { .name = "exynos-fimc-lite", .id = 0, .num_resources = ARRAY_SIZE(exynos_flite0_resource), .resource = exynos_flite0_resource, }; static struct resource exynos_flite1_resource[] = { [0] = { .start = EXYNOS_PA_FIMC_LITE1, .end = EXYNOS_PA_FIMC_LITE1 + SZ_4K - 1, .flags = IORESOURCE_MEM, }, [1] = { .start = IRQ_FIMC_LITE1, .end = IRQ_FIMC_LITE1, .flags = IORESOURCE_IRQ, }, }; struct platform_device exynos_device_flite1 = { .name = "exynos-fimc-lite", .id = 1, .num_resources = ARRAY_SIZE(exynos_flite1_resource), .resource = exynos_flite1_resource, }; #ifdef CONFIG_ARCH_EXYNOS5 static struct resource exynos_flite2_resource[] = { [0] = { .start = EXYNOS_PA_FIMC_LITE2, .end = EXYNOS_PA_FIMC_LITE2 + SZ_4K - 1, .flags = IORESOURCE_MEM, }, [1] = { .start = IRQ_FIMC_LITE2, .end = IRQ_FIMC_LITE2, .flags = IORESOURCE_IRQ, }, }; struct platform_device exynos_device_flite2 = { .name = "exynos-fimc-lite", .id = 2, .num_resources = ARRAY_SIZE(exynos_flite2_resource), .resource = exynos_flite2_resource, }; #endif struct exynos_platform_flite exynos_flite0_default_data __initdata; struct exynos_platform_flite exynos_flite1_default_data __initdata; #ifdef CONFIG_ARCH_EXYNOS5 struct exynos_platform_flite exynos_flite2_default_data __initdata; #endif