xref: /openbmc/u-boot/board/tqc/tqma6/tqma6_bb.h (revision a7da6f8c)
1 /*
2  * Copyright (C) 2013, 2014 TQ Systems
3  * Author: Markus Niebel <markus.niebel@tq-group.com>
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #ifndef __TQMA6_BB__
9 #define __TQMA6_BB__
10 
11 #include <common.h>
12 
13 int tqma6_bb_board_mmc_getwp(struct mmc *mmc);
14 int tqma6_bb_board_mmc_getcd(struct mmc *mmc);
15 int tqma6_bb_board_mmc_init(bd_t *bis);
16 
17 int tqma6_bb_board_early_init_f(void);
18 int tqma6_bb_board_init(void);
19 int tqma6_bb_board_late_init(void);
20 int tqma6_bb_checkboard(void);
21 
22 const char *tqma6_bb_get_boardname(void);
23 /*
24  * Device Tree Support
25  */
26 #if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
27 void tqma6_bb_ft_board_setup(void *blob, bd_t *bd);
28 #endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
29 
30 #endif
31