blob: a2f871af1f836a533472667eae314decc7b042b2 [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
Markus Niebelcb07d742014-07-18 16:52:44 +020010int tqma6_bb_board_mmc_getwp(struct mmc *mmc);
11int tqma6_bb_board_mmc_getcd(struct mmc *mmc);
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +090012int tqma6_bb_board_mmc_init(struct bd_info *bis);
Markus Niebelcb07d742014-07-18 16:52:44 +020013
14int tqma6_bb_board_early_init_f(void);
15int tqma6_bb_board_init(void);
16int tqma6_bb_board_late_init(void);
17int tqma6_bb_checkboard(void);
18
19const char *tqma6_bb_get_boardname(void);
20/*
21 * Device Tree Support
22 */
23#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +090024void tqma6_bb_ft_board_setup(void *blob, struct bd_info *bd);
Markus Niebelcb07d742014-07-18 16:52:44 +020025#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
26
27#endif