Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 1 | /* |
Masahiro Yamada | 4903b6d | 2015-09-11 20:17:45 +0900 | [diff] [blame] | 2 | * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 3 | * |
4 | * SPDX-License-Identifier: GPL-2.0+ | ||||
5 | */ | ||||
6 | |||||
7 | #ifndef ARCH_BOARD_H | ||||
8 | #define ARCH_BOARD_H | ||||
9 | |||||
Masahiro Yamada | 4903b6d | 2015-09-11 20:17:45 +0900 | [diff] [blame] | 10 | #if defined(CONFIG_MICRO_SUPPORT_CARD) |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 11 | void support_card_reset(void); |
12 | void support_card_init(void); | ||||
Masahiro Yamada | 8821681 | 2014-12-06 00:03:26 +0900 | [diff] [blame] | 13 | void support_card_late_init(void); |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 14 | int check_support_card(void); |
Masahiro Yamada | 4e5d28d | 2015-09-22 00:27:31 +0900 | [diff] [blame] | 15 | void led_puts(const char *s); |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 16 | #else |
Masahiro Yamada | d8527c2 | 2015-09-22 00:27:30 +0900 | [diff] [blame] | 17 | static inline void support_card_reset(void) |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 18 | { |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 19 | } |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 20 | |
Masahiro Yamada | d8527c2 | 2015-09-22 00:27:30 +0900 | [diff] [blame] | 21 | static inline void support_card_init(void) |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 22 | { |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 23 | } |
24 | |||||
Masahiro Yamada | d8527c2 | 2015-09-22 00:27:30 +0900 | [diff] [blame] | 25 | static inline void support_card_late_init(void) |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 26 | { |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 27 | } |
28 | |||||
Masahiro Yamada | d8527c2 | 2015-09-22 00:27:30 +0900 | [diff] [blame] | 29 | static inline int check_support_card(void) |
Masahiro Yamada | 8821681 | 2014-12-06 00:03:26 +0900 | [diff] [blame] | 30 | { |
Masahiro Yamada | d8527c2 | 2015-09-22 00:27:30 +0900 | [diff] [blame] | 31 | return 0; |
Masahiro Yamada | 8821681 | 2014-12-06 00:03:26 +0900 | [diff] [blame] | 32 | } |
Masahiro Yamada | 4e5d28d | 2015-09-22 00:27:31 +0900 | [diff] [blame] | 33 | |
34 | static inline void led_puts(const char *s) | ||||
35 | { | ||||
36 | } | ||||
Masahiro Yamada | d8527c2 | 2015-09-22 00:27:30 +0900 | [diff] [blame] | 37 | #endif |
Masahiro Yamada | 8821681 | 2014-12-06 00:03:26 +0900 | [diff] [blame] | 38 | |
Masahiro Yamada | bb2ff9d | 2014-10-03 19:21:06 +0900 | [diff] [blame] | 39 | #endif /* ARCH_BOARD_H */ |