FAQi.MX RT1170使用RGB接口屏幕配置

i.MX RT1170使用RGB接口屏幕配置
更新时间:2022.03.21 浏览量:0

sdk软件的lcdifv2_support.c对应函数修改如下,并初始化24bit的rgb引脚

status_t BOARD_InitDisplayInterface(void)

{

    /* LCDIF v2 output to MIPI DSI. */

    CLOCK_EnableClock(kCLOCK_Video_Mux);

    

#if ((USE_MIPI_PANEL == MIPI_PANEL_DS90C383) || (USE_MIPI_PANEL == MIPI_PANEL_TFT4_3CAP))

    VIDEO_MUX->VID_MUX_CTRL.SET = VIDEO_MUX_VID_MUX_CTRL_PARA_LCD_SEL_MASK;

#else

    VIDEO_MUX->VID_MUX_CTRL.SET = VIDEO_MUX_VID_MUX_CTRL_MIPI_DSI_SEL_MASK;


    /* 1. Power on and isolation off. */

    PGMC_BPC4->BPC_POWER_CTRL |= (PGMC_BPC_BPC_POWER_CTRL_PSW_ON_SOFT_MASK | PGMC_BPC_BPC_POWER_CTRL_ISO_OFF_SOFT_MASK);


    /* 2. Assert MIPI reset. */

    IOMUXC_GPR->GPR62 &=

        ~(IOMUXC_GPR_GPR62_MIPI_DSI_PCLK_SOFT_RESET_N_MASK | IOMUXC_GPR_GPR62_MIPI_DSI_ESC_SOFT_RESET_N_MASK |

          IOMUXC_GPR_GPR62_MIPI_DSI_BYTE_SOFT_RESET_N_MASK | IOMUXC_GPR_GPR62_MIPI_DSI_DPI_SOFT_RESET_N_MASK);


    /* 3. Setup clock. */

    BOARD_InitMipiDsiClock();


    /* 4. Deassert PCLK and ESC reset. */

    IOMUXC_GPR->GPR62 |=

        (IOMUXC_GPR_GPR62_MIPI_DSI_PCLK_SOFT_RESET_N_MASK | IOMUXC_GPR_GPR62_MIPI_DSI_ESC_SOFT_RESET_N_MASK);


    /* 5. Configures peripheral. */

    BOARD_SetMipiDsiConfig();


    /* 6. Deassert BYTE and DBI reset. */

    IOMUXC_GPR->GPR62 |=

        (IOMUXC_GPR_GPR62_MIPI_DSI_BYTE_SOFT_RESET_N_MASK | IOMUXC_GPR_GPR62_MIPI_DSI_DPI_SOFT_RESET_N_MASK);


#endif

    /* 7. Configure the panel. */

    return BOARD_InitLcdPanel();

}


  • 上一篇:LWIP协议栈接收64K数据包失败
  • 下一篇:MIMXRT1172AVM8A的MQS音频输出问题