1784548efSMasahiro Yamada /*
2784548efSMasahiro Yamada  * Copyright (C) 2017 Socionext Inc.
3784548efSMasahiro Yamada  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
4784548efSMasahiro Yamada  *
5784548efSMasahiro Yamada  * SPDX-License-Identifier:	GPL-2.0+
6784548efSMasahiro Yamada  */
7784548efSMasahiro Yamada 
8784548efSMasahiro Yamada #ifndef _UNIPHIER_BOOT_DEVICE_H_
9784548efSMasahiro Yamada #define _UNIPHIER_BOOT_DEVICE_H_
10784548efSMasahiro Yamada 
11784548efSMasahiro Yamada struct uniphier_boot_device {
12784548efSMasahiro Yamada 	unsigned int boot_device;
13784548efSMasahiro Yamada 	const char *desc;
14784548efSMasahiro Yamada };
15784548efSMasahiro Yamada 
16784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_sld3_boot_device_table[];
17784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_ld4_boot_device_table[];
18784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_pro5_boot_device_table[];
19784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_pxs2_boot_device_table[];
20784548efSMasahiro Yamada extern const struct uniphier_boot_device uniphier_ld11_boot_device_table[];
21*81afa9c9SMasahiro Yamada extern const struct uniphier_boot_device uniphier_pxs3_boot_device_table[];
22784548efSMasahiro Yamada 
23784548efSMasahiro Yamada extern const unsigned int uniphier_sld3_boot_device_count;
24784548efSMasahiro Yamada extern const unsigned int uniphier_ld4_boot_device_count;
25784548efSMasahiro Yamada extern const unsigned int uniphier_pro5_boot_device_count;
26784548efSMasahiro Yamada extern const unsigned int uniphier_pxs2_boot_device_count;
27784548efSMasahiro Yamada extern const unsigned int uniphier_ld11_boot_device_count;
28*81afa9c9SMasahiro Yamada extern const unsigned int uniphier_pxs3_boot_device_count;
29784548efSMasahiro Yamada 
30784548efSMasahiro Yamada int uniphier_pxs2_boot_device_is_usb(u32 pinmon);
31784548efSMasahiro Yamada int uniphier_ld11_boot_device_is_usb(u32 pinmon);
32784548efSMasahiro Yamada int uniphier_ld20_boot_device_is_usb(u32 pinmon);
33*81afa9c9SMasahiro Yamada int uniphier_pxs3_boot_device_is_usb(u32 pinmon);
34784548efSMasahiro Yamada 
35784548efSMasahiro Yamada unsigned int uniphier_pxs2_boot_device_fixup(unsigned int mode);
36784548efSMasahiro Yamada unsigned int uniphier_ld11_boot_device_fixup(unsigned int mode);
37784548efSMasahiro Yamada 
38784548efSMasahiro Yamada #endif /* _UNIPHIER_BOOT_DEVICE_H_ */
39