summaryrefslogtreecommitdiff
path: root/drivers/video/pxa_lcd.c
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2015-02-03 13:32:21 +0200
committerAnatolij Gustschin <agust@denx.de>2015-02-10 13:25:08 +0100
commit38b550877fd819ce7842b73530dcbacc098c9f0f (patch)
tree1701a3a9aa0e55548ceab3791c83c4e571ee175a /drivers/video/pxa_lcd.c
parentbaaa7dd7061521509792ca158508b2c4554a7184 (diff)
downloadu-boot-38b550877fd819ce7842b73530dcbacc098c9f0f.tar.gz
lcd: split configuration_get_cmap
configuration_get_cmap() is multiple platform-specific functions stuffed into one function. Split it into multiple versions, and move each version to the appropriate driver to reduce the #ifdef complexity. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Bo Shen <voice.shen@atmel.com> Tested-by: Josh Wu <josh.wu@atmel.com> Cc: Bo Shen <voice.shen@atmel.com> Cc: Simon Glass <sjg@chromium.org> Cc: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/video/pxa_lcd.c')
-rw-r--r--drivers/video/pxa_lcd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c
index f66f615df5..04105d4eaa 100644
--- a/drivers/video/pxa_lcd.c
+++ b/drivers/video/pxa_lcd.c
@@ -342,6 +342,12 @@ static int pxafb_init (vidinfo_t *vid);
/* --------------- PXA chipset specific functions ------------------- */
/************************************************************************/
+ushort *configuration_get_cmap(void)
+{
+ struct pxafb_info *fbi = &panel_info.pxa;
+ return (ushort *)fbi->palette;
+}
+
void lcd_ctrl_init (void *lcdbase)
{
pxafb_init_mem(lcdbase, &panel_info);