summaryrefslogtreecommitdiffstats
path: root/drivers/video/atmel_lcdfb.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2018-01-06 22:19:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-17 09:05:24 +0100
commit21b932af19bd2a6912fad9664b58e30faff7dd30 (patch)
tree6f51682ad6e9a0fe6b9ccbc58cf525e6a5674290 /drivers/video/atmel_lcdfb.h
parentc06a302e4f62cb4428df60b1d7efb38d1ebd9cff (diff)
downloadbarebox-21b932af19bd2a6912fad9664b58e30faff7dd30.tar.gz
barebox-21b932af19bd2a6912fad9664b58e30faff7dd30.tar.xz
atmel_lcdfb: introduce driver data
From b1cb4bbebbe8f2ef7049cdc8604f516bb0108403 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg <sam@ravnborg.org> Date: Sat, 6 Jan 2018 14:33:53 +0100 Subject: [PATCH] atmel_lcdfb: introduce driver data Introduce driver data like known from the kernel. This allows us to get rid of the hack where the intensity bit support was included in the lcd wiring mode. (No longer any support for IBGR, IRBG) It has the nice side-effect that all places where we test for hacks can now use flags and not a set of cpu's. So we keep all the configuration in one place. The configuration is included for non-DT users. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video/atmel_lcdfb.h')
-rw-r--r--drivers/video/atmel_lcdfb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/atmel_lcdfb.h b/drivers/video/atmel_lcdfb.h
index a011d42019..b8458924ba 100644
--- a/drivers/video/atmel_lcdfb.h
+++ b/drivers/video/atmel_lcdfb.h
@@ -4,6 +4,12 @@
struct atmel_lcdfb_info;
+struct atmel_lcdfb_config {
+ bool have_alt_pixclock;
+ bool have_hozval;
+ bool have_intensity_bit;
+};
+
struct atmel_lcdfb_devdata {
void (*start)(struct atmel_lcdfb_info *sinfo);
void (*stop)(struct atmel_lcdfb_info *sinfo, u32 flags);
@@ -24,7 +30,9 @@ struct atmel_lcdfb_info {
unsigned int lcdcon2;
unsigned int dmacon;
unsigned int lcd_wiring_mode;
+ bool have_alt_pixclock;
bool have_intensity_bit;
+ bool have_hozval;
int gpio_power_control;
bool gpio_power_control_active_low;