mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 14:18:14 +01:00
fdt: Drop support for LCD fixup in simplefb
This relies on the old LCD implementation which is to be removed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0f9b86f811
commit
2429068a39
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <lcd.h>
|
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
@ -22,7 +21,6 @@ static int fdt_simplefb_configure_node(void *blob, int off)
|
|||||||
int bpix; /* log2 of bits per pixel */
|
int bpix; /* log2 of bits per pixel */
|
||||||
const char *name;
|
const char *name;
|
||||||
ulong fb_base;
|
ulong fb_base;
|
||||||
#ifdef CONFIG_DM_VIDEO
|
|
||||||
struct video_uc_plat *plat;
|
struct video_uc_plat *plat;
|
||||||
struct video_priv *uc_priv;
|
struct video_priv *uc_priv;
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
@ -37,12 +35,6 @@ static int fdt_simplefb_configure_node(void *blob, int off)
|
|||||||
ysize = uc_priv->ysize;
|
ysize = uc_priv->ysize;
|
||||||
bpix = uc_priv->bpix;
|
bpix = uc_priv->bpix;
|
||||||
fb_base = plat->base;
|
fb_base = plat->base;
|
||||||
#else
|
|
||||||
xsize = lcd_get_pixel_width();
|
|
||||||
ysize = lcd_get_pixel_height();
|
|
||||||
bpix = LCD_BPP;
|
|
||||||
fb_base = gd->fb_base;
|
|
||||||
#endif
|
|
||||||
switch (bpix) {
|
switch (bpix) {
|
||||||
case 4: /* VIDEO_BPP16 */
|
case 4: /* VIDEO_BPP16 */
|
||||||
name = "r5g6b5";
|
name = "r5g6b5";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user