upload tizen1.0 source
[kernel/linux-2.6.36.git] / drivers / media / video / samsung / fimc / csis.h
1 /* linux/drivers/media/video/samsung/csis.h
2  *
3  * Copyright (c) 2010 Samsung Electronics Co,. Ltd.
4  *      http://www.samsung.com/
5  *
6  * Header file for Samsung MIPI-CSI2 driver
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11 */
12
13 #ifndef __CSIS_H
14 #define __CSIS_H __FILE__
15
16 #define S3C_CSIS_NAME           "s3c-csis"
17 #define S3C_CSIS_NR_LANES       1
18
19 #ifdef CONFIG_CPU_S5PV310
20 #define S3C_CSIS_CH_NUM         2
21 #else
22 #define S3C_CSIS_CH_NUM         1
23 #endif
24
25 #define info(args...)   \
26         do { printk(KERN_INFO S3C_CSIS_NAME ": " args); } while (0)
27 #define err(args...)    \
28         do { printk(KERN_ERR  S3C_CSIS_NAME ": " args); } while (0)
29
30 enum mipi_format {
31         MIPI_CSI_YCBCR422_8BIT  = 0x1e,
32         MIPI_CSI_RAW8           = 0x2a,
33         MIPI_CSI_RAW10          = 0x2b,
34         MIPI_CSI_RAW12          = 0x2c,
35         MIPI_USER_DEF_PACKET_1  = 0x30, /* User defined Byte-based packet 1 */
36 };
37
38 struct s3c_csis_info {
39         char            name[16];
40         struct device   *dev;
41         struct clk      *clock;
42         void __iomem    *regs;
43         int             irq;
44         int             nr_lanes;
45 };
46
47 #endif /* __CSIS_H */