blob: 127853d29b64b346934308f1572ce17efc596c45 [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 Denk1a459662013-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 Denk53677ef2008-05-20 16:00:29 +020012 char serial_name[17]; /* "MIP405_1000xxxxx" */
wdenk33149b82003-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üller4b11dba2011-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);
wdenk7205e402003-09-10 22:30:53 +000019
wdenk33149b82003-05-23 11:38:58 +000020#define BOOT_MPS 0x01
21#define BOOT_PCI 0x02
David Müller4b11dba2011-12-22 13:38:19 +010022int get_boot_mode(void);
23void setup_cs_reloc(void);
wdenk33149b82003-05-23 11:38:58 +000024
wdenk5f2d51b2002-04-26 15:23:50 +000025void check_env(void);
wdenk5f2d51b2002-04-26 15:23:50 +000026
27#endif /* _COMMON_UTIL_H_ */