Chen-Yu Tsai | 848c263 | 2014-10-22 16:47:44 +0800 | [diff] [blame] | 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 | */ |
Hans de Goede | 966d239 | 2014-12-07 14:34:27 +0100 | [diff] [blame] | 15 | |
Hans de Goede | a144198 | 2015-01-07 15:08:43 +0100 | [diff] [blame] | 16 | #ifdef CONFIG_USB_EHCI |
| 17 | #define CONFIG_USB_EHCI_SUNXI |
| 18 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 |
| 19 | #endif |
| 20 | |
Jelle van der Waa | a1f5d11 | 2016-02-09 23:59:33 +0100 | [diff] [blame] | 21 | #ifdef CONFIG_MACH_SUN8I_H3 |
| 22 | #define CONFIG_SUNXI_USB_PHYS 4 |
Chen-Yu Tsai | ba56856 | 2016-03-30 00:26:51 +0800 | [diff] [blame] | 23 | #elif defined CONFIG_MACH_SUN8I_A83T |
| 24 | #define CONFIG_SUNXI_USB_PHYS 3 |
Jelle van der Waa | a1f5d11 | 2016-02-09 23:59:33 +0100 | [diff] [blame] | 25 | #else |
| 26 | #define CONFIG_SUNXI_USB_PHYS 2 |
| 27 | #endif |
Hans de Goede | 1168e09 | 2015-04-27 16:50:04 +0200 | [diff] [blame] | 28 | |
vishnupatekar | cdf1e48 | 2015-11-29 01:07:19 +0800 | [diff] [blame] | 29 | #ifndef CONFIG_MACH_SUN8I_A83T |
Chen-Yu Tsai | 5acec7c | 2015-05-28 21:25:34 +0800 | [diff] [blame] | 30 | #define CONFIG_ARMV7_PSCI 1 |
Daniel Kochmański | dbbfdc1 | 2015-05-26 17:00:42 +0200 | [diff] [blame] | 31 | #if defined(CONFIG_MACH_SUN8I_A23) |
Chen-Yu Tsai | 5acec7c | 2015-05-28 21:25:34 +0800 | [diff] [blame] | 32 | #define CONFIG_ARMV7_PSCI_NR_CPUS 2 |
Daniel Kochmański | dbbfdc1 | 2015-05-26 17:00:42 +0200 | [diff] [blame] | 33 | #elif defined(CONFIG_MACH_SUN8I_A33) |
Chen-Yu Tsai | 5acec7c | 2015-05-28 21:25:34 +0800 | [diff] [blame] | 34 | #define CONFIG_ARMV7_PSCI_NR_CPUS 4 |
Jens Kuske | f977072 | 2015-11-17 15:12:58 +0100 | [diff] [blame] | 35 | #elif defined(CONFIG_MACH_SUN8I_H3) |
| 36 | #define CONFIG_ARMV7_PSCI_NR_CPUS 4 |
Chen-Yu Tsai | 5acec7c | 2015-05-28 21:25:34 +0800 | [diff] [blame] | 37 | #else |
| 38 | #error Unsupported sun8i variant |
Daniel Kochmański | dbbfdc1 | 2015-05-26 17:00:42 +0200 | [diff] [blame] | 39 | #endif |
vishnupatekar | cdf1e48 | 2015-11-29 01:07:19 +0800 | [diff] [blame] | 40 | #endif |
| 41 | |
Chen-Yu Tsai | 848c263 | 2014-10-22 16:47:44 +0800 | [diff] [blame] | 42 | /* |
| 43 | * Include common sunxi configuration where most the settings are |
| 44 | */ |
| 45 | #include <configs/sunxi-common.h> |
| 46 | |
| 47 | #endif /* __CONFIG_H */ |