]>
Commit | Line | Data |
---|---|---|
8ebe4f42 CYT |
1 | /* |
2 | * (C) Copyright 2014 Chen-Yu Tsai <wens@csie.org> | |
3 | * | |
4 | * Configuration settings for the Allwinner A23 (sun8i) CPU | |
5 | * | |
6 | * SPDX-License-Identifier: GPL-2.0+ | |
7 | */ | |
8 | ||
9 | #ifndef __CONFIG_H | |
10 | #define __CONFIG_H | |
11 | ||
12 | /* | |
13 | * A23 specific configuration | |
14 | */ | |
08fd1479 | 15 | |
0eccec4e HG |
16 | #ifdef CONFIG_USB_EHCI |
17 | #define CONFIG_USB_EHCI_SUNXI | |
18 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 | |
19 | #endif | |
20 | ||
dc44fd8a JW |
21 | #ifdef CONFIG_MACH_SUN8I_H3 |
22 | #define CONFIG_SUNXI_USB_PHYS 4 | |
0c935acb CYT |
23 | #elif defined CONFIG_MACH_SUN8I_A83T |
24 | #define CONFIG_SUNXI_USB_PHYS 3 | |
dc44fd8a JW |
25 | #else |
26 | #define CONFIG_SUNXI_USB_PHYS 2 | |
27 | #endif | |
e13afeef | 28 | |
762e24a0 | 29 | #ifndef CONFIG_MACH_SUN8I_A83T |
014414f5 | 30 | #define CONFIG_ARMV7_PSCI 1 |
f76eba38 | 31 | #if defined(CONFIG_MACH_SUN8I_A23) |
014414f5 | 32 | #define CONFIG_ARMV7_PSCI_NR_CPUS 2 |
f76eba38 | 33 | #elif defined(CONFIG_MACH_SUN8I_A33) |
014414f5 | 34 | #define CONFIG_ARMV7_PSCI_NR_CPUS 4 |
1c27b7dc JK |
35 | #elif defined(CONFIG_MACH_SUN8I_H3) |
36 | #define CONFIG_ARMV7_PSCI_NR_CPUS 4 | |
014414f5 CYT |
37 | #else |
38 | #error Unsupported sun8i variant | |
f76eba38 | 39 | #endif |
762e24a0 | 40 | #endif |
41 | ||
8ebe4f42 CYT |
42 | /* |
43 | * Include common sunxi configuration where most the settings are | |
44 | */ | |
45 | #include <configs/sunxi-common.h> | |
46 | ||
47 | #endif /* __CONFIG_H */ |