]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: cfb_console.c: Use bi_dram[] values on all platforms
authorStefan Roese <sr@denx.de>
Wed, 12 Aug 2020 11:32:41 +0000 (13:32 +0200)
committerStefan Roese <sr@denx.de>
Wed, 26 Aug 2020 07:19:50 +0000 (09:19 +0200)
All platforms support bi_dram[] since quite some time. Lets remove the
and bi_memsize values completely.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/cfb_console.c

index badade353ec1804d5fa66692d7a422eda98b127c..3f07f4eb297fde40e92f861ae51c1289347aeef5 100644 (file)
@@ -1983,8 +1983,6 @@ static void *video_logo(void)
 static int cfb_fb_is_in_dram(void)
 {
        struct bd_info *bd = gd->bd;
-#if defined(CONFIG_ARM) || defined(CONFIG_NDS32) || \
-defined(CONFIG_SANDBOX) || defined(CONFIG_X86)
        ulong start, end;
        int i;
 
@@ -1995,11 +1993,7 @@ defined(CONFIG_SANDBOX) || defined(CONFIG_X86)
                    (ulong)video_fb_address < end)
                        return 1;
        }
-#else
-       if ((ulong)video_fb_address >= bd->bi_memstart &&
-           (ulong)video_fb_address < bd->bi_memstart + bd->bi_memsize)
-               return 1;
-#endif
+
        return 0;
 }