Merge tag 'efi-2020-07-rc3-2' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
authorTom Rini <trini@konsulko.com>
Fri, 22 May 2020 14:27:24 +0000 (10:27 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 22 May 2020 14:27:24 +0000 (10:27 -0400)
Pull request for UEFI sub-system for efi-2020-07-rc3 (2)

Problems fixed with these patches are:

* UEFI sub-system not working with virtio block devices
* Missing SATA support in UEFI sub-system
* A superfluous debug statement

66 files changed:
arch/arm/Kconfig
arch/arm/dts/Makefile
arch/arm/dts/r8a77950-salvator-x-u-boot.dts
arch/arm/dts/r8a77950-ulcb-u-boot.dts
arch/arm/dts/r8a77960-salvator-x-u-boot.dts
arch/arm/dts/r8a77960-ulcb-u-boot.dts
arch/arm/dts/r8a77965-salvator-x-u-boot.dts
arch/arm/dts/r8a77965-ulcb-u-boot.dts
arch/arm/dts/r8a77990-ebisu.dts
arch/arm/mach-uniphier/arm32/cache-uniphier.c
arch/arm/mach-uniphier/arm32/psci.c
arch/arm/mach-uniphier/arm32/timer.c
arch/arm/mach-uniphier/arm64/mem_map.c
arch/arm/mach-uniphier/base-address.c
arch/arm/mach-uniphier/board_init.c
arch/arm/mach-uniphier/board_late_init.c
arch/arm/mach-uniphier/boards.c
arch/arm/mach-uniphier/boot-device/boot-device-ld11.c
arch/arm/mach-uniphier/boot-device/boot-device-ld4.c
arch/arm/mach-uniphier/boot-device/boot-device-pro5.c
arch/arm/mach-uniphier/boot-device/boot-device-pxs2.c
arch/arm/mach-uniphier/boot-device/boot-device-pxs3.c
arch/arm/mach-uniphier/boot-device/boot-device.c
arch/arm/mach-uniphier/clk/clk-dram-ld4.c
arch/arm/mach-uniphier/clk/clk-dram-pxs2.c
arch/arm/mach-uniphier/clk/clk-early-ld4.c
arch/arm/mach-uniphier/clk/clk-ld11.c
arch/arm/mach-uniphier/clk/dpll-ld4.c
arch/arm/mach-uniphier/clk/dpll-pro4.c
arch/arm/mach-uniphier/debug-uart/debug-uart.c
arch/arm/mach-uniphier/dram/cmd_ddrmphy.c
arch/arm/mach-uniphier/dram/cmd_ddrphy.c
arch/arm/mach-uniphier/dram/ddrphy-training.c
arch/arm/mach-uniphier/dram/umc-ld4.c
arch/arm/mach-uniphier/dram/umc-pro4.c
arch/arm/mach-uniphier/dram/umc-pxs2.c
arch/arm/mach-uniphier/dram/umc-sld8.c
arch/arm/mach-uniphier/dram_init.c
arch/arm/mach-uniphier/fdt-fixup.c
arch/arm/mach-uniphier/memconf.c
arch/arm/mach-uniphier/micro-support-card.c
arch/arm/mach-uniphier/mmc-boot-mode.c
arch/arm/mach-uniphier/mmc-first-dev.c
arch/arm/mach-uniphier/nand-reset.c
arch/arm/mach-uniphier/pinctrl-glue.c
arch/arm/mach-uniphier/reset.c
arch/arm/mach-uniphier/sbc/sbc-ld11.c
arch/arm/mach-uniphier/sbc/sbc.c
arch/arm/mach-uniphier/spl_board_init.c
arch/sh/config.mk
board/renesas/rcar-common/common.c
configs/r8a77970_eagle_defconfig
configs/r8a77980_condor_defconfig
configs/r8a77990_ebisu_defconfig
configs/r8a77995_draak_defconfig
configs/rcar3_salvator-x_defconfig
configs/rcar3_ulcb_defconfig
configs/uniphier_ld4_sld8_defconfig
configs/uniphier_v7_defconfig
configs/uniphier_v8_defconfig
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/denali.c
include/fdtdec.h
lib/fdtdec.c
scripts/dtc/libfdt/fdt_overlay.c
scripts/dtc/libfdt/libfdt.h

index ef7da27..21df1c4 100644 (file)
@@ -1582,6 +1582,7 @@ config ARCH_UNIPHIER
        bool "Socionext UniPhier SoCs"
        select BOARD_LATE_INIT
        select DM
+       select DM_ETH
        select DM_GPIO
        select DM_I2C
        select DM_MMC
index 2404eaa..12ec6c7 100644 (file)
@@ -777,6 +777,10 @@ dtb-$(CONFIG_RCAR_GEN3) += \
        r8a77990-ebisu-u-boot.dtb \
        r8a77995-draak-u-boot.dtb
 
+ifdef CONFIG_RCAR_GEN3
+DTC_FLAGS += -R 4 -p 0x1000
+endif
+
 dtb-$(CONFIG_RZA1) += \
        r7s72100-gr-peach-u-boot.dtb
 
index 6e5c271..e039e33 100644 (file)
@@ -16,6 +16,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
 };
