]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/xes/xpedite1000/xpedite1000.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / xes / xpedite1000 / xpedite1000.c
index b4cbb2fce13782e2d4497d00452477197e5aaa82..daab578f87ca6d312a782bdf99578ef77407b634 100644 (file)
@@ -1,23 +1,7 @@
 /*
  * Copyright (C) 2003 Travis B. Sawyer <travis.sawyer@sandburst.com>
  *
- * 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>
@@ -112,19 +96,20 @@ int board_early_init_f(void)
 
 int checkboard(void)
 {
-       char *s;
+       char buf[64];
+       int i;
 
        printf("Board: X-ES %s PMC SBC\n", CONFIG_SYS_BOARD_NAME);
        printf("       ");
-       s = getenv("board_rev");
-       if (s)
-               printf("Rev %s, ", s);
-       s = getenv("serial#");
-       if (s)
-               printf("Serial# %s, ", s);
-       s = getenv("board_cfg");
-       if (s)
-               printf("Cfg %s", s);
+       i = getenv_f("board_rev", buf, sizeof(buf));
+       if (i > 0)
+               printf("Rev %s, ", buf);
+       i = getenv_f("serial#", buf, sizeof(buf));
+       if (i > 0)
+               printf("Serial# %s, ", buf);
+       i = getenv_f("board_cfg", buf, sizeof(buf));
+       if (i > 0)
+               printf("Cfg %s", buf);
        printf("\n");
 
        return 0;
@@ -196,20 +181,4 @@ int post_hotkeys_pressed(void)
 {
        return ctrlc();
 }
-
-void post_word_store(ulong a)
-{
-       volatile ulong *save_addr =
-               (volatile ulong *)(CONFIG_SYS_POST_WORD_ADDR);
-
-       *save_addr = a;
-}
-
-ulong post_word_load(void)
-{
-       volatile ulong *save_addr =
-               (volatile ulong *)(CONFIG_SYS_POST_WORD_ADDR);
-
-       return *save_addr;
-}
 #endif