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 | 1a45966 | 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 | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 12 | char serial_name[17]; /* "MIP405_1000xxxxx" */ |
wdenk | 33149b8 | 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 | 4b11dba | 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 | 7205e40 | 2003-09-10 22:30:53 +0000 | [diff] [blame] | 19 | |
wdenk | 33149b8 | 2003-05-23 11:38:58 +0000 | [diff] [blame] | 20 | #if defined(CONFIG_PIP405) || defined(CONFIG_MIP405) |
wdenk | 33149b8 | 2003-05-23 11:38:58 +0000 | [diff] [blame] | 21 | #define BOOT_MPS 0x01 |
| 22 | #define BOOT_PCI 0x02 |
David Müller | 4b11dba | 2011-12-22 13:38:19 +0100 | [diff] [blame] | 23 | int get_boot_mode(void); |
| 24 | void setup_cs_reloc(void); |
wdenk | 33149b8 | 2003-05-23 11:38:58 +0000 | [diff] [blame] | 25 | #endif |
| 26 | |
wdenk | 5f2d51b | 2002-04-26 15:23:50 +0000 | [diff] [blame] | 27 | void check_env(void); |
Jon Loeliger | 3fe0010 | 2007-07-09 18:38:39 -0500 | [diff] [blame] | 28 | #if defined(CONFIG_CMD_DOC) |
wdenk | 5f2d51b | 2002-04-26 15:23:50 +0000 | [diff] [blame] | 29 | void doc_init (void); |
| 30 | #endif |
| 31 | |
| 32 | #endif /* _COMMON_UTIL_H_ */ |