From ce99d2327764b697d9e3e9af7c4dff0b43ef9aaa Mon Sep 17 00:00:00 2001 From: Zhenke Fan Date: Mon, 12 Apr 2021 10:53:43 +0800 Subject: [PATCH] media: i2c: gc4c33 update init register array Signed-off-by: Zhenke Fan Change-Id: I39690784108651e2ea63cbcd71ac5215f60d9db7 --- drivers/media/i2c/gc4c33.c | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/drivers/media/i2c/gc4c33.c b/drivers/media/i2c/gc4c33.c index ad5278a45241..bfc893b427e8 100644 --- a/drivers/media/i2c/gc4c33.c +++ b/drivers/media/i2c/gc4c33.c @@ -346,21 +346,29 @@ static const u32 gain_Level_Table_720P[32] = { * mipi_datarate per lane 630Mbps, 2lane */ static const struct regval gc4c33_linear10bit_2560x1440_regs[] = { + {0x03fe, 0xf0}, + {0x03fe, 0xf0}, + {0x03fe, 0xf0}, + {0x03fe, 0xf0}, + {0x03fe, 0x00}, + {0x03fe, 0x00}, + {0x03fe, 0x00}, + {0x03fe, 0x00}, {0x031c, 0x01}, {0x0317, 0x24}, {0x0320, 0x77}, {0x0106, 0x78}, {0x0324, 0x84}, - {0x0327, 0x30}, - {0x0325, 0x04}, - {0x0326, 0x22}, + {0x0327, 0x05}, + {0x0325, 0x08}, + {0x0326, 0x2d}, {0x031a, 0x00}, {0x0314, 0x30}, {0x0315, 0x23}, {0x0334, 0x00}, - {0x0337, 0x03}, - {0x0335, 0x01}, - {0x0336, 0x46}, + {0x0337, 0x02}, + {0x0335, 0x02}, + {0x0336, 0x1f}, {0x0324, 0xc4}, {0x0334, 0x40}, {0x031c, 0x03}, @@ -382,6 +390,14 @@ static const struct regval gc4c33_linear10bit_2560x1440_regs[] = { {0x00f2, 0x04}, {0x00f1, 0x0a}, {0x00f0, 0xa0}, + {0x00c1, 0x05}, + {0x00c2, 0xa0}, + {0x00c3, 0x0a}, + {0x00c4, 0x00}, + {0x00da, 0x05}, + {0x00db, 0xa0},//1440 + {0x00d8, 0x0a}, + {0x00d9, 0x00},//2560 {0x00c5, 0x0a}, {0x00c6, 0xa0}, {0x00bf, 0x17}, @@ -423,7 +439,7 @@ static const struct regval gc4c33_linear10bit_2560x1440_regs[] = { {0x02e6, 0x30}, {0x0512, 0x00}, {0x0513, 0x00}, - {0x0515, 0x02}, + {0x0515, 0x20}, {0x0518, 0x00}, {0x0519, 0x00}, {0x051d, 0x50}, @@ -464,6 +480,10 @@ static const struct regval gc4c33_linear10bit_2560x1440_regs[] = { {0x0349, 0x10}, {0x034a, 0x05}, {0x034b, 0xb4}, + {0x0097, 0x0a}, + {0x0098, 0x10}, + {0x0099, 0x05}, + {0x009a, 0xb0}, {0x034c, 0x0a}, {0x034d, 0x00}, {0x034e, 0x05},