summaryrefslogtreecommitdiff
path: root/include/lcd.h
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2014-12-08 17:14:43 +0200
committerAnatolij Gustschin <agust@denx.de>2015-01-10 17:53:12 +0100
commit4d03634e5da40dc092b6e5b985f74aedfe04f81e (patch)
treea4a1f700cf83666591c6f278add58bfd9b8e43d3 /include/lcd.h
parenta7de2953f51e70754190d3516167d58d27d17219 (diff)
downloadu-boot-4d03634e5da40dc092b6e5b985f74aedfe04f81e.tar.gz
u-boot-4d03634e5da40dc092b6e5b985f74aedfe04f81e.tar.bz2
u-boot-4d03634e5da40dc092b6e5b985f74aedfe04f81e.zip
lcd: introduce getters for bg/fg color
Introduce lcd_getbgcolor() and lcd_getfgcolor(), and use them where applicable. This is a preparatory step for extracting lcd console code into its own file. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Anatolij Gustschin <agust@denx.de> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/lcd.h')
-rw-r--r--include/lcd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/lcd.h b/include/lcd.h
index 01609ac09f..2235b9be1e 100644
--- a/include/lcd.h
+++ b/include/lcd.h
@@ -291,6 +291,20 @@ int lcd_get_screen_rows(void);
int lcd_get_screen_columns(void);
/**
+ * Get the background color of the LCD
+ *
+ * @return background color value
+ */
+int lcd_getbgcolor(void);
+
+/**
+ * Get the foreground color of the LCD
+ *
+ * @return foreground color value
+ */
+int lcd_getfgcolor(void);
+
+/**
* Set the position of the text cursor
*
* @param col Column to place cursor (0 = left side)