aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-01-20 13:07:54 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:45 -0400
commit24c64f42788004d2ec0cae2f8c07b4e76b0f69e1 (patch)
tree6aeba8add99cbe34aa736eb130ddfa995e2768ae
parent33b55a0a7d5d0cd109d0506004a51e4000affbf2 (diff)
V4L/DVB (11628): gspca - m5602-s5k83a: Remove more init
Signed-off-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/m5602/m5602_s5k83a.h79
1 files changed, 0 insertions, 79 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k83a.h b/drivers/media/video/gspca/m5602/m5602_s5k83a.h
index 0697f8a99d84..12ad43a0cbed 100644
--- a/drivers/media/video/gspca/m5602/m5602_s5k83a.h
+++ b/drivers/media/video/gspca/m5602/m5602_s5k83a.h
@@ -110,85 +110,6 @@ static const unsigned char preinit_s5k83a[][4] =
110*/ 110*/
111static const unsigned char init_s5k83a[][4] = 111static const unsigned char init_s5k83a[][4] =
112{ 112{
113 {SENSOR, S5K83A_PAGE_MAP, 0x04, 0x00},
114 {SENSOR, 0xaf, 0x01, 0x00},
115 {SENSOR, S5K83A_PAGE_MAP, 0x00, 0x00},
116 {SENSOR, 0x7b, 0xff, 0x00},
117 {SENSOR, S5K83A_PAGE_MAP, 0x05, 0x00},
118 {SENSOR, 0x01, 0x50, 0x00},
119 {SENSOR, 0x12, 0x20, 0x00},
120 {SENSOR, 0x17, 0x40, 0x00},
121 {SENSOR, 0x1c, 0x00, 0x00},
122 {SENSOR, 0x02, 0x70, 0x00},
123 {SENSOR, 0x03, 0x0b, 0x00},
124 {SENSOR, 0x04, 0xf0, 0x00},
125 {SENSOR, 0x05, 0x0b, 0x00},
126
127 {SENSOR, 0x06, 0x71, 0x00},
128 {SENSOR, 0x07, 0xe8, 0x00},
129 {SENSOR, 0x08, 0x02, 0x00},
130 {SENSOR, 0x09, 0x88, 0x00},
131 {SENSOR, 0x14, 0x00, 0x00},
132 {SENSOR, 0x15, 0x20, 0x00},
133 {SENSOR, 0x19, 0x00, 0x00},
134 {SENSOR, 0x1a, 0x98, 0x00},
135 {SENSOR, 0x0f, 0x02, 0x00},
136 {SENSOR, 0x10, 0xe5, 0x00},
137
138 {BRIDGE, M5602_XB_SIG_INI, 0x00, 0x00},
139 {BRIDGE, M5602_XB_GPIO_DIR, 0x1d, 0x00},
140 {BRIDGE, M5602_XB_GPIO_DAT, 0x08, 0x00},
141 {BRIDGE, M5602_XB_GPIO_EN_H, 0x3f, 0x00},
142 {BRIDGE, M5602_XB_GPIO_DIR_H, 0x3f, 0x00},
143 {BRIDGE, M5602_XB_GPIO_DAT_H, 0x00, 0x00},
144 {BRIDGE, M5602_XB_GPIO_EN_L, 0xff, 0x00},
145 {BRIDGE, M5602_XB_GPIO_DIR_L, 0xff, 0x00},
146 {BRIDGE, M5602_XB_GPIO_DAT_L, 0x00, 0x00},
147 {BRIDGE, M5602_XB_SEN_CLK_DIV, 0xb0, 0x00},
148 {BRIDGE, M5602_XB_SEN_CLK_CTRL, 0x80, 0x00},
149 {BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00, 0x00},
150 {BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0, 0x00},
151 {BRIDGE, M5602_XB_ADC_CTRL, 0xc0, 0x00},
152 {BRIDGE, M5602_XB_SENSOR_TYPE, 0x09, 0x00},
153 {BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02, 0x00},
154 {BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0, 0x00},
155 {BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00, 0x00},
156 {BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xf0, 0x00},
157 {BRIDGE, M5602_XB_GPIO_DIR, 0x1d, 0x00},
158 {BRIDGE, M5602_XB_GPIO_DAT, 0x1c, 0x00},
159 {BRIDGE, M5602_XB_GPIO_EN_H, 0x06, 0x00},
160 {BRIDGE, M5602_XB_GPIO_DIR_H, 0x06, 0x00},
161 {BRIDGE, M5602_XB_GPIO_DAT_H, 0x00, 0x00},
162 {BRIDGE, M5602_XB_GPIO_EN_L, 0x00, 0x00},
163 {BRIDGE, M5602_XB_I2C_CLK_DIV, 0x20, 0x00},
164
165 {SENSOR, S5K83A_PAGE_MAP, 0x04, 0x00},
166 {SENSOR, 0xaf, 0x01, 0x00},
167 {SENSOR, S5K83A_PAGE_MAP, 0x05, 0x00},
168 /* ff ( init value )is very dark) || 71 and f0 better */
169 {SENSOR, 0x7b, 0xff, 0x00},
170 {SENSOR, S5K83A_PAGE_MAP, 0x05, 0x00},
171 {SENSOR, 0x01, 0x50, 0x00},
172 {SENSOR, 0x12, 0x20, 0x00},
173 {SENSOR, 0x17, 0x40, 0x00},
174 {SENSOR, 0x1c, 0x00, 0x00},
175 {SENSOR, 0x02, 0x70, 0x00},
176 /* some values like 0x10 give a blue-purple image */
177 {SENSOR, 0x03, 0x0b, 0x00},
178 {SENSOR, 0x04, 0xf0, 0x00},
179 {SENSOR, 0x05, 0x0b, 0x00},
180
181 {SENSOR, 0x06, 0x71, 0x00},
182 {SENSOR, 0x07, 0xe8, 0x00},
183 {SENSOR, 0x08, 0x02, 0x00},
184 {SENSOR, 0x09, 0x88, 0x00},
185 {SENSOR, 0x14, 0x00, 0x00},
186 {SENSOR, 0x15, 0x20, 0x00},
187 {SENSOR, 0x19, 0x00, 0x00},
188 {SENSOR, 0x1a, 0x98, 0x00},
189 {SENSOR, 0x0f, 0x02, 0x00},
190 {SENSOR, 0x10, 0xe5, 0x00},
191
192 /* The following sequence is useless after a clean boot 113 /* The following sequence is useless after a clean boot
193 but is necessary after resume from suspend */ 114 but is necessary after resume from suspend */
194 {BRIDGE, M5602_XB_GPIO_DIR, 0x1d, 0x00}, 115 {BRIDGE, M5602_XB_GPIO_DIR, 0x1d, 0x00},