blob: e81ee35eb8e05ae65166f2953a71b4e084364c66 [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#if defined(CONFIG_PIP405) || defined(CONFIG_MIP405)
wdenk7d076412003-05-23 11:38:58 +000021#define BOOT_MPS 0x01
22#define BOOT_PCI 0x02
David Müllerb4a931e2011-12-22 13:38:19 +010023int get_boot_mode(void);
24void setup_cs_reloc(void);
wdenk7d076412003-05-23 11:38:58 +000025#endif
26
wdenk5f2d51b2002-04-26 15:23:50 +000027void check_env(void);
Jon Loeliger145318c2007-07-09 18:38:39 -050028#if defined(CONFIG_CMD_DOC)
wdenk5f2d51b2002-04-26 15:23:50 +000029void doc_init (void);
30#endif
31
32#endif /* _COMMON_UTIL_H_ */