blob: f9631d682089fd62f999b8d17a6b12af19d4d99d [file] [log] [blame]
Masahiro Yamadafb092032017-02-14 01:24:26 +09001/*
2 * Copyright (C) 2017 Socionext Inc.
3 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef _UNIPHIER_BOOT_DEVICE_H_
9#define _UNIPHIER_BOOT_DEVICE_H_
10
11struct uniphier_boot_device {
12 unsigned int boot_device;
13 const char *desc;
14};
15
Masahiro Yamadafb092032017-02-14 01:24:26 +090016extern const struct uniphier_boot_device uniphier_ld4_boot_device_table[];
17extern const struct uniphier_boot_device uniphier_pro5_boot_device_table[];
18extern const struct uniphier_boot_device uniphier_pxs2_boot_device_table[];
19extern const struct uniphier_boot_device uniphier_ld11_boot_device_table[];
Masahiro Yamada8e0a4502017-05-15 14:26:33 +090020extern const struct uniphier_boot_device uniphier_pxs3_boot_device_table[];
Masahiro Yamadafb092032017-02-14 01:24:26 +090021
Masahiro Yamadafb092032017-02-14 01:24:26 +090022extern const unsigned int uniphier_ld4_boot_device_count;
23extern const unsigned int uniphier_pro5_boot_device_count;
24extern const unsigned int uniphier_pxs2_boot_device_count;
25extern const unsigned int uniphier_ld11_boot_device_count;
Masahiro Yamada8e0a4502017-05-15 14:26:33 +090026extern const unsigned int uniphier_pxs3_boot_device_count;
Masahiro Yamadafb092032017-02-14 01:24:26 +090027
28int uniphier_pxs2_boot_device_is_usb(u32 pinmon);
29int uniphier_ld11_boot_device_is_usb(u32 pinmon);
30int uniphier_ld20_boot_device_is_usb(u32 pinmon);
Masahiro Yamada8e0a4502017-05-15 14:26:33 +090031int uniphier_pxs3_boot_device_is_usb(u32 pinmon);
Masahiro Yamadafb092032017-02-14 01:24:26 +090032
33unsigned int uniphier_pxs2_boot_device_fixup(unsigned int mode);
34unsigned int uniphier_ld11_boot_device_fixup(unsigned int mode);
35
36#endif /* _UNIPHIER_BOOT_DEVICE_H_ */