wdenk | 5f2d51b | 2002-04-26 15:23:50 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2001 | ||||
3 | * Denis Peter, MPL AG Switzerland, d.peter@mpl.ch | ||||
4 | * | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 5f2d51b | 2002-04-26 15:23:50 +0000 | [diff] [blame] | 6 | */ |
7 | #ifndef _COMMON_UTIL_H_ | ||||
8 | #define _COMMON_UTIL_H_ | ||||
9 | |||||
10 | typedef struct { | ||||
11 | char signature[4]; | ||||
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 12 | char serial_name[17]; /* "MIP405_1000xxxxx" */ |
wdenk | 7d07641 | 2003-05-23 11:38:58 +0000 | [diff] [blame] | 13 | char eth_addr[21]; /* "00:60:C2:0a:00:00" */ |
wdenk | 5f2d51b | 2002-04-26 15:23:50 +0000 | [diff] [blame] | 14 | } backup_t; |
15 | |||||
David Müller | b4a931e | 2011-12-22 13:38:19 +0100 | [diff] [blame] | 16 | extern flash_info_t flash_info[]; /* info for FLASH chips */ |
17 | |||||
wdenk | 5f2d51b | 2002-04-26 15:23:50 +0000 | [diff] [blame] | 18 | void get_backup_values(backup_t *buf); |
wdenk | 2c9b05d | 2003-09-10 22:30:53 +0000 | [diff] [blame] | 19 | |
wdenk | 7d07641 | 2003-05-23 11:38:58 +0000 | [diff] [blame] | 20 | #define BOOT_MPS 0x01 |
21 | #define BOOT_PCI 0x02 | ||||
David Müller | b4a931e | 2011-12-22 13:38:19 +0100 | [diff] [blame] | 22 | int get_boot_mode(void); |
23 | void setup_cs_reloc(void); | ||||
wdenk | 7d07641 | 2003-05-23 11:38:58 +0000 | [diff] [blame] | 24 | |
wdenk | 5f2d51b | 2002-04-26 15:23:50 +0000 | [diff] [blame] | 25 | void check_env(void); |
Jon Loeliger | 145318c | 2007-07-09 18:38:39 -0500 | [diff] [blame] | 26 | #if defined(CONFIG_CMD_DOC) |
wdenk | 5f2d51b | 2002-04-26 15:23:50 +0000 | [diff] [blame] | 27 | void doc_init (void); |
28 | #endif | ||||
29 | |||||
30 | #endif /* _COMMON_UTIL_H_ */ |