mirror of https://gitee.com/openkylin/linux.git
V4L/DVB (11520): gspca - m5602-po1030: Remove redundant init sequences
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
1351a58ce0
commit
e8a574052e
|
@ -170,55 +170,21 @@ static const unsigned char preinit_po1030[][3] =
|
|||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
{BRIDGE, M5602_XB_SENSOR_TYPE, 0x0d},
|
||||
{BRIDGE, M5602_XB_SENSOR_CTRL, 0x00},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
{BRIDGE, M5602_XB_SENSOR_TYPE, 0x0c},
|
||||
|
||||
{SENSOR, PO1030_AUTOCTRL2, PO1030_SENSOR_RESET | (1 << 2)},
|
||||
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
{BRIDGE, M5602_XB_GPIO_DIR, 0x05},
|
||||
{BRIDGE, M5602_XB_GPIO_DAT, 0x04},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_DIR_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_DAT_H, 0x02},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x04},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{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, 0x02},
|
||||
{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, 0x00},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0x02},
|
||||
{BRIDGE, M5602_XB_HSYNC_PARA, 0x87},
|
||||
{BRIDGE, M5602_XB_SIG_INI, 0x00},
|
||||
|
||||
{SENSOR, PO1030_AUTOCTRL2, PO1030_SENSOR_RESET | (1 << 2)},
|
||||
|
||||
{BRIDGE, M5602_XB_GPIO_DIR, 0x05},
|
||||
{BRIDGE, M5602_XB_GPIO_DAT, 0x04},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_DIR_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_DAT_H, 0x02},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x04},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
{BRIDGE, M5602_XB_SENSOR_TYPE, 0x0c},
|
||||
{BRIDGE, M5602_XB_GPIO_DIR, 0x05},
|
||||
{BRIDGE, M5602_XB_GPIO_DAT, 0x00}
|
||||
|
@ -228,36 +194,26 @@ static const unsigned char init_po1030[][3] =
|
|||
{
|
||||
{BRIDGE, M5602_XB_MCU_CLK_DIV, 0x02},
|
||||
{BRIDGE, M5602_XB_MCU_CLK_CTRL, 0xb0},
|
||||
/*sequence 1*/
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
{BRIDGE, M5602_XB_SENSOR_TYPE, 0x0d},
|
||||
|
||||
{BRIDGE, M5602_XB_SENSOR_CTRL, 0x00},
|
||||
{BRIDGE, M5602_XB_ADC_CTRL, 0xc0},
|
||||
{BRIDGE, M5602_XB_SENSOR_TYPE, 0x0c},
|
||||
/*end of sequence 1*/
|
||||
|
||||
/*sequence 2 stop */
|
||||
{SENSOR, PO1030_AUTOCTRL2, PO1030_SENSOR_RESET | (1 << 2)},
|
||||
|
||||
{BRIDGE, M5602_XB_GPIO_DIR, 0x05},
|
||||
{BRIDGE, M5602_XB_GPIO_DAT, 0x04},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_L, 0x00},
|
||||
{BRIDGE, M5602_XB_GPIO_DIR_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_DAT_H, 0x02},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_DIV, 0x04},
|
||||
{BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0},
|
||||
/*end of sequence 2 stop */
|
||||
|
||||
{BRIDGE, M5602_XB_GPIO_DIR, 0x05},
|
||||
{BRIDGE, M5602_XB_GPIO_DAT, 0x00},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_H, 0x06},
|
||||
{BRIDGE, M5602_XB_GPIO_EN_L, 0x00},
|
||||
|
||||
{SENSOR, PO1030_AUTOCTRL2, 0x04},
|
||||
|
||||
};
|
||||
|
||||
static const unsigned char start_po1030[][3] =
|
||||
|
|
Loading…
Reference in New Issue