From: Jaehoon Chung Date: Thu, 5 Dec 2019 00:28:35 +0000 (+0900) Subject: include: samsung: tizen_rpi: separate vc_mem base/size value X-Git-Tag: accepted/tizen/unified/20201110.125028~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9146d3ad65c0f911787985407c039c036a70763;p=platform%2Fkernel%2Fu-boot.git include: samsung: tizen_rpi: separate vc_mem base/size value Separate vc_mem base/size value according to target. RPI4 and RPI3 have different value about vc_mem base and size. This value has been taken from raspbian kernel image. Change-Id: I95274e2acab9e3ef6af90759d2141428b82f86a8 Signed-off-by: Jaehoon Chung --- diff --git a/include/samsung/tizen_rpi.h b/include/samsung/tizen_rpi.h index b38ea3f..9711dad 100644 --- a/include/samsung/tizen_rpi.h +++ b/include/samsung/tizen_rpi.h @@ -46,6 +46,12 @@ /* NFSDOWN */ #define CONFIG_IP_DEFRAG +#ifdef CONFIG_TARGET_RPI_4_32B +#define TIZEN_VC_MEM "vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 " +#else +#define TIZEN_VC_MEM "vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 " +#endif + /* # Tizen kernel image is over than 16MB, it will be overlapped with other address. # To avoid this behaivor, change to 0x03300000 from 0x01000000 @@ -80,9 +86,9 @@ "bootdev=mmc\0" \ "tfm=setenv bootmode download; run bootcmd\0" \ "tizen_bootarg=" \ + TIZEN_VC_MEM \ "8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2709.serial=0xed6687d3 " \ - "bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 " \ - "vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0\0" \ + "bcm2709.uart_clock=48000000 dwc_otg.lpm_enable=0\0" \ "opts=loglevel=4\0" #endif /* __CONFIG_TIZEN_RPI_H */