1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2784548efSMasahiro Yamada /*
3784548efSMasahiro Yamada  * Copyright (C) 2017 Socionext Inc.
4784548efSMasahiro Yamada  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
5784548efSMasahiro Yamada  */
6784548efSMasahiro Yamada 
7784548efSMasahiro Yamada #ifndef _UNIPHIER_BOOT_DEVICE_H_
8784548efSMasahiro Yamada #define _UNIPHIER_BOOT_DEVICE_H_
9784548efSMasahiro Yamada 
10784548efSMasahiro Yamada struct uniphier_boot_device {
11784548efSMasahiro Yamada 	unsigned int boot_device;
12784548efSMasahiro Yamada 	const char *desc;
13784548efSMasahiro Yamada };
14784548efSMasahiro Yamada 
15784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_ld4_boot_device_table[];
16784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_pro5_boot_device_table[];
17784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_pxs2_boot_device_table[];
18784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_ld11_boot_device_table[];
1981afa9c9SMasahiro Yamada extern const struct uniphier_boot_device uniphier_pxs3_boot_device_table[];
20784548efSMasahiro Yamada 
21784548efSMasahiro Yamada extern const unsigned int uniphier_ld4_boot_device_count;
22784548efSMasahiro Yamada extern const unsigned int uniphier_pro5_boot_device_count;
23784548efSMasahiro Yamada extern const unsigned int uniphier_pxs2_boot_device_count;
24784548efSMasahiro Yamada extern const unsigned int uniphier_ld11_boot_device_count;
2581afa9c9SMasahiro Yamada extern const unsigned int uniphier_pxs3_boot_device_count;
26784548efSMasahiro Yamada 
27784548efSMasahiro Yamada int uniphier_pxs2_boot_device_is_usb(u32 pinmon);
28784548efSMasahiro Yamada int uniphier_ld11_boot_device_is_usb(u32 pinmon);
29784548efSMasahiro Yamada int uniphier_ld20_boot_device_is_usb(u32 pinmon);
3081afa9c9SMasahiro Yamada int uniphier_pxs3_boot_device_is_usb(u32 pinmon);
31784548efSMasahiro Yamada 
32784548efSMasahiro Yamada unsigned int uniphier_pxs2_boot_device_fixup(unsigned int mode);
33784548efSMasahiro Yamada unsigned int uniphier_ld11_boot_device_fixup(unsigned int mode);
34784548efSMasahiro Yamada 
35784548efSMasahiro Yamada #endif /* _UNIPHIER_BOOT_DEVICE_H_ */
36