include: samsung: tizen_rpi: separate vc_mem base/size value
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 5 Dec 2019 00:28:35 +0000 (09:28 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Oct 2022 04:32:45 +0000 (13:32 +0900)
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 <jh80.chung@samsung.com>
include/samsung/tizen_rpi.h

index f0103b6..cbfc325 100644 (file)
 /* 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 */