diff options
author | Erik Andr?n <erik.andren@gmail.com> | 2009-01-12 12:00:51 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:20:29 -0400 |
commit | da773c9e5fd14249cda578f510dd0e20dd7358fb (patch) | |
tree | f723d90ab3cf51aaea5d49c1cb66ef1a3f316462 /drivers/media | |
parent | 6822df520d0140a0adf667ba6e926d90b2ff6d6d (diff) |
V4L/DVB (11481): gspca - m5602-mt9m111: More constant replacement
Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_mt9m111.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_mt9m111.h b/drivers/media/video/gspca/m5602/m5602_mt9m111.h index d1bb9ddd62f4..5dd90a66afc9 100644 --- a/drivers/media/video/gspca/m5602/m5602_mt9m111.h +++ b/drivers/media/video/gspca/m5602/m5602_mt9m111.h | |||
@@ -193,7 +193,9 @@ static const unsigned char init_mt9m111[][4] = | |||
193 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x0c}, | 193 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x0c}, |
194 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x04}, | 194 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x04}, |
195 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01}, | 195 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01}, |
196 | {SENSOR, MT9M111_CP_GLOBAL_CLK_CONTROL, 0x00, 0x03}, | 196 | {SENSOR, MT9M111_CP_GLOBAL_CLK_CONTROL, 0x00, |
197 | MT9M111_TRISTATE_PIN_IN_STANDBY | | ||
198 | MT9M111_SOC_SOFT_STANDBY}, | ||
197 | {BRIDGE, M5602_XB_GPIO_EN_H, 0x06, 0x00}, | 199 | {BRIDGE, M5602_XB_GPIO_EN_H, 0x06, 0x00}, |
198 | {BRIDGE, M5602_XB_GPIO_EN_L, 0x00, 0x00}, | 200 | {BRIDGE, M5602_XB_GPIO_EN_L, 0x00, 0x00}, |
199 | {BRIDGE, M5602_XB_I2C_CLK_DIV, 0x0a, 0x00}, | 201 | {BRIDGE, M5602_XB_I2C_CLK_DIV, 0x0a, 0x00}, |
@@ -214,7 +216,9 @@ static const unsigned char init_mt9m111[][4] = | |||
214 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x0c}, | 216 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x0c}, |
215 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x04}, | 217 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x04}, |
216 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01}, | 218 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01}, |
217 | {SENSOR, MT9M111_CP_GLOBAL_CLK_CONTROL, 0x00, 0x03}, | 219 | {SENSOR, MT9M111_CP_GLOBAL_CLK_CONTROL, 0x00, |
220 | MT9M111_TRISTATE_PIN_IN_STANDBY | | ||
221 | MT9M111_SOC_SOFT_STANDBY}, | ||
218 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00}, | 222 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00}, |
219 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x05}, | 223 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x05}, |
220 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00}, | 224 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00}, |
@@ -230,8 +234,9 @@ static const unsigned char init_mt9m111[][4] = | |||
230 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x0c}, | 234 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x0c}, |
231 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x04}, | 235 | {SENSOR, MT9M111_SC_RESET, 0x00, 0x04}, |
232 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01}, | 236 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x01}, |
233 | {SENSOR, MT9M111_CP_GLOBAL_CLK_CONTROL, 0x00, 0x03}, | 237 | {SENSOR, MT9M111_CP_GLOBAL_CLK_CONTROL, 0x00, |
234 | 238 | MT9M111_TRISTATE_PIN_IN_STANDBY | | |
239 | MT9M111_SOC_SOFT_STANDBY}, | ||
235 | {BRIDGE, M5602_XB_GPIO_DIR, 0x05, 0x00}, | 240 | {BRIDGE, M5602_XB_GPIO_DIR, 0x05, 0x00}, |
236 | {BRIDGE, M5602_XB_GPIO_DAT, 0x04, 0x00}, | 241 | {BRIDGE, M5602_XB_GPIO_DAT, 0x04, 0x00}, |
237 | {BRIDGE, M5602_XB_GPIO_EN_H, 0x3e, 0x00}, | 242 | {BRIDGE, M5602_XB_GPIO_EN_H, 0x3e, 0x00}, |
@@ -274,8 +279,8 @@ static const unsigned char init_mt9m111[][4] = | |||
274 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x02}, | 279 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x02}, |
275 | {SENSOR, MT9M111_CC_AUTO_EXPOSURE_PARAMETER_18, 0x00, 0x00}, | 280 | {SENSOR, MT9M111_CC_AUTO_EXPOSURE_PARAMETER_18, 0x00, 0x00}, |
276 | {SENSOR, MT9M111_CC_AWB_PARAMETER_7, 0xef, 0x03}, | 281 | {SENSOR, MT9M111_CC_AWB_PARAMETER_7, 0xef, 0x03}, |
277 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00}, | ||
278 | 282 | ||
283 | {SENSOR, MT9M111_PAGE_MAP, 0x00, 0x00}, | ||
279 | {SENSOR, 0x33, 0x03, 0x49}, | 284 | {SENSOR, 0x33, 0x03, 0x49}, |
280 | {SENSOR, 0x34, 0xc0, 0x19}, | 285 | {SENSOR, 0x34, 0xc0, 0x19}, |
281 | {SENSOR, 0x3f, 0x20, 0x20}, | 286 | {SENSOR, 0x3f, 0x20, 0x20}, |