upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / plat-s5p / dev-dsim1.c
1 /* linux/arch/arm/plat-s5pc11x/dev-dsim1.c
2  *
3  * Copyright (c) 2011 Samsung Electronics Co., Ltd
4  *
5  * InKi Dae <inki.dae@samsung.com>
6  *
7  * device definitions for Samsung SoC MIPI-DSIM.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12 */
13
14 #include <linux/kernel.h>
15 #include <linux/string.h>
16 #include <linux/platform_device.h>
17 #include <linux/regulator/consumer.h>
18 #include <linux/fb.h>
19
20 #include <mach/map.h>
21 #include <asm/irq.h>
22
23 #include <plat/devs.h>
24 #include <plat/cpu.h>
25 #include <plat/fb.h>
26
27 #include <plat/mipi_dsim.h>
28
29 static struct resource s5p_mipi_dsim_resource[] = {
30         [0] = {
31                 .start = S5P_PA_MIPI_DSIM1,
32                 .end   = S5P_PA_MIPI_DSIM1 + SZ_64K - 1,
33                 .flags = IORESOURCE_MEM,
34         },
35         [1] = {
36                 .start = IRQ_MIPIDSI,
37                 .end   = IRQ_MIPIDSI,
38                 .flags = IORESOURCE_IRQ,
39         },
40 };
41
42 static struct s5p_platform_mipi_dsim dsim_platform_data = {
43         .phy_enable             = s5p_dsim_phy_enable,
44         .dsim_config            = &dsim_config,
45 };
46
47 struct platform_device s5p_device_mipi_dsim1 = {
48         .name                   = "s5p-mipi-dsim",
49         .id                     = 1,
50         .num_resources          = ARRAY_SIZE(s5p_mipi_dsim_resource),
51         .resource               = s5p_mipi_dsim_resource,
52 };