index fb9bbe1..b7f26c1 100644 (file)
@@ -27,6 +27,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
 };
index a3f2d74..d3b0924 100644 (file)
@@ -16,6 +16,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
 };
index 04023d9..bd1d634 100644 (file)
@@ -27,6 +27,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
 };
index e4bd2d3..d6f0708 100644 (file)
@@ -17,6 +17,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
        status = "okay";
index 28fb30e..954d8b6 100644 (file)
@@ -28,6 +28,8 @@
 };
 
 &sdhi2 {
+       mmc-ddr-1_8v;
+       mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        max-frequency = <200000000>;
        status = "okay";
index 4fd2b14..07a4c9b 100644 (file)
 
        vmmc-supply = <&reg_3p3v>;
        vqmmc-supply = <&reg_1p8v>;
+       mmc-ddr-1_8v;
        mmc-hs200-1_8v;
        mmc-hs400-1_8v;
        bus-width = <8>;
index b6e4abb..cde2a81 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index e231e7b..a4d260a 100644 (file)
@@ -4,9 +4,7 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
-#include <asm/cache.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/io.h>
@@ -17,6 +15,7 @@
 #include <asm/processor.h>
 #include <asm/psci.h>
 #include <asm/secure.h>
+#include <asm/system.h>
 
 #include "../debug.h"
 #include "../soc-info.h"
index b3c907b..a40bdf1 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <linux/io.h>
 
index 7653bd2..a8bd4ee 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/types.h>
 #include <asm/armv8/mmu.h>
 
index 5ee742e..d7456f8 100644 (file)
@@ -3,9 +3,9 @@
 // Copyright (C) 2019 Socionext Inc.
 //   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
 
-#include <common.h>
 #include <dm/of.h>
 #include <fdt_support.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/libfdt.h>
 #include <linux/sizes.h>
index 6bf0811..4f9cd6e 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <log.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/printk.h>
index 378aad0..b800e8b 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <spl.h>
index d9a8d2f..3e2ec9b 100644 (file)
@@ -4,9 +4,9 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/libfdt.h>
 #include <linux/kernel.h>
+#include <asm/global_data.h>
 
 #include "init.h"
 
index 11e70a9..4689ed7 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 02b2394..c6aef18 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 5545248..efd07a3 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 49c5da1..677470c 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
index 4aee50f..6888099 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
index 2fb6255..69a35f5 100644 (file)
@@ -4,12 +4,12 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <spl.h>
 #include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/log2.h>
 
index c796d36..3b721ea 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2015-2017 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 
index b78bd01..75d3e70 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016-2017 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 
index 0f9ce65..25b72d8 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2015-2017 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 
index 94b9d90..d241a65 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
index fd77aa7..3ccaf02 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2015-2016 Socionext Inc.
  */
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index c86881d..44006ae 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2015-2016 Socionext Inc.
  */
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index a70ce59..d116d46 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <linux/io.h>
 #include <linux/serial_reg.h>
index a6c0735..629f8b9 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <stdio.h>
 #include <linux/io.h>
index 476c5b3..ca519d1 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <stdio.h>
 #include <linux/io.h>
index c26f563..1decdf1 100644 (file)
@@ -4,7 +4,6 @@
  * Copyright (C) 2015-2016 Socionext Inc.
  */
 
-#include <log.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
index 2d1f3e3..96acca2 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 012e5f8..cde39b4 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 3f7e5f3..7357420 100644 (file)
@@ -7,8 +7,6 @@
  * Copyright (C) 2015 Socionext Inc.
  */
 
-#include <init.h>
-#include <log.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
index b55b044..a115869 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 1127373..7f27531 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <linux/errno.h>
 #include <linux/io.h>
@@ -13,6 +12,7 @@
 #include <linux/printk.h>
 #include <linux/sizes.h>
 #include <asm/global_data.h>
+#include <asm/u-boot.h>
 
 #include "init.h"
 #include "sg-regs.h"
index 6f3c29d..980c260 100644 (file)
@@ -4,11 +4,11 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <fdt_support.h>
 #include <fdtdec.h>
 #include <jffs2/load_kernel.h>
 #include <mtd_node.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/printk.h>
 
index f69b489..57192f0 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 18435dc..b09ec54 100644 (file)
@@ -5,14 +5,13 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
-#include <fdt_support.h>
-#include <log.h>
-#include <net.h>
+#include <config.h>
 #include <dm/of.h>
+#include <fdt_support.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
 #include <linux/io.h>
+#include <asm/global_data.h>
 
 #include "micro-support-card.h"
 
@@ -108,18 +107,6 @@ void support_card_init(void)
        support_card_show_revision();
 }
 
