/* Configue RGB swap mode and RGB pattern when RGB_MODE is set to 1.  */
void isi_rgb_configue(Isi *p_isi, uint8_t patten, uint8_t swap)
/* Configue RGB swap mode and RGB pattern when RGB_MODE is set to 1.  */
void isi_rgb_configue(Isi *p_isi, uint8_t patten, uint8_t swap)
{
	p_isi->ISI_CFG2 = _isi_get_CFG2_workaround() | ISI_CFG2_RGB_CFG(patten);
	if(swap) {
		p_isi->ISI_CFG2 = _isi_get_CFG2_workaround() | (ISI_CFG2_RGB_SWAP);
	} else {
		p_isi->ISI_CFG2 = _isi_get_CFG2_workaround() & (~ISI_CFG2_RGB_SWAP);
	}
}