Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Masahiro Yamada | fb09203 | 2017-02-14 01:24:26 +0900 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 Socionext Inc. |
| 4 | * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
Masahiro Yamada | fb09203 | 2017-02-14 01:24:26 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _UNIPHIER_BOOT_DEVICE_H_ |
| 8 | #define _UNIPHIER_BOOT_DEVICE_H_ |
| 9 | |
| 10 | struct uniphier_boot_device { |
| 11 | unsigned int boot_device; |
| 12 | const char *desc; |
| 13 | }; |
| 14 | |
Masahiro Yamada | fb09203 | 2017-02-14 01:24:26 +0900 | [diff] [blame] | 15 | extern const struct uniphier_boot_device uniphier_ld4_boot_device_table[]; |
| 16 | extern const struct uniphier_boot_device uniphier_pro5_boot_device_table[]; |
| 17 | extern const struct uniphier_boot_device uniphier_pxs2_boot_device_table[]; |
| 18 | extern const struct uniphier_boot_device uniphier_ld11_boot_device_table[]; |
Masahiro Yamada | 8e0a450 | 2017-05-15 14:26:33 +0900 | [diff] [blame] | 19 | extern const struct uniphier_boot_device uniphier_pxs3_boot_device_table[]; |
Masahiro Yamada | fb09203 | 2017-02-14 01:24:26 +0900 | [diff] [blame] | 20 | |
Masahiro Yamada | fb09203 | 2017-02-14 01:24:26 +0900 | [diff] [blame] | 21 | extern const unsigned int uniphier_ld4_boot_device_count; |
| 22 | extern const unsigned int uniphier_pro5_boot_device_count; |
| 23 | extern const unsigned int uniphier_pxs2_boot_device_count; |
| 24 | extern const unsigned int uniphier_ld11_boot_device_count; |
Masahiro Yamada | 8e0a450 | 2017-05-15 14:26:33 +0900 | [diff] [blame] | 25 | extern const unsigned int uniphier_pxs3_boot_device_count; |
Masahiro Yamada | fb09203 | 2017-02-14 01:24:26 +0900 | [diff] [blame] | 26 | |
| 27 | int uniphier_pxs2_boot_device_is_usb(u32 pinmon); |
| 28 | int uniphier_ld11_boot_device_is_usb(u32 pinmon); |
| 29 | int uniphier_ld20_boot_device_is_usb(u32 pinmon); |
Masahiro Yamada | 8e0a450 | 2017-05-15 14:26:33 +0900 | [diff] [blame] | 30 | int uniphier_pxs3_boot_device_is_usb(u32 pinmon); |
Masahiro Yamada | fb09203 | 2017-02-14 01:24:26 +0900 | [diff] [blame] | 31 | |
| 32 | unsigned int uniphier_pxs2_boot_device_fixup(unsigned int mode); |
Masahiro Yamada | fb09203 | 2017-02-14 01:24:26 +0900 | [diff] [blame] | 33 | |
| 34 | #endif /* _UNIPHIER_BOOT_DEVICE_H_ */ |