blob: 113e320f06c62cfdf74245360b5c056a2058aa66 [file] [log] [blame]
Chen-Yu Tsai8ebe4f42014-10-22 16:47:44 +08001/*
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 Goede08fd1472014-12-07 14:34:27 +010015
Hans de Goede0eccec42015-01-07 15:08:43 +010016#ifdef CONFIG_USB_EHCI
17#define CONFIG_USB_EHCI_SUNXI
18#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
19#endif
20
Hans de Goedee13afee2015-04-27 16:50:04 +020021#define CONFIG_SUNXI_USB_PHYS 2
22
Chen-Yu Tsai014414f2015-05-28 21:25:34 +080023#define CONFIG_ARMV7_PSCI 1
Daniel Kochmańskif76eba32015-05-26 17:00:42 +020024#if defined(CONFIG_MACH_SUN8I_A23)
Chen-Yu Tsai014414f2015-05-28 21:25:34 +080025#define CONFIG_ARMV7_PSCI_NR_CPUS 2
Daniel Kochmańskif76eba32015-05-26 17:00:42 +020026#elif defined(CONFIG_MACH_SUN8I_A33)
Chen-Yu Tsai014414f2015-05-28 21:25:34 +080027#define CONFIG_ARMV7_PSCI_NR_CPUS 4
Jens Kuske1c27b7d2015-11-17 15:12:58 +010028#elif defined(CONFIG_MACH_SUN8I_H3)
29#define CONFIG_ARMV7_PSCI_NR_CPUS 4
Chen-Yu Tsai014414f2015-05-28 21:25:34 +080030#else
31#error Unsupported sun8i variant
Daniel Kochmańskif76eba32015-05-26 17:00:42 +020032#endif
Chen-Yu Tsai014414f2015-05-28 21:25:34 +080033#define CONFIG_TIMER_CLK_FREQ 24000000
Daniel Kochmańskif76eba32015-05-26 17:00:42 +020034
Chen-Yu Tsai8ebe4f42014-10-22 16:47:44 +080035/*
36 * Include common sunxi configuration where most the settings are
37 */
38#include <configs/sunxi-common.h>
39
40#endif /* __CONFIG_H */