blob: 5da0ada72610472dcba8dd26d2f460da4d64bba6 [file] [log] [blame]
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +09001/*
Masahiro Yamada4903b6d2015-09-11 20:17:45 +09002 * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +09003 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef ARCH_BOARD_H
8#define ARCH_BOARD_H
9
Masahiro Yamada4903b6d2015-09-11 20:17:45 +090010#if defined(CONFIG_MICRO_SUPPORT_CARD)
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090011void support_card_reset(void);
12void support_card_init(void);
Masahiro Yamada88216812014-12-06 00:03:26 +090013void support_card_late_init(void);
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090014int check_support_card(void);
Masahiro Yamada4e5d28d2015-09-22 00:27:31 +090015void led_puts(const char *s);
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090016#else
Masahiro Yamadad8527c22015-09-22 00:27:30 +090017static inline void support_card_reset(void)
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090018{
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090019}
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090020
Masahiro Yamadad8527c22015-09-22 00:27:30 +090021static inline void support_card_init(void)
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090022{
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090023}
24
Masahiro Yamadad8527c22015-09-22 00:27:30 +090025static inline void support_card_late_init(void)
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090026{
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090027}
28
Masahiro Yamadad8527c22015-09-22 00:27:30 +090029static inline int check_support_card(void)
Masahiro Yamada88216812014-12-06 00:03:26 +090030{
Masahiro Yamadad8527c22015-09-22 00:27:30 +090031 return 0;
Masahiro Yamada88216812014-12-06 00:03:26 +090032}
Masahiro Yamada4e5d28d2015-09-22 00:27:31 +090033
34static inline void led_puts(const char *s)
35{
36}
Masahiro Yamadad8527c22015-09-22 00:27:30 +090037#endif
Masahiro Yamada88216812014-12-06 00:03:26 +090038
Masahiro Yamadabb2ff9d2014-10-03 19:21:06 +090039#endif /* ARCH_BOARD_H */