msm: camera: csiphy: Correct Dphy mission mode sequence
DPHY mission mode sequence is not full functional for mission mode. Correct and add mandate register settings for the bringup of DPHY mission mode. CRs-Fixed: 2545921 Change-Id: Ia1bbf496c5aa993cf0e404c81f7b69b7b889c6f1 Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
This commit is contained in:
Родитель
a293b9bfe6
Коммит
93a5aef818
|
@ -14,7 +14,7 @@ struct csiphy_reg_parms_t csiphy_v1_2_1 = {
|
|||
.mipi_csiphy_glbl_irq_cmd_addr = 0x828,
|
||||
.csiphy_common_array_size = 6,
|
||||
.csiphy_reset_array_size = 5,
|
||||
.csiphy_2ph_config_array_size = 21,
|
||||
.csiphy_2ph_config_array_size = 19,
|
||||
.csiphy_3ph_config_array_size = 34,
|
||||
.csiphy_2ph_clock_lane = 0x1,
|
||||
.csiphy_2ph_combo_ck_ln = 0x10,
|
||||
|
@ -55,118 +55,108 @@ struct
|
|||
csiphy_reg_t csiphy_2ph_v1_2_1_reg[MAX_LANES][MAX_SETTINGS_PER_LANE] = {
|
||||
{
|
||||
{0x0030, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0900, 0x05, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0908, 0x10, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0904, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0910, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0900, 0x06, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0908, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0904, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0904, 0x03, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0004, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x002C, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0034, 0x0F, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0010, 0x50, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x001C, 0x0A, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0034, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0010, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x001C, 0x08, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x003C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0008, 0x10, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x0000, 0x8D, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x000c, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x0038, 0xFE, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0014, 0x60, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0028, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x003C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0000, 0x91, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0004, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0020, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0008, 0x10, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x000c, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x0010, 0x52, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0038, 0xFE, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0800, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0884, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
},
|
||||
{
|
||||
{0x0730, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C80, 0x05, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C88, 0x10, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C84, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C90, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C80, 0x0F, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C88, 0x14, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C84, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C84, 0x03, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0704, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x072C, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0734, 0x0F, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0710, 0x50, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x071C, 0x0A, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0734, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0710, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x071C, 0x08, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x073C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0708, 0x10, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x0700, 0x80, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x070c, 0xA5, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0738, 0x1F, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0714, 0x60, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0728, 0x04, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x073C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0700, 0x80, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0704, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0720, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0708, 0x04, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x070c, 0xFF, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0710, 0x52, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0738, 0x1F, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0800, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0884, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
},
|
||||
{
|
||||
{0x0230, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0A00, 0x05, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0A08, 0x10, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0A04, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0A10, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0A00, 0x0B, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0A08, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0A04, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0A04, 0x03, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0204, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x022C, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0234, 0x0F, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0210, 0x50, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x021C, 0x0A, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0234, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0210, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x021C, 0x08, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x023C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0208, 0x10, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x0200, 0x8D, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x020c, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x0238, 0xFE, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0214, 0x60, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0228, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x023C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0200, 0x91, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0204, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0220, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0208, 0x04, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x020c, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x0210, 0x52, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0238, 0xFE, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0800, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0884, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
},
|
||||
{
|
||||
{0x0430, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0B00, 0x05, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0B08, 0x10, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0B04, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0B10, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0B00, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0B08, 0x03, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0B04, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0B04, 0x03, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0404, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x042C, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0434, 0x0F, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0410, 0x50, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x041C, 0x0A, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0434, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0410, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x041C, 0x08, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x043C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0408, 0x10, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x0400, 0x8D, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x040c, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x0438, 0xFE, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0414, 0x60, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0428, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x043C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0400, 0x91, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0404, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0420, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0408, 0x04, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x040c, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x0410, 0x52, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0438, 0xFE, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0800, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0884, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
},
|
||||
{
|
||||
{0x0630, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C00, 0x05, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C08, 0x10, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C04, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C10, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C00, 0x0E, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C08, 0x1D, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C04, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0C04, 0x03, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0604, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x062C, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0634, 0x0F, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0610, 0x50, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x061C, 0x0A, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0634, 0x07, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0610, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x061C, 0x08, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x063C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0608, 0x10, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x0600, 0x8D, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x060c, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x0638, 0xFE, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0614, 0x60, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0628, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x063C, 0xB8, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0600, 0x91, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0604, 0x0C, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0620, 0x00, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0608, 0x04, 0x00, CSIPHY_SETTLE_CNT_LOWER_BYTE},
|
||||
{0x060c, 0x00, 0x00, CSIPHY_DNP_PARAMS},
|
||||
{0x0610, 0x52, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0638, 0xFE, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0800, 0x02, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
{0x0884, 0x01, 0x00, CSIPHY_DEFAULT_PARAMS},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче