]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
am335x, guardian: code cleanup and boot optimization
authorGireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
Fri, 11 Jun 2021 16:13:40 +0000 (16:13 +0000)
committerLokesh Vutla <lokeshvutla@ti.com>
Thu, 15 Jul 2021 12:26:03 +0000 (17:56 +0530)
- remove redundant headers and boot modes from board file

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210611161350.2141-9-Gireesh.Hiremath@in.bosch.com
board/bosch/guardian/board.c

index 9429454a74da38a5aa757fda9bf9ac5d0ee08438..12d047b74b581419bc9ff36e765be8d8a965ef1a 100644 (file)
@@ -9,19 +9,14 @@
  */
 
 #include <common.h>
-#include <cpsw.h>
 #include <dm.h>
-#include <env.h>
 #include <env_internal.h>
 #include <errno.h>
 #include <i2c.h>
-#include <init.h>
 #include <led.h>
-#include <miiphy.h>
 #include <panel.h>
 #include <asm/global_data.h>
 #include <power/tps65217.h>
-#include <power/tps65910.h>
 #include <spl.h>
 #include <watchdog.h>
 #include <asm/arch/clock.h>
@@ -193,27 +188,11 @@ int board_init(void)
 #ifdef CONFIG_BOARD_LATE_INIT
 static void set_bootmode_env(void)
 {
-       char *boot_device_name = NULL;
        char *boot_mode_gpio = "gpio@44e07000_14";
        int   ret;
-       int   value;
 
        struct gpio_desc boot_mode_desc;
 
-       switch (gd->arch.omap_boot_device) {
-       case BOOT_DEVICE_NAND:
-               boot_device_name = "nand";
-               break;
-       case BOOT_DEVICE_USBETH:
-               boot_device_name = "usbeth";
-               break;
-       default:
-               break;
-       }
-
-       if (boot_device_name)
-               env_set("boot_device", boot_device_name);
-
        ret = dm_gpio_lookup_name(boot_mode_gpio, &boot_mode_desc);
        if (ret) {
                printf("%s is not found\n", boot_mode_gpio);