Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Chen-Yu Tsai | 848c263 | 2014-10-22 16:47:44 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2014 Chen-Yu Tsai <wens@csie.org> |
| 4 | * |
| 5 | * Configuration settings for the Allwinner A23 (sun8i) CPU |
Chen-Yu Tsai | 848c263 | 2014-10-22 16:47:44 +0800 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_H |
| 9 | #define __CONFIG_H |
| 10 | |
| 11 | /* |
| 12 | * A23 specific configuration |
| 13 | */ |
Hans de Goede | 966d239 | 2014-12-07 14:34:27 +0100 | [diff] [blame] | 14 | |
Tom Rini | ceed5d2 | 2017-05-12 22:33:27 -0400 | [diff] [blame] | 15 | #ifdef CONFIG_USB_EHCI_HCD |
Hans de Goede | a144198 | 2015-01-07 15:08:43 +0100 | [diff] [blame] | 16 | #define CONFIG_USB_EHCI_SUNXI |
Hans de Goede | a144198 | 2015-01-07 15:08:43 +0100 | [diff] [blame] | 17 | #endif |
| 18 | |
Jelle van der Waa | a1f5d11 | 2016-02-09 23:59:33 +0100 | [diff] [blame] | 19 | #ifdef CONFIG_MACH_SUN8I_H3 |
| 20 | #define CONFIG_SUNXI_USB_PHYS 4 |
Chen-Yu Tsai | ba56856 | 2016-03-30 00:26:51 +0800 | [diff] [blame] | 21 | #elif defined CONFIG_MACH_SUN8I_A83T |
| 22 | #define CONFIG_SUNXI_USB_PHYS 3 |
Icenowy Zheng | 52e6188 | 2017-04-08 15:30:12 +0800 | [diff] [blame] | 23 | #elif defined CONFIG_MACH_SUN8I_V3S |
| 24 | #define CONFIG_SUNXI_USB_PHYS 1 |
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 | |
Chen-Yu Tsai | 848c263 | 2014-10-22 16:47:44 +0800 | [diff] [blame] | 29 | /* |
| 30 | * Include common sunxi configuration where most the settings are |
| 31 | */ |
| 32 | #include <configs/sunxi-common.h> |
| 33 | |
| 34 | #endif /* __CONFIG_H */ |