aboutsummaryrefslogtreecommitdiff
path: root/board/keymile/common/common.h
blob: a38c72772ce75f4659c50378c8d16c4098ec2b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * (C) Copyright 2008
 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 */

#ifndef __KEYMILE_COMMON_H
#define __KEYMILE_COMMON_H

int ethernet_present (void);
int ivm_read_eeprom (void);

#ifdef CONFIG_KEYMILE_HDLC_ENET
int keymile_hdlc_enet_initialize (bd_t *bis);
#endif

int fdt_set_node_and_value (void *blob,
			char *nodename,
			char *regname,
			void *var,
			int size);
int fdt_get_node_and_value (void *blob,
				char *nodename,
				char *propname,
				void **var);
#endif /* __KEYMILE_COMMON_H */