blob: bbb634316b3aac9c725db9a79569fcb2c207ecc6 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Masahiro Yamadafb092032017-02-14 01:24:26 +09002/*
3 * Copyright (C) 2017 Socionext Inc.
4 * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamadafb092032017-02-14 01:24:26 +09005 */
6
7#ifndef _UNIPHIER_BOOT_DEVICE_H_
8#define _UNIPHIER_BOOT_DEVICE_H_
9
10struct uniphier_boot_device {
11 unsigned int boot_device;
12 const char *desc;
13};
14
Masahiro Yamadafb092032017-02-14 01:24:26 +090015extern const struct uniphier_boot_device uniphier_ld4_boot_device_table[];
16extern const struct uniphier_boot_device uniphier_pro5_boot_device_table[];
17extern const struct uniphier_boot_device uniphier_pxs2_boot_device_table[];
18extern const struct uniphier_boot_device uniphier_ld11_boot_device_table[];
Masahiro Yamada8e0a4502017-05-15 14:26:33 +090019extern const struct uniphier_boot_device uniphier_pxs3_boot_device_table[];
Masahiro Yamadafb092032017-02-14 01:24:26 +090020
Masahiro Yamadafb092032017-02-14 01:24:26 +090021extern const unsigned int uniphier_ld4_boot_device_count;
22extern const unsigned int uniphier_pro5_boot_device_count;
23extern const unsigned int uniphier_pxs2_boot_device_count;
24extern const unsigned int uniphier_ld11_boot_device_count;
Masahiro Yamada8e0a4502017-05-15 14:26:33 +090025extern const unsigned int uniphier_pxs3_boot_device_count;
Masahiro Yamadafb092032017-02-14 01:24:26 +090026
27int uniphier_pxs2_boot_device_is_usb(u32 pinmon);
28int uniphier_ld11_boot_device_is_usb(u32 pinmon);
29int uniphier_ld20_boot_device_is_usb(u32 pinmon);
Masahiro Yamada8e0a4502017-05-15 14:26:33 +090030int uniphier_pxs3_boot_device_is_usb(u32 pinmon);
Masahiro Yamadafb092032017-02-14 01:24:26 +090031
32unsigned int uniphier_pxs2_boot_device_fixup(unsigned int mode);
Masahiro Yamadafb092032017-02-14 01:24:26 +090033
34#endif /* _UNIPHIER_BOOT_DEVICE_H_ */