X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fsixnet%2Fsixnet.c;h=06b20835588962c546084c080b41be180fe94699;hb=7bcee5f7eef740c506117e6da1226bc8ec7f466a;hp=4fcd84b6f034c9d2ec6abc8d69181ee861e03e07;hpb=ee1702d75a30d076139d1841383a1fa7220a0e11;p=oweals%2Fu-boot.git diff --git a/board/sixnet/sixnet.c b/board/sixnet/sixnet.c index 4fcd84b6f0..06b2083558 100644 --- a/board/sixnet/sixnet.c +++ b/board/sixnet/sixnet.c @@ -3,23 +3,9 @@ * Dave Ellis, SIXNET, dge@sixnetio.com. * Based on code by: * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * and other contributors to U-Boot. See file CREDITS for list - * of people who contributed to this project. + * and other contributors to U-Boot. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -33,11 +19,6 @@ # include #endif -#if defined(CONFIG_CMD_NAND) -#include -extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE]; -#endif - DECLARE_GLOBAL_DATA_PTR; #define ORMASK(size) ((-size) & OR_AM_MSK) @@ -51,7 +32,7 @@ void show_boot_progress (int status) { #if defined(CONFIG_STATUS_LED) # if defined(STATUS_LED_BOOT) - if (status == 15) { + if (status == BOOTSTAGE_ID_RUN_OS) { /* ready to transfer to kernel, make sure LED is proper state */ status_led_set(STATUS_LED_BOOT, CONFIG_BOOT_LED_STATE); } @@ -260,9 +241,6 @@ int misc_init_r (void) { volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR; volatile memctl8xx_t *memctl = &immap->im_memctl; - char* s; - char* e; - int reg; bd_t *bd = gd->bd; uchar enetaddr[6];