/* the CLUT register map as following RCLUT(24 ~ 16), GCLUT(15 ~ 8), BCLUT(7 ~ 0)  */
void lcd_setcolreg(ushort regno, ushort red, ushort green, ushort blue)
/* the CLUT register map as following RCLUT(24 ~ 16), GCLUT(15 ~ 8), BCLUT(7 ~ 0)  */
void lcd_setcolreg(ushort regno, ushort red, ushort green, ushort blue)
{
	writel(panel_info.mmio + ATMEL_LCDC_LUT(regno),
	       ((red << LCDC_BASECLUT_RCLUT_Pos) & LCDC_BASECLUT_RCLUT_Msk)
	       | ((green << LCDC_BASECLUT_GCLUT_Pos) & LCDC_BASECLUT_GCLUT_Msk)
	       | ((blue << LCDC_BASECLUT_BCLUT_Pos) & LCDC_BASECLUT_BCLUT_Msk));
}