aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/davinci/vpif.c
diff options
context:
space:
mode:
authorMats Randgaard <mats.randgaard@cisco.com>2010-12-16 10:17:42 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-01-19 08:28:15 -0500
commitaa4444063505983c5971bc8fb832385dfba16b41 (patch)
tree6c9e1642c9350a6395d72755a290c475407aeeff /drivers/media/video/davinci/vpif.c
parent7036d6a73c88428764e4a12f30846279346f4382 (diff)
[media] vpif: Consolidate formats from capture and display
- The ch_params tables in vpif_capture.c and vpif_display.c are moved to a common table in vpif.c. Then it is easier to maintain the table. - The field "fps" is removed from the struct vpif_channel_config_params because it is not used. Signed-off-by: Mats Randgaard <mats.randgaard@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by : Murali Karicheri <mkaricheri@gmail.com> Acked-by: Manjunath Hadli <manjunath.hadli@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/davinci/vpif.c')
-rw-r--r--drivers/media/video/davinci/vpif.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/media/video/davinci/vpif.c b/drivers/media/video/davinci/vpif.c
index 1f532e31cd49..54cc0dadd755 100644
--- a/drivers/media/video/davinci/vpif.c
+++ b/drivers/media/video/davinci/vpif.c
@@ -41,6 +41,56 @@ spinlock_t vpif_lock;
41 41
42void __iomem *vpif_base; 42void __iomem *vpif_base;
43 43
44/**
45 * ch_params: video standard configuration parameters for vpif
46 * The table must include all presets from supported subdevices.
47 */
48const struct vpif_channel_config_params ch_params[] = {
49 /* SDTV formats */
50 {
51 .name = "NTSC_M",
52 .width = 720,
53 .height = 480,
54 .frm_fmt = 0,
55 .ycmux_mode = 1,
56 .eav2sav = 268,
57 .sav2eav = 1440,
58 .l1 = 1,
59 .l3 = 23,
60 .l5 = 263,
61 .l7 = 266,
62 .l9 = 286,
63 .l11 = 525,
64 .vsize = 525,
65 .capture_format = 0,
66 .vbi_supported = 1,
67 .hd_sd = 0,
68 .stdid = V4L2_STD_525_60,
69 },
70 {
71 .name = "PAL_BDGHIK",
72 .width = 720,
73 .height = 576,
74 .frm_fmt = 0,
75 .ycmux_mode = 1,
76 .eav2sav = 280,
77 .sav2eav = 1440,
78 .l1 = 1,
79 .l3 = 23,
80 .l5 = 311,
81 .l7 = 313,
82 .l9 = 336,
83 .l11 = 624,
84 .vsize = 625,
85 .capture_format = 0,
86 .vbi_supported = 1,
87 .hd_sd = 0,
88 .stdid = V4L2_STD_625_50,
89 },
90};
91
92const unsigned int vpif_ch_params_count = ARRAY_SIZE(ch_params);
93
44static inline void vpif_wr_bit(u32 reg, u32 bit, u32 val) 94static inline void vpif_wr_bit(u32 reg, u32 bit, u32 val)
45{ 95{
46 if (val) 96 if (val)