blob: ca81bdf58535f2cfb8c800796f6ccbcc00de0ff8 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Markus Niebelcb07d742014-07-18 16:52:44 +02002/*
Matthias Schiffera5e30522021-11-02 11:36:46 +01003 * Copyright (C) 2013, 2014 TQ-Systems
Markus Niebelcb07d742014-07-18 16:52:44 +02004 * Author: Markus Niebel <markus.niebel@tq-group.com>
Markus Niebelcb07d742014-07-18 16:52:44 +02005 */
6
7#ifndef __TQMA6_BB__
Markus Niebel29fd5c22014-10-23 15:47:06 +02008#define __TQMA6_BB__
Markus Niebelcb07d742014-07-18 16:52:44 +02009
10#include <common.h>
11
12int tqma6_bb_board_mmc_getwp(struct mmc *mmc);
13int tqma6_bb_board_mmc_getcd(struct mmc *mmc);
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +090014int tqma6_bb_board_mmc_init(struct bd_info *bis);
Markus Niebelcb07d742014-07-18 16:52:44 +020015
16int tqma6_bb_board_early_init_f(void);
17int tqma6_bb_board_init(void);
18int tqma6_bb_board_late_init(void);
19int tqma6_bb_checkboard(void);
20
21const char *tqma6_bb_get_boardname(void);
22/*
23 * Device Tree Support
24 */
25#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +090026void tqma6_bb_ft_board_setup(void *blob, struct bd_info *bd);
Markus Niebelcb07d742014-07-18 16:52:44 +020027#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
28
29#endif