-----------------------------init code------------------------------------------- VOID sn65dsi86_regInit(VOID) { // uint8 temp; sn65dsi86_write(SW_RST, 0x01); MDP_OSAL_DELAYMS(10); // sn65dsi86_write(0xff, 0x07); // sn65dsi86_read(0x16, &temp); // SN65DSI86ZQER_DEBUG_INFO_1("SN65DSI86ZQER: ---- temp:%d\n",temp); // sn65dsi86_write(0x16, 0x01); // sn65dsi86_read(0x16, &temp); // SN65DSI86ZQER_DEBUG_INFO_1("SN65DSI86ZQER: temp:%d\n",temp); // sn65dsi86_write(0xff, 0x00); // sn65dsi86_write(0xf4, 0xff); sn65dsi86_write(CLK_REG_0A, 0x09);// REFCLK_FREQ/DPPLL_CLK_SRC sn65dsi86_write(CLK_REG_0D, 0x00);//songer sn65dsi86_write(DSI_REG_10, 0x26);//songer sn65dsi86_write(DSI_REG_11, 0x00);//songer sn65dsi86_write(DSI_REG_12, 0x5c);//songer --------..note CHA_DSI_CLK_RANGE 0x50 400 < 405 sn65dsi86_write(DSI_REG_13, 0x5c); //chanel B sn65dsi86_write(VIDEO_REG_20, 0x80);//songer,the length in pixels of the active horizontal line for Channel A sn65dsi86_write(VIDEO_REG_21, 0x07);//songer,the length in pixels of the active horizontal line for Channel A sn65dsi86_write(VIDEO_REG_22, 0x00); //chanel B sn65dsi86_write(VIDEO_REG_23, 0x00); //Chanel B sn65dsi86_write(VIDEO_REG_24, 0x38);// the vertical display size in lines for Channel A sn65dsi86_write(VIDEO_REG_25, 0x04);// the vertical display size in lines for Channel A sn65dsi86_write(VIDEO_REG_2C, 0x38);// CHA_HSYNC_PULSE_WIDTH_LOW -------...note sn65dsi86_write(VIDEO_REG_2D, 0x80);// CHA_HSYNC_POLARITY/CHA_HSYNC_PULSE_WIDTH_HIGH ------...note sn65dsi86_write(VIDEO_REG_30, 0x0a);// CHA_VSYNC_PULSE_WIDTH_LOW -----..note sn65dsi86_write(VIDEO_REG_31, 0x80);//CHA_VSYNC_POLARITY/CHA_VSYNC_PULSE_WIDTH_HIGH ----...note sn65dsi86_write(VIDEO_REG_34, 0x70);//CHA_HORIZONTAL_BACK_PORCH sn65dsi86_write(VIDEO_REG_36, 0x12);//CHA_VERTICAL_BACK_PORCH sn65dsi86_write(VIDEO_REG_38, 0x70);//CHA_HORIZONTAL_FRONT_PORCH sn65dsi86_write(VIDEO_REG_3A, 0x11);//CHA_VERTICAL_FRONT_PORCH sn65dsi86_write(VIDEO_REG_3C, 0x17); // songer COLOR_BAR_EN-->1 // Vertical Colors: Stripes sn65dsi86_write(VIDEO_REG_3D, 0x00); // songer sn65dsi86_write(VIDEO_REG_3E, 0x00); // songer sn65dsi86_write(DP_SPEC_REG_5B, 0x00); // songer sn65dsi86_write(LK_TRAIN_REG_93, 0x34);//songer sn65dsi86_write(LK_TRAIN_REG_94, 0xe0);//songer sn65dsi86_write(DP_SPEC_REG_5C, 0x01); // songer sn65dsi86_write(DP_SPEC_REG_5A, 0x05);// default 0x05, IDLE pattern enable sn65dsi86_write(CLK_REG_0D, 0x01);//songer pll_enable MDP_OSAL_DELAYMS(10); sn65dsi86_DebugDumpReg(CLK_REG_0D); sn65dsi86_write(I2C_OVER_AUX_REG_64, 0x01); sn65dsi86_write(I2C_OVER_AUX_REG_74, 0x00); sn65dsi86_write(I2C_OVER_AUX_REG_75, 0x01); sn65dsi86_write(I2C_OVER_AUX_REG_76, 0x0A); sn65dsi86_write(I2C_OVER_AUX_REG_77, 0x01); sn65dsi86_write(I2C_OVER_AUX_REG_78, 0x81); MDP_OSAL_DELAYMS(10); sn65dsi86_write(LK_TRAIN_REG_96, 0x0a);// 01 --> 0a MDP_OSAL_DELAYMS(20); sn65dsi86_write(DP_SPEC_REG_5A, 0x05);//songer temp } ------------------------------------------------------------------------------------------------------------- sn65dsi86: power up success 2th!! SN65DSI86ZQER: read device id match result:success SN65DSI86ZQER: read status:Success regAddr:0x0D, regValue:0x01 SN65DSI86ZQER: read status:Success regAddr:0x0A, regValue:0x89 SN65DSI86ZQER: read status:Success regAddr:0x0D, regValue:0x01 SN65DSI86ZQER: read status:Success regAddr:0x10, regValue:0x26 SN65DSI86ZQER: read status:Success regAddr:0x11, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0x12, regValue:0x5C SN65DSI86ZQER: read status:Success regAddr:0x13, regValue:0x5C SN65DSI86ZQER: read status:Success regAddr:0x20, regValue:0x80 SN65DSI86ZQER: read status:Success regAddr:0x21, regValue:0x07 SN65DSI86ZQER: read status:Success regAddr:0x22, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0x23, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0x24, regValue:0x38 SN65DSI86ZQER: read status:Success regAddr:0x25, regValue:0x04 SN65DSI86ZQER: read status:Success regAddr:0x2C, regValue:0x38 SN65DSI86ZQER: read status:Success regAddr:0x2D, regValue:0x80 SN65DSI86ZQER: read status:Success regAddr:0x30, regValue:0x0A SN65DSI86ZQER: read status:Success regAddr:0x31, regValue:0x80 SN65DSI86ZQER: read status:Success regAddr:0x34, regValue:0x70 SN65DSI86ZQER: read status:Success regAddr:0x36, regValue:0x12 SN65DSI86ZQER: read status:Success regAddr:0x38, regValue:0x70 SN65DSI86ZQER: read status:Success regAddr:0x3A, regValue:0x11 SN65DSI86ZQER: read status:Success regAddr:0x3C, regValue:0x17 SN65DSI86ZQER: read status:Success regAddr:0x3D, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0x3E, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0x5A, regValue:0x05 SN65DSI86ZQER: read status:Success regAddr:0x5B, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0x5C, regValue:0x11 SN65DSI86ZQER: read status:Success regAddr:0x93, regValue:0x74 SN65DSI86ZQER: read status:Success regAddr:0x94, regValue:0xE0 SN65DSI86ZQER: read status:Success regAddr:0x96, regValue:0x01 sn65dsi86: dump irq status register start ------------------ SN65DSI86ZQER: read status:Success regAddr:0xF0, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0xF1, regValue:0x03 SN65DSI86ZQER: read status:Success regAddr:0xF2, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0xF3, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0xF4, regValue:0x01 SN65DSI86ZQER: read status:Success regAddr:0xF5, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0xF6, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0xF7, regValue:0x00 SN65DSI86ZQER: read status:Success regAddr:0xF8, regValue:0x01