blob: 22f5c2e6d8b0d0a2d683635319b0b788715be200 [file] [log] [blame]
wdenk5f2d51b2002-04-26 15:23:50 +00001/*
2 * (C) Copyright 2001
3 * Denis Peter, MPL AG Switzerland, d.peter@mpl.ch
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk5f2d51b2002-04-26 15:23:50 +00006 */
7#ifndef _COMMON_UTIL_H_
8#define _COMMON_UTIL_H_
9
10typedef struct {
11 char signature[4];
Wolfgang Denka1be4762008-05-20 16:00:29 +020012 char serial_name[17]; /* "MIP405_1000xxxxx" */
wdenk7d076412003-05-23 11:38:58 +000013 char eth_addr[21]; /* "00:60:C2:0a:00:00" */
wdenk5f2d51b2002-04-26 15:23:50 +000014} backup_t;
15
David Müllerb4a931e2011-12-22 13:38:19 +010016extern flash_info_t flash_info[]; /* info for FLASH chips */
17
wdenk5f2d51b2002-04-26 15:23:50 +000018void get_backup_values(backup_t *buf);
wdenk2c9b05d2003-09-10 22:30:53 +000019
wdenk7d076412003-05-23 11:38:58 +000020#define BOOT_MPS 0x01
21#define BOOT_PCI 0x02
David Müllerb4a931e2011-12-22 13:38:19 +010022int get_boot_mode(void);
23void setup_cs_reloc(void);
wdenk7d076412003-05-23 11:38:58 +000024
wdenk5f2d51b2002-04-26 15:23:50 +000025void check_env(void);
Jon Loeliger145318c2007-07-09 18:38:39 -050026#if defined(CONFIG_CMD_DOC)
wdenk5f2d51b2002-04-26 15:23:50 +000027void doc_init (void);
28#endif
29
30#endif /* _COMMON_UTIL_H_ */