]> git.sur5r.net Git - u-boot/blobdiff - board/tqc/tqm8xx/load_sernum_ethaddr.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[u-boot] / board / tqc / tqm8xx / load_sernum_ethaddr.c
index 143f36801d2c4ad71ff1266113f34b9333ddd0db..0070da1fb85db5219b1a69a7bf13c5be2722e18d 100644 (file)
@@ -2,23 +2,7 @@
  * (C) Copyright 2000, 2001, 2002
  * Wolfgang Denk, DENX Software Engineering, wd@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 <common.h>
 void load_sernum_ethaddr (void)
 {
        unsigned char *hwi;
-       unsigned char  serial [CFG_HWINFO_SIZE];
-       unsigned char  ethaddr[CFG_HWINFO_SIZE];
+       unsigned char  serial [CONFIG_SYS_HWINFO_SIZE];
+       unsigned char  ethaddr[CONFIG_SYS_HWINFO_SIZE];
        unsigned short ih, is, ie, part;
 
-       hwi = (unsigned char *)(CFG_FLASH_BASE + CFG_HWINFO_OFFSET);
+       hwi = (unsigned char *)(CONFIG_SYS_FLASH_BASE + CONFIG_SYS_HWINFO_OFFSET);
        ih = is = ie = 0;
 
-       if (*((unsigned long *)hwi) != (unsigned long)CFG_HWINFO_MAGIC) {
+       if (*((unsigned long *)hwi) != (unsigned long)CONFIG_SYS_HWINFO_MAGIC) {
                return;
        }
 
        part = 1;
 
        /* copy serial # / MAC address */
-       while ((hwi[ih] != '\0') && (ih < CFG_HWINFO_SIZE)) {
+       while ((hwi[ih] != '\0') && (ih < CONFIG_SYS_HWINFO_SIZE)) {
                if (hwi[ih] < ' ' || hwi[ih] > '~') { /* ASCII strings! */
                        return;
                }