blob: f3fb2f32a881b19a9b5c2a85448bcce6d5a8274a [file] [log] [blame]
Masahiro Yamada784548e2017-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
16extern const struct uniphier_boot_device uniphier_sld3_boot_device_table[];
17extern const struct uniphier_boot_device uniphier_ld4_boot_device_table[];
18extern const struct uniphier_boot_device uniphier_pro5_boot_device_table[];
19extern const struct uniphier_boot_device uniphier_pxs2_boot_device_table[];
20extern const struct uniphier_boot_device uniphier_ld11_boot_device_table[];
21
22extern const unsigned int uniphier_sld3_boot_device_count;
23extern const unsigned int uniphier_ld4_boot_device_count;
24extern const unsigned int uniphier_pro5_boot_device_count;
25extern const unsigned int uniphier_pxs2_boot_device_count;
26extern const unsigned int uniphier_ld11_boot_device_count;
27
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);
31
32unsigned int uniphier_pxs2_boot_device_fixup(unsigned int mode);
33unsigned int uniphier_ld11_boot_device_fixup(unsigned int mode);
34
35#endif /* _UNIPHIER_BOOT_DEVICE_H_ */