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