diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-03 11:22:41 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-06 12:34:22 +0200 |
commit | dd93a9f6ef517eaa1a662146d4cffc87a5772bd2 (patch) | |
tree | 19128cfdc8d4f4685ba678cbd2a665caf9f12b6d /arch/arm/mach-mxs | |
parent | 4598e92eada6e3bc8610a7aa1b01aab3df705f9a (diff) | |
download | barebox-dd93a9f6ef517eaa1a662146d4cffc87a5772bd2.tar.gz barebox-dd93a9f6ef517eaa1a662146d4cffc87a5772bd2.tar.xz |
video: stm: code buswidth in platform data as decimal
Instead of putting hardware specific bit masks in platform_data just
use the decimal interface width and encode this in the driver. This
makes it easier to create the platform_data and helps device tree
based implementations.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r-- | arch/arm/mach-mxs/include/mach/fb.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-mxs/include/mach/fb.h b/arch/arm/mach-mxs/include/mach/fb.h index 2b6825f7b5..ad28f79d57 100644 --- a/arch/arm/mach-mxs/include/mach/fb.h +++ b/arch/arm/mach-mxs/include/mach/fb.h @@ -15,11 +15,6 @@ #include <fb.h> -#define STMLCDIF_8BIT 1 /** pixel data bus to the display is of 8 bit width */ -#define STMLCDIF_16BIT 0 /** pixel data bus to the display is of 16 bit width */ -#define STMLCDIF_18BIT 2 /** pixel data bus to the display is of 18 bit width */ -#define STMLCDIF_24BIT 3 /** pixel data bus to the display is of 24 bit width */ - /** LC display uses active high data enable signal */ #define FB_SYNC_DE_HIGH_ACT (1 << 27) /** LC display will latch its data at clock's rising edge */ @@ -38,7 +33,7 @@ struct imx_fb_platformdata { unsigned mode_cnt; unsigned dotclk_delay; /**< refer manual HW_LCDIF_VDCTRL4 register */ - unsigned ld_intf_width; /**< refer STMLCDIF_* macros */ + unsigned ld_intf_width; /* interface width in bits */ unsigned bits_per_pixel; void *fixed_screen; /**< if != NULL use this as framebuffer memory */ |