aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/dev-fimc-lite.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos/dev-fimc-lite.c')
-rw-r--r--arch/arm/mach-exynos/dev-fimc-lite.c85
1 files changed, 85 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/dev-fimc-lite.c b/arch/arm/mach-exynos/dev-fimc-lite.c
new file mode 100644
index 0000000..9187566
--- /dev/null
+++ b/arch/arm/mach-exynos/dev-fimc-lite.c
@@ -0,0 +1,85 @@
+/* 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 <linux/kernel.h>
+#include <linux/platform_device.h>
+#include <linux/interrupt.h>
+#include <linux/ioport.h>
+#include <mach/map.h>
+#include <media/exynos_flite.h>
+
+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