xref: /openbmc/u-boot/board/keymile/common/common.h (revision 15855700)
1 /*
2  * (C) Copyright 2008
3  * Heiko Schocher, DENX Software Engineering, hs@denx.de.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  */
10 
11 #ifndef __KEYMILE_COMMON_H
12 #define __KEYMILE_COMMON_H
13 
14 int ethernet_present (void);
15 int ivm_read_eeprom (void);
16 
17 #ifdef CONFIG_KEYMILE_HDLC_ENET
18 int keymile_hdlc_enet_initialize (bd_t *bis);
19 #endif
20 
21 int fdt_set_node_and_value (void *blob,
22 			char *nodename,
23 			char *regname,
24 			void *var,
25 			int size);
26 int fdt_get_node_and_value (void *blob,
27 				char *nodename,
28 				char *propname,
29 				void **var);
30 #endif /* __KEYMILE_COMMON_H */
31