From db83b35124fd987ba31e5b3341ea45ecfced610f Mon Sep 17 00:00:00 2001 From: QiaoChong Date: Thu, 28 Nov 2019 10:31:59 +0800 Subject: [PATCH] ls3a7a dc resolution can change in conf file. Change-Id: Iacffdd5a8645b40be6d662877b5c989db7235012 Signed-off-by: QiaoChong --- Targets/Bonito3a3000_7a/dev/dc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Targets/Bonito3a3000_7a/dev/dc.c b/Targets/Bonito3a3000_7a/dev/dc.c index 7896b876..d3672557 100644 --- a/Targets/Bonito3a3000_7a/dev/dc.c +++ b/Targets/Bonito3a3000_7a/dev/dc.c @@ -25,10 +25,14 @@ typedef unsigned long dma_addr_t; #define write_reg(addr,val) writel(val,addr) -#define FB_XSIZE 800 -#define FB_YSIZE 600 //#define FB_XSIZE 1920 //#define FB_YSIZE 1080 +#ifndef FB_XSIZE +#define FB_XSIZE 800 +#endif +#ifndef FB_YSIZE +#define FB_YSIZE 600 +#endif #define DIS_WIDTH FB_XSIZE #define DIS_HEIGHT FB_YSIZE #define EXTRA_PIXEL 0