]> git.sur5r.net Git - u-boot/blobdiff - board/BuR/common/common.c
env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr()
[u-boot] / board / BuR / common / common.c
index e8c64018eb23dbe9250925c9d4a55a8a787bc873..eb34de931ec3ee36f84f0cf992c41f6725bfb58f 100644 (file)
@@ -184,7 +184,7 @@ int load_lcdtiming(struct am335x_lcdpanel *panel)
                puts("no 'factory-settings / rotation' in dtb!\n");
        }
        snprintf(buf, sizeof(buf), "fbcon=rotate:%d", panel_info.vl_rot);
-       setenv("optargs_rot", buf);
+       env_set("optargs_rot", buf);
 #else
        pnltmp.hactive = getenv_ulong("ds1_hactive", 10, ~0UL);
        pnltmp.vactive = getenv_ulong("ds1_vactive", 10, ~0UL);
@@ -259,7 +259,8 @@ static int load_devicetree(void)
        }
 #ifdef CONFIG_NAND
        dtbsize = 0x20000;
-       rc = nand_read_skip_bad(nand_info[0], 0x40000, (size_t *)&dtbsize,
+       rc = nand_read_skip_bad(get_nand_dev_by_index(0), 0x40000,
+                               (size_t *)&dtbsize,
                                NULL, 0x20000, (u_char *)dtbaddr);
 #else
        char *dtbname = getenv("dtb");
@@ -669,7 +670,7 @@ int board_eth_init(bd_t *bis)
 
                if (mac) {
                        printf("using: %pM on ", mac);
-                       eth_setenv_enetaddr("ethaddr", (const u8 *)mac);
+                       eth_env_set_enetaddr("ethaddr", (const u8 *)mac);
                }
        }
        writel(MII_MODE_ENABLE, &cdev->miisel);