aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-05-10 12:59:51 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-10 12:59:51 -0400
commitcccd559e98c05b669bdc37b01802f920cff1d6dd (patch)
tree4b62f164a55dc71a6582918953a431dc51f51832 /include/linux
parentcece6460c24386d15503ad4e07f740a88f3c8403 (diff)
parentd4a5611743a6f5d126f8cbfdbf29e12fd8d1b73f (diff)
Merge tag 'fbdev-v5.2' of git://github.com/bzolnier/linux
Pull fbdev updates from Bartlomiej Zolnierkiewicz: "Four small fixes for fb core, updates for udlfb, sm712fb, macfb and atafb drivers. Redundant code removals from amba-clcd and atmel_lcdfb drivers. Minor fixes/cleanups for other fb drivers Detailed summary: - fix regression in fbcon logo handling on 'quiet' boots (Andreas Schwab) - fix divide-by-zero error in fb_var_to_videomode() (Shile Zhang) - fix 'WARNING in __alloc_pages_nodemask' bug (Jiufei Xue) - list all PCI memory BARs as conflicting apertures (Gerd Hoffmann) - update udlfb driver: fix sleeping inside spinlock, add mutex around rendering calls and remove redundant code (Mikulas Patocka) - update sm712fb driver: fix SM720 support related issues (Yifeng Li) - update macfb driver: fix DAFB colour table pointer initialization and remove redundant code (Finn Thain) - update atafb driver: fix kexec support, use dev_*() calls instead of printk() and remove obsolete module support (Geert Uytterhoeven) - add support to mxsfb driver for skipping display initialization for flicker-free display takeover from bootloader (Melchior Franz) - remove Versatile and Nomadik board families support from amba-clcd driver as they are handled by DRM driver nowadays (Linus Walleij) - remove no longer needed AVR and platform_data support from atmel_lcdfb driver (Alexandre Belloni) - misc fixes (Colin Ian King, Julia Lawall, Gustavo A. R. Silva, Aditya Pakki, Kangjie Lu, YueHaibing) - misc cleanups (Enrico Weigelt, Kefeng Wang)" * tag 'fbdev-v5.2' of git://github.com/bzolnier/linux: (38 commits) video: fbdev: Use dev_get_drvdata() fbcon: Don't reset logo_shown when logo is currently shown video: fbdev: atmel_lcdfb: remove set but not used variable 'pdata' video: fbdev: mxsfb: remove set but not used variable 'line_count' video: fbdev: pvr2fb: remove set but not used variable 'size' fbdev: fix WARNING in __alloc_pages_nodemask bug video: amba-clcd: Decomission Versatile and Nomadik fbdev: sm712fb: fix memory frequency by avoiding a switch/case fallthrough fbdev: fix divide error in fb_var_to_videomode fbdev: sm712fb: use 1024x768 by default on non-MIPS, fix garbled display fbdev: sm712fb: fix support for 1024x768-16 mode fbdev: sm712fb: fix crashes and garbled display during DPMS modesetting fbdev: sm712fb: fix crashes during framebuffer writes by correctly mapping VRAM fbdev: sm712fb: fix boot screen glitch when sm712fb replaces VGA fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75 fbdev: sm712fb: fix brightness control on reboot, don't set SR30 fbdev: sm712fb: fix white screen of death on reboot, don't set CR3B-CR3F video: imsttfb: fix potential NULL pointer dereferences video: hgafb: fix potential NULL pointer dereference fbdev: list all pci memory bars as conflicting apertures ...
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/amba/clcd.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/linux/amba/clcd.h b/include/linux/amba/clcd.h
index d0c3be77c18e..b6e0cbeaf533 100644
--- a/include/linux/amba/clcd.h
+++ b/include/linux/amba/clcd.h
@@ -124,38 +124,11 @@ struct clcd_board {
124struct amba_device; 124struct amba_device;
125struct clk; 125struct clk;
126 126
127/**
128 * struct clcd_vendor_data - holds hardware (IP-block) vendor-specific
129 * variant information
130 *
131 * @clock_timregs: the CLCD needs to be clocked when accessing the
132 * timer registers, or the hardware will hang.
133 * @packed_24_bit_pixels: this variant supports 24bit packed pixel data,
134 * so that RGB accesses 3 bytes at a time, not just on even 32bit
135 * boundaries, packing the pixel data in memory. ST Microelectronics
136 * have this.
137 * @st_bitmux_control: ST Microelectronics have implemented output
138 * bit line multiplexing into the CLCD control register. This indicates
139 * that we need to use this.
140 * @init_board: custom board init function for this variant
141 * @init_panel: custom panel init function for this variant
142 */
143struct clcd_vendor_data {
144 bool clock_timregs;
145 bool packed_24_bit_pixels;
146 bool st_bitmux_control;
147 int (*init_board)(struct amba_device *adev,
148 struct clcd_board *board);
149 int (*init_panel)(struct clcd_fb *fb,
150 struct device_node *panel);
151};
152
153/* this data structure describes each frame buffer device we find */ 127/* this data structure describes each frame buffer device we find */
154struct clcd_fb { 128struct clcd_fb {
155 struct fb_info fb; 129 struct fb_info fb;
156 struct amba_device *dev; 130 struct amba_device *dev;
157 struct clk *clk; 131 struct clk *clk;
158 struct clcd_vendor_data *vendor;
159 struct clcd_panel *panel; 132 struct clcd_panel *panel;
160 struct clcd_board *board; 133 struct clcd_board *board;
161 void *board_data; 134 void *board_data;
@@ -257,10 +230,6 @@ static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs)
257 else 230 else
258 val |= CNTL_LCDBPP16_444; 231 val |= CNTL_LCDBPP16_444;
259 break; 232 break;
260 case 24:
261 /* Modified variant supporting 24 bit packed pixels */
262 val |= CNTL_ST_LCDBPP24_PACKED;
263 break;
264 case 32: 233 case 32:
265 val |= CNTL_LCDBPP24; 234 val |= CNTL_LCDBPP24;
266 break; 235 break;