]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/esd/common/lcd.h
imported Freescale specific U-Boot additions for i.MX28,... release L2.6.31_10.08.01
[karo-tx-uboot.git] / board / esd / common / lcd.h
index 3169e6bb5c7fbab42d7700cd915fda80aa7620a8..01f6019bb2d806d617af7177b4cb430528d816fc 100755 (executable)
 #define TRUE (!FALSE)
 #endif
 
-#define S1D_WRITE_PALETTE(p,i,r,g,b)  \
-  {  \
-  ((volatile uchar*)(p))[palette_index] = (uchar)(i); \
-  ((volatile uchar*)(p))[palette_value] = (uchar)(r); \
-  ((volatile uchar*)(p))[palette_value] = (uchar)(g); \
-  ((volatile uchar*)(p))[palette_value] = (uchar)(b); \
-  }
+#define S1D_WRITE_PALETTE(p,i,r,g,b)                                   \
+       {                                                               \
+               out_8(&((uchar*)(p))[palette_index], (uchar)(i));       \
+               out_8(&((uchar*)(p))[palette_index], (uchar)(r));       \
+               out_8(&((uchar*)(p))[palette_index], (uchar)(g));       \
+               out_8(&((uchar*)(p))[palette_index], (uchar)(b));       \
+       }
 
 typedef struct
 {