/* Write generic data through generic payload dta in/out register.  */
static void gen_write_data(unsigned long gen_pld_data)
/* Write generic data through generic payload dta in/out register.  */
static void gen_write_data(unsigned long gen_pld_data)
{
    while (HW_MIPI_DSI_CMD_PKT_STATUS.B.GEN_PLD_W_FULL) ;
    HW_MIPI_DSI_GEN_PLD_DATA_WR(gen_pld_data);
}