]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-rockchip/boot_mode.c
Fixup various SPDX tags from the latest merge
[u-boot] / arch / arm / mach-rockchip / boot_mode.c
index 942849f2f8442212767013a27376a231afc17eef..f32b3c4ce56a0fc6bffbce9782cac339bfd114d7 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2016 Rockchip Electronics Co., Ltd
- *
- * SPDX-License-Identifier:     GPL-2.0+
  */
 
 #include <common.h>
@@ -9,6 +8,15 @@
 #include <asm/io.h>
 #include <asm/arch/boot_mode.h>
 
+#if (CONFIG_ROCKCHIP_BOOT_MODE_REG == 0)
+
+int setup_boot_mode(void)
+{
+       return 0;
+}
+
+#else
+
 void set_back_to_bootrom_dnl_flag(void)
 {
        writel(BOOT_BROM_DOWNLOAD, CONFIG_ROCKCHIP_BOOT_MODE_REG);
@@ -74,3 +82,5 @@ int setup_boot_mode(void)
 
        return 0;
 }
+
+#endif