blob: e3cba5befe2a8cdd1518caef2d47fe8f6953619b [file] [log] [blame]
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +09001/*
2 * Copyright (C) 2012-2014 Panasonic Corporation
3 * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef ARCH_BOARD_H
9#define ARCH_BOARD_H
10
11#if defined(CONFIG_PFC_MICRO_SUPPORT_CARD) || \
12 defined(CONFIG_DCC_MICRO_SUPPORT_CARD)
13void support_card_reset(void);
14void support_card_init(void);
Masahiro Yamada88216812014-12-06 00:03:26 +090015void support_card_late_init(void);
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090016int check_support_card(void);
17#else
18#define support_card_reset() do {} while (0)
19#define support_card_init() do {} while (0)
Masahiro Yamada88216812014-12-06 00:03:26 +090020#define support_card_late_init() do {} while (0)
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090021static inline int check_support_card(void)
22{
23 return 0;
24}
25#endif
26
27static inline void uniphier_board_reset(void)
28{
29 support_card_reset();
30}
31
32static inline void uniphier_board_init(void)
33{
34 support_card_init();
35}
36
Masahiro Yamada88216812014-12-06 00:03:26 +090037static inline void uniphier_board_late_init(void)
38{
39 support_card_late_init();
40}
41
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090042#endif /* ARCH_BOARD_H */