X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fsiemens%2Frut%2Fboard.c;h=ed5cde3a0b7f10cbc86a46e50987e127037255c7;hb=d024236e5a31a2b4b82cbcc98b31b8170fc88d28;hp=fb840f7ed2263ad2f96107280d17d759b2aa107f;hpb=d51aae64236878b72283bd135df716e30f7f5ded;p=oweals%2Fu-boot.git diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c index fb840f7ed2..ed5cde3a0b 100644 --- a/board/siemens/rut/board.c +++ b/board/siemens/rut/board.c @@ -35,8 +35,6 @@ #include "../common/factoryset.h" #include "../../../drivers/video/da8xx-fb.h" -DECLARE_GLOBAL_DATA_PTR; - /* * Read header information from EEPROM into global structure. */ @@ -174,7 +172,7 @@ static struct cpsw_platform_data cpsw_data = { }; #if defined(CONFIG_DRIVER_TI_CPSW) || \ - (defined(CONFIG_USB_ETHER) && defined(CONFIG_MUSB_GADGET)) + (defined(CONFIG_USB_ETHER) && defined(CONFIG_USB_MUSB_GADGET)) int board_eth_init(bd_t *bis) { struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; @@ -182,7 +180,7 @@ int board_eth_init(bd_t *bis) int rv; #ifndef CONFIG_SPL_BUILD - factoryset_setenv(); + factoryset_env_set(); #endif /* Set rgmii mode and enable rmii clock to be sourced from chip */ @@ -480,9 +478,9 @@ int board_late_init(void) sprintf(tmp, "%s_%s", factory_dat.asn, factory_dat.comp_version); else - sprintf(tmp, "QMX7.E38_4.0"); + strcpy(tmp, "QMX7.E38_4.0"); - ret = setenv("boardid", tmp); + ret = env_set("boardid", tmp); if (ret) printf("error setting board id\n");