From 4abba46cd82aff266174ddcb5d6b3c3fbfa82799 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Mon, 3 Sep 2018 11:48:13 +0900 Subject: [PATCH] rpi: tizen-boot: rpi3/rpi3-32b: set dt filename by its model To identify rpi3 b model and rpi3 b+ model, set dt filename by its model. Note: Tizen uses raspbian vendor kernel, so raspbian dt name is used instead of mainline file name set by booting. Change-Id: I84dc4a38e5f21527912749eee28d784245123340 Reference: 7fe77226aa29 ("rpi: Add identifier for the new RPi3 B+") Signed-off-by: Seung-Woo Kim --- board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr | 7 ++++++- board/raspberrypi/rpi/tizen-boot-rpi3.scr | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr b/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr index 8bbb944..a108ded 100644 --- a/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr +++ b/board/raspberrypi/rpi/tizen-boot-rpi3-32b.scr @@ -73,7 +73,12 @@ echo "console: ${console}" # Kernel image kernel=zImage -setenv fdtfile \"bcm2710-rpi-3-b.dtb\" +# DT image by model +if itest.l ${board_rev} == 0xd; then; + setenv fdtfile \"bcm2710-rpi-3-b-plus.dtb\" +else + setenv fdtfile \"bcm2710-rpi-3-b.dtb\" +fi setenv boot_prefixes \"/\" # To use comdline for using serial console. /* Normal mode */ diff --git a/board/raspberrypi/rpi/tizen-boot-rpi3.scr b/board/raspberrypi/rpi/tizen-boot-rpi3.scr index 2e1f59c..49320de 100644 --- a/board/raspberrypi/rpi/tizen-boot-rpi3.scr +++ b/board/raspberrypi/rpi/tizen-boot-rpi3.scr @@ -73,7 +73,12 @@ echo "console: ${console}" # Kernel image kernel=Image -setenv fdtfile \"bcm2710-rpi-3-b.dtb\" +# DT image by model +if itest.l ${board_rev} == 0xd; then; + setenv fdtfile \"bcm2710-rpi-3-b-plus.dtb\" +else + setenv fdtfile \"bcm2710-rpi-3-b.dtb\" +fi setenv boot_prefixes \"/\" # To use comdline for using serial console. /* Normal mode */ -- 2.7.4