]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/mpl/common/common_util.h
Merge git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / board / mpl / common / common_util.h
1 /*
2  * (C) Copyright 2001
3  * Denis Peter, MPL AG Switzerland, d.peter@mpl.ch
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7 #ifndef _COMMON_UTIL_H_
8 #define _COMMON_UTIL_H_
9
10 typedef struct {
11         char signature[4];
12         char serial_name[17];   /* "MIP405_1000xxxxx" */
13         char eth_addr[21];      /* "00:60:C2:0a:00:00" */
14 } backup_t;
15
16 extern flash_info_t flash_info[];       /* info for FLASH chips */
17
18 void get_backup_values(backup_t *buf);
19
20 #if defined(CONFIG_PIP405) || defined(CONFIG_MIP405)
21 #define BOOT_MPS        0x01
22 #define BOOT_PCI        0x02
23 int get_boot_mode(void);
24 void setup_cs_reloc(void);
25 #endif
26
27 void check_env(void);
28 #if defined(CONFIG_CMD_DOC)
29 void doc_init (void);
30 #endif
31
32 #endif /* _COMMON_UTIL_H_ */