forked from luck/tmp_suning_uos_patched
V4L/DVB (12991): gspca - m5602-ov7660: Remove redundant init writes
Signed-off-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
87fad38e6e
commit
e1e7e677a4
@ -192,30 +192,7 @@ static const unsigned char init_ov7660[][4] =
|
||||
{SENSOR, OV7660_LCC3, 0x10},
|
||||
{SENSOR, OV7660_LCC4, 0x40},
|
||||
{SENSOR, OV7660_LCC5, 0x01},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
{BRIDGE, M5602_XB_SENSOR_TYPE, 0x0c},
|
||||
{BRIDGE, M5602_XB_LINE_OF_FRAME_H, 0x81},
|
||||
{BRIDGE, M5602_XB_PIX_OF_LINE_H, 0x82},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x01},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x08},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x01},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0xec},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x00},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x02},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0x27},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0x02},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0xae},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x02},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
|
||||
{SENSOR, OV7660_AECH, 0x20},
|
||||
{SENSOR, OV7660_COM1, 0x00},
|
||||
{SENSOR, OV7660_OFON, 0x0c},
|
||||
@ -236,30 +213,6 @@ static const unsigned char init_ov7660[][4] =
|
||||
{BRIDGE, M5602_XB_GPIO_DAT, 0x00},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_L, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
{BRIDGE, M5602_XB_SENSOR_TYPE, 0x0c},
|
||||
{BRIDGE, M5602_XB_LINE_OF_FRAME_H, 0x81},
|
||||
{BRIDGE, M5602_XB_PIX_OF_LINE_H, 0x82},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x01},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x08},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x01},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0xec},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x00},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x02},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0x00},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0x27},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0x02},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0xae},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{SENSOR, OV7660_AECH, 0x5f},
|
||||
{SENSOR, OV7660_COM1, 0x03},
|
||||
{SENSOR, OV7660_OFON, 0x0c},
|
||||
@ -280,6 +233,7 @@ static const unsigned char init_ov7660[][4] =
|
||||
{BRIDGE, M5602_XB_GPIO_DAT, 0x00},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_L, 0x00},
|
||||
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
|
Loading…
Reference in New Issue
Block a user