From 3ccd0e018a3362fa21b62d9a5b770f2421003234 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Thu, 5 Dec 2019 09:28:35 +0900 Subject: [PATCH] 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 --- include/samsung/tizen_rpi.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/samsung/tizen_rpi.h b/include/samsung/tizen_rpi.h index f0103b6..cbfc325 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 */ -- 2.7.4