]> git.sur5r.net Git - u-boot/blobdiff - board/highbank/highbank.c
imx: ventana: Rework CONFIG_CMD_GSC code to not be included in SPL
[u-boot] / board / highbank / highbank.c
index 55999ed2266bcb4045dc3975dcafbb18955a4ed1..f7c05ab08fa23d427b83f5509e9c081af6ddb56d 100644 (file)
@@ -67,7 +67,7 @@ void scsi_init(void)
        cphy_disable_overrides();
        if (reg & PWRDOM_STAT_SATA) {
                ahci_init((void __iomem *)HB_AHCI_BASE);
-               scsi_scan(1);
+               scsi_scan(true);
        }
 }
 #endif
@@ -80,11 +80,11 @@ int misc_init_r(void)
 
        boot_choice = readl(HB_SREG_A9_BOOT_SRC_STAT) & 0xff;
        sprintf(envbuffer, "bootcmd%d", boot_choice);
-       if (getenv(envbuffer)) {
+       if (env_get(envbuffer)) {
                sprintf(envbuffer, "run bootcmd%d", boot_choice);
-               setenv("bootcmd", envbuffer);
+               env_set("bootcmd", envbuffer);
        } else
-               setenv("bootcmd", "");
+               env_set("bootcmd", "");
 
        return 0;
 }