X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fbirdland%2Fbav335x%2Fboard.c;h=9eb851c39763d60155e0733d70bc84713c6f8c29;hb=88718be3001055fa2801a44ab10570279b3f2cb7;hp=e174336e2c9c918dabfb697ebe18f6efc560c38b;hpb=00caae6d47645e68d6e5277aceb69592b49381a6;p=oweals%2Fu-boot.git diff --git a/board/birdland/bav335x/board.c b/board/birdland/bav335x/board.c index e174336e2c..9eb851c397 100644 --- a/board/birdland/bav335x/board.c +++ b/board/birdland/bav335x/board.c @@ -1,15 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * board.c * * Board functions for Birdland Audio BAV335x Network Processor * * Copyright (c) 2012-2014 Birdland Audio - http://birdland.com/oem - * - * SPDX-License-Identifier: GPL-2.0+ */ #include +#include #include +#include +#include #include #include #include @@ -28,9 +30,8 @@ #include #include #include -#include +#include #include -#include #include "board.h" DECLARE_GLOBAL_DATA_PTR; @@ -163,7 +164,7 @@ int spl_start_uboot(void) #ifdef CONFIG_SPL_ENV_SUPPORT env_init(); env_load(); - if (getenv_yesno("boot_os") != 1) + if (env_get_yesno("boot_os") != 1) return 1; #endif @@ -291,7 +292,7 @@ int board_init(void) #endif gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; -#if defined(CONFIG_NOR) || defined(CONFIG_NAND) +#if defined(CONFIG_NOR) || defined(CONFIG_MTD_RAW_NAND) gpmc_init(); #endif return 0; @@ -360,7 +361,7 @@ static struct cpsw_platform_data cpsw_data = { * Build in only these cases to avoid warnings about unused variables * when we build an SPL that has neither option but full U-Boot will. */ -#if ((defined(CONFIG_SPL_ETH_SUPPORT) || defined(CONFIG_SPL_USBETH_SUPPORT)) &&\ +#if ((defined(CONFIG_SPL_ETH_SUPPORT) || defined(CONFIG_SPL_USB_ETHER)) &&\ defined(CONFIG_SPL_BUILD)) || \ ((defined(CONFIG_DRIVER_TI_CPSW) || \ defined(CONFIG_USB_ETHER) && defined(CONFIG_USB_MUSB_GADGET)) && \