]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/zeus/update.c
net: fec: use correct sizes to clear and flush descriptors
[karo-tx-uboot.git] / board / zeus / update.c
index c76519f094fb28724fb056c7fc464e44cd469dc5..ac738ef2ab3c3804edaa465a24f244a02e48d233 100644 (file)
@@ -2,23 +2,7 @@
  * (C) Copyright 2007
  * Stefan Roese, DENX Software Engineering, sr@denx.de.
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * 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 <config.h>
@@ -26,7 +10,7 @@
 #include <command.h>
 #include <asm/processor.h>
 #include <asm/io.h>
-#include <asm/gpio.h>
+#include <asm/ppc4xx-gpio.h>
 #include <i2c.h>
 
 #if defined(CONFIG_ZEUS)
@@ -67,12 +51,12 @@ u8 buf_zeus_pe[] = {
 static int update_boot_eeprom(void)
 {
        u32 len = 0x20;
-       u8 chip = CFG_I2C_EEPROM_ADDR;
+       u8 chip = CONFIG_SYS_I2C_EEPROM_ADDR;
        u8 *pbuf;
        u8 base;
        int i;
 
-       if (in_be32((void *)GPIO0_IR) & GPIO_VAL(CFG_GPIO_ZEUS_PE)) {
+       if (in_be32((void *)GPIO0_IR) & GPIO_VAL(CONFIG_SYS_GPIO_ZEUS_PE)) {
                pbuf = buf_zeus_pe;
                base = 0x40;
        } else {
@@ -91,15 +75,15 @@ static int update_boot_eeprom(void)
        return 0;
 }
 
-int do_update_boot_eeprom(cmd_tbl_t* cmdtp, int flag, int argc, char* argv[])
+int do_update_boot_eeprom(cmd_tbl_t* cmdtp, int flag, int argc, char * const argv[])
 {
        return update_boot_eeprom();
 }
 
 U_BOOT_CMD (
        update_boot_eeprom, 1, 1, do_update_boot_eeprom,
-       "update_boot_eeprom  - update boot eeprom content\n",
-       NULL
+       "update boot eeprom content",
+       ""
 );
 
 #endif