/* Read generic data through generic payload dta in/out register.  */
static int gen_read_data(uint32_t cmd)
/* Read generic data through generic payload dta in/out register.  */
static int gen_read_data(uint32_t cmd)
{
	gen_write_cmd(cmd);
    while (!HW_MIPI_DSI_CMD_PKT_STATUS.B.GEN_RD_CMD_BUSY) ;
    while (HW_MIPI_DSI_CMD_PKT_STATUS.B.GEN_RD_CMD_BUSY) ;
    return HW_MIPI_DSI_GEN_PLD_DATA_RD();
}