-#if defined(CONFIG_SMC911X)
-#include <netdev.h>
-
-int board_eth_init(bd_t *bis)
-{
-       if (!support_card_found)
-               return 0;
-
-       return smc911x_initialize(0, (unsigned long)support_card_base + SMC911X_OFFSET);
-}
-#endif
-
 #if defined(CONFIG_MTD_NOR_FLASH)
 
 #include <mtd/cfi_flash.h>
index b484953..e47e5df 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <mmc.h>
 #include <spl.h>
 
index 7f29b6b..45bb10f 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <mmc.h>
index dbf54aa..11cadaa 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <log.h>
 #include <linux/errno.h>
 #include <dm.h>
 #include <dm/uclass-internal.h>
index b45f72f..2e07264 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <dm.h>
 #include <dm/pinctrl.h>
index 92a8b92..5fffd23 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <linux/io.h>
 #include <asm/secure.h>
index 21972ac..a0162e1 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2016-2017 Socionext Inc.
  */
 
-#include <common.h>
 #include <spl.h>
 #include <linux/io.h>
 
index af8d6f4..2100f49 100644 (file)
@@ -5,7 +5,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <linux/io.h>
 #include <asm/global_data.h>
 
index 48764a1..a93b8cd 100644 (file)
@@ -4,7 +4,6 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <hang.h>
 #include <spl.h>
index 6ef4463..85dab38 100644 (file)
@@ -13,6 +13,6 @@ LDFLAGS_STANDALONE += -EB
 endif
 
 PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
-PLATFORM_RELFLAGS += -fpic
+PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections
 LDFLAGS_FINAL = --gc-sections
 PLATFORM_RELFLAGS += -ffixed-r13
index b9e8cb4..46dcea1 100644 (file)
@@ -21,32 +21,24 @@ DECLARE_GLOBAL_DATA_PTR;
 /* If the firmware passed a device tree use it for U-Boot DRAM setup. */
 extern u64 rcar_atf_boot_args[];
 
-int dram_init(void)
+int fdtdec_board_setup(const void *fdt_blob)
 {
-       const void *atf_fdt_blob = (const void *)(rcar_atf_boot_args[1]);
-       const void *blob;
+       void *atf_fdt_blob = (void *)(rcar_atf_boot_args[1]);
 
-       /* Check if ATF passed us DTB. If not, fall back to builtin DTB. */
        if (fdt_magic(atf_fdt_blob) == FDT_MAGIC)
-               blob = atf_fdt_blob;
-       else
-               blob = gd->fdt_blob;
+               fdt_overlay_apply_node((void *)fdt_blob, 0, atf_fdt_blob, 0);
 
-       return fdtdec_setup_mem_size_base_fdt(blob);
+       return 0;
 }
 
-int dram_init_banksize(void)
+int dram_init(void)
 {
-       const void *atf_fdt_blob = (const void *)(rcar_atf_boot_args[1]);
-       const void *blob;
-
-       /* Check if ATF passed us DTB. If not, fall back to builtin DTB. */
-       if (fdt_magic(atf_fdt_blob) == FDT_MAGIC)
-               blob = atf_fdt_blob;
-       else
-               blob = gd->fdt_blob;
+       return fdtdec_setup_mem_size_base_fdt(gd->fdt_blob);
+}
 
-       fdtdec_setup_memory_banksize_fdt(blob);
+int dram_init_banksize(void)
+{
+       fdtdec_setup_memory_banksize_fdt(gd->fdt_blob);
 
        return 0;
 }
index 78bfb9a..2a53f16 100644 (file)
@@ -57,6 +57,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_RENESAS_RPC_SPI=y
index 83d6a75..d9272b8 100644 (file)
@@ -61,6 +61,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_RENESAS_RPC_SPI=y
index cc9257b..e4a017a 100644 (file)
@@ -55,6 +55,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
index 89b0f15..b2dc167 100644 (file)
@@ -63,6 +63,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
index 3031fdd..6944edc 100644 (file)
@@ -61,6 +61,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
index 53ea938..4be3e0b 100644 (file)
@@ -58,6 +58,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
index 0bc8543..4ed7353 100644 (file)
@@ -52,7 +52,6 @@ CONFIG_NAND_DENALI_DT=y
 CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8
 CONFIG_SPL_NAND_DENALI=y
 CONFIG_SMC911X=y
-CONFIG_SMC911X_BASE=0x0
 CONFIG_SMC911X_32_BIT=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
index 6485ab7..e46bdca 100644 (file)
@@ -51,7 +51,6 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_DENALI_DT=y
 CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8
 CONFIG_SPL_NAND_DENALI=y
-CONFIG_DM_ETH=y
 CONFIG_SNI_AVE=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
index 4514468..a130bbb 100644 (file)
@@ -50,7 +50,6 @@ CONFIG_SYS_FLASH_CFI=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_DENALI_DT=y
 CONFIG_NAND_DENALI_SPARE_AREA_SKIP_BYTES=8
-CONFIG_DM_ETH=y
 CONFIG_SNI_AVE=y
 CONFIG_PINCONF=y
 CONFIG_SPI=y
index c4d9d31..06b2ff9 100644 (file)
@@ -121,15 +121,6 @@ config NAND_DENALI_DT
          Enable the driver for NAND flash on platforms using a Denali NAND
          controller as a DT device.
 
-config NAND_DENALI_SPARE_AREA_SKIP_BYTES
-       int "Number of bytes skipped in OOB area"
-       depends on NAND_DENALI
-       range 0 63
-       help
-         This option specifies the number of bytes to skip from the beginning
-         of OOB area before last ECC sector data starts.  This is potentially
-         used to preserve the bad block marker in the OOB area.
-
 config NAND_LPC32XX_SLC
        bool "Support LPC32XX_SLC controller"
        help
@@ -404,6 +395,15 @@ config SPL_NAND_DENALI
          This is a small implementation of the Denali NAND controller
          for use on SPL.
 
+config NAND_DENALI_SPARE_AREA_SKIP_BYTES
+       int "Number of bytes skipped in OOB area"
+       depends on SPL_NAND_DENALI
+       range 0 63
+       help
+         This option specifies the number of bytes to skip from the beginning
+         of OOB area before last ECC sector data starts.  This is potentially
+         used to preserve the bad block marker in the OOB area.
+
 config SPL_NAND_SIMPLE
        bool "Use simple SPL NAND driver"
        depends on !SPL_NAND_AM33XX_BCH
index 5bae7f1..15e9029 100644 (file)
@@ -1095,6 +1095,7 @@ static void denali_hw_init(struct denali_nand_info *denali)
        iowrite32(CHIP_EN_DONT_CARE__FLAG, denali->reg + CHIP_ENABLE_DONT_CARE);
 
        iowrite32(0xffff, denali->reg + SPARE_AREA_MARKER);
+       iowrite32(WRITE_PROTECT__FLAG, denali->reg + WRITE_PROTECT);
 }
 
 int denali_calc_ecc_bytes(int step_size, int strength)
index 166f29c..abd6d42 100644 (file)
@@ -1155,6 +1155,11 @@ int fdtdec_set_carveout(void *blob, const char *node, const char *prop_name,
  */
 int fdtdec_setup(void);
 
+/**
+ * Perform board-specific early DT adjustments
+ */
+int fdtdec_board_setup(const void *fdt_blob);
+
 #if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
 /**
  * fdtdec_resetup()  - Set up the device tree again
index 9c4d571..1f2b763 100644 (file)
@@ -1474,8 +1474,14 @@ int fdtdec_set_carveout(void *blob, const char *node, const char *prop_name,
        return 0;
 }
 
+__weak int fdtdec_board_setup(const void *fdt_blob)
+{
+       return 0;
+}
+
 int fdtdec_setup(void)
 {
+       int ret;
 #if CONFIG_IS_ENABLED(OF_CONTROL)
 # if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
        void *fdt_blob;
@@ -1528,7 +1534,10 @@ int fdtdec_setup(void)
 # endif
 #endif
 
-       return fdtdec_prepare_fdt();
+       ret = fdtdec_prepare_fdt();
+       if (!ret)
+               ret = fdtdec_board_setup(gd->fdt_blob);
+       return ret;
 }
 
 #if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
index be71873..c090e69 100644 (file)
@@ -879,3 +879,8 @@ err:
 
        return ret;
 }
+
+int fdt_overlay_apply_node(void *fdt, int target, void *fdto, int node)
+{
+       return overlay_apply_node(fdt, target, fdto, node);
+}
index fa63fff..421f90a 100644 (file)
@@ -2032,6 +2032,13 @@ int fdt_del_node(void *fdt, int nodeoffset);
  */
 int fdt_overlay_apply(void *fdt, void *fdto);
 
+/**
+ * fdt_overlay_apply_node - Merges a node into the base device tree
+ *
+ * See overlay_apply_node() for details.
+ */
+int fdt_overlay_apply_node(void *fdt, int target, void *fdto, int node);
+
 /**********************************************************************/
 /* Debugging / informational functions                                */
 /**********************************************************************/