From ea79aabf3d6975c829488c6367ccbff745164703 Mon Sep 17 00:00:00 2001 From: Thuy Tran Date: Thu, 12 Apr 2018 15:28:54 +0700 Subject: rcar-gen3: u-boot: Update SRCREV to follow the latest version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates u-boot SRCREV to follow the latest version for following updates: - Fix XTAL clock for Salvator-XS board. - Use packed structures for networking. As a result, “dcache off” command works fine. It also adds u-boot build options to support each H3 device trees as below: - For R-Car H3 SiP DDR 8GiB (2GiB x 4ch), specify RCAR_DRAM_MAP4_2. - For R-Car H3 SiP DDR 4GiB (2GiB x 2ch), specify RCAR_DRAM_MAP2_2. - For R-Car H3 SiP DDR 4GiB (1GiB x 4ch), specify RCAR_DRAM_MAP4_1. In Yv3.7.0, we will support R-Car H3 SiP DDR 8GiB by default. Signed-off-by: Thuy Tran Signed-off-by: Takamitsu Honda --- meta-rcar-gen3/include/uboot-control.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-rcar-gen3/include/uboot-control.inc (limited to 'meta-rcar-gen3/include') diff --git a/meta-rcar-gen3/include/uboot-control.inc b/meta-rcar-gen3/include/uboot-control.inc new file mode 100644 index 0000000..859295b --- /dev/null +++ b/meta-rcar-gen3/include/uboot-control.inc @@ -0,0 +1,11 @@ +# This function is to add more U-Boot options to build with H3 (SoC: r8a7795) + +def get_uboot_config_opt(d): + option = d.getVar('H3_OPTION') + if option == "1": + d.setVar('UBOOT_CONFIG_OPT',' KCFLAGS+=-DRCAR_DRAM_MAP4_2 KAFLAGS+=-DRCAR_DRAM_MAP4_2') + elif option == "2": + d.setVar('UBOOT_CONFIG_OPT',' KCFLAGS+=-DRCAR_DRAM_MAP2_2 KAFLAGS+=-DRCAR_DRAM_MAP2_2') + else: + d.setVar('UBOOT_CONFIG_OPT','') + return d.getVar('UBOOT_CONFIG_OPT') -- cgit 1.2.3-korg