Skip to content

Commit ff6de84

Browse files
topdjgodjamess-huang
authored andcommitted
[camera] add the resolution of 3280x1848
Change-Id: I2ff31639abe387b6e285b2ca24158680427e3803 Reviewed-on: https://tp-biosrd-v02/gerrit/84469 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent 61e763f commit ff6de84

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

drivers/media/i2c/imx219.c

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,58 @@ static const struct imx219_reg imx219_init_tab_3280_2464_21fps[] = {
112112
{IMX219_TABLE_END, 0x00}
113113
};
114114

115+
/* MCLK:24MHz 3280x1848 28fps MIPI LANE2 */
116+
static const struct imx219_reg imx219_init_tab_3280_1848_28fps[] = {
117+
{0x30EB, 0x05}, /* Access Code for address over 0x3000 */
118+
{0x30EB, 0x0C}, /* Access Code for address over 0x3000 */
119+
{0x300A, 0xFF}, /* Access Code for address over 0x3000 */
120+
{0x300B, 0xFF}, /* Access Code for address over 0x3000 */
121+
{0x30EB, 0x05}, /* Access Code for address over 0x3000 */
122+
{0x30EB, 0x09}, /* Access Code for address over 0x3000 */
123+
{0x0114, 0x01}, /* CSI_LANE_MODE[1:0} */
124+
{0x0128, 0x00}, /* DPHY_CNTRL */
125+
{0x012A, 0x18}, /* EXCK_FREQ[15:8] */
126+
{0x012B, 0x00}, /* EXCK_FREQ[7:0] */
127+
{0x015A, 0x01}, /* INTEG TIME[15:8] */
128+
{0x015B, 0xF4}, /* INTEG TIME[7:0] */
129+
{0x0160, 0x07}, /* FRM_LENGTH_A[15:8] */
130+
{0x0161, 0x60}, /* FRM_LENGTH_A[7:0] */
131+
{0x0162, 0x0F}, /* LINE_LENGTH_A[15:8] */
132+
{0x0163, 0xA0}, /* LINE_LENGTH_A[7:0] */
133+
{0x0260, 0x07}, /* FRM_LENGTH_B[15:8] */
134+
{0x0261, 0x60}, /* FRM_LENGTH_B[7:0] */
135+
{0x0262, 0x0F}, /* LINE_LENGTH_B[15:8] */
136+
{0x0263, 0xA0}, /* LINE_LENGTH_B[7:0] */
137+
{0x0170, 0x01}, /* X_ODD_INC_A[2:0] */
138+
{0x0171, 0x01}, /* Y_ODD_INC_A[2:0] */
139+
{0x0270, 0x01}, /* X_ODD_INC_B[2:0] */
140+
{0x0271, 0x01}, /* Y_ODD_INC_B[2:0] */
141+
{0x0174, 0x00}, /* BINNING_MODE_H_A */
142+
{0x0175, 0x00}, /* BINNING_MODE_V_A */
143+
{0x0274, 0x00}, /* BINNING_MODE_H_B */
144+
{0x0275, 0x00}, /* BINNING_MODE_V_B */
145+
{0x018C, 0x0A}, /* CSI_DATA_FORMAT_A[15:8] */
146+
{0x018D, 0x0A}, /* CSI_DATA_FORMAT_A[7:0] */
147+
{0x028C, 0x0A}, /* CSI_DATA_FORMAT_B[15:8] */
148+
{0x028D, 0x0A}, /* CSI_DATA_FORMAT_B[7:0] */
149+
{0x0301, 0x05}, /* VTPXCK_DIV */
150+
{0x0303, 0x01}, /* VTSYCK_DIV */
151+
{0x0304, 0x03}, /* PREPLLCK_VT_DIV[3:0] */
152+
{0x0305, 0x03}, /* PREPLLCK_OP_DIV[3:0] */
153+
{0x0306, 0x00}, /* PLL_VT_MPY[10:8] */
154+
{0x0307, 0x42}, /* PLL_VT_MPY[7:0] */
155+
{0x0309, 0x0A}, /* OPPXCK_DIV[4:0] */
156+
{0x030B, 0x01}, /* OPSYCK_DIV */
157+
{0x030C, 0x00}, /* PLL_OP_MPY[10:8] */
158+
{0x030D, 0x72}, /* PLL_OP_MPY[7:0] */
159+
{0x455E, 0x00}, /* CIS Tuning */
160+
{0x471E, 0x4B}, /* CIS Tuning */
161+
{0x4767, 0x0F}, /* CIS Tuning */
162+
{0x4750, 0x14}, /* CIS Tuning */
163+
{0x47B4, 0x14}, /* CIS Tuning */
164+
{IMX219_TABLE_END, 0x00}
165+
};
166+
115167
/* MCLK:24MHz 1920x1080 30fps MIPI LANE2 */
116168
static const struct imx219_reg imx219_init_tab_1920_1080_30fps[] = {
117169
{0x30EB, 0x05},
@@ -318,6 +370,16 @@ static const struct imx219_mode supported_modes[] = {
318370
.binning_h = 1,
319371
.binning_v = 1,
320372
},
373+
{
374+
.width = 3280,
375+
.height = 1848,
376+
.max_fps = 28,
377+
.hts_def = 0x0fa0 - IMX219_EXP_LINES_MARGIN,
378+
.vts_def = 0x0760,
379+
.reg_list = imx219_init_tab_3280_1848_28fps,
380+
.binning_h = 0,
381+
.binning_v = 0,
382+
},
321383
};
322384

323385
static struct imx219 *to_imx219(const struct i2c_client *client)

0 commit comments

Comments
 (0)