1cba69eeeSIan Campbell /* 2cba69eeeSIan Campbell * (C) Copyright 2012-2013 Henrik Nordstrom <henrik@henriknordstrom.net> 3cba69eeeSIan Campbell * (C) Copyright 2013 Luke Kenneth Casson Leighton <lkcl@lkcl.net> 4cba69eeeSIan Campbell * 5cba69eeeSIan Campbell * Configuration settings for the Allwinner A20 (sun7i) CPU 6cba69eeeSIan Campbell * 7cba69eeeSIan Campbell * SPDX-License-Identifier: GPL-2.0+ 8cba69eeeSIan Campbell */ 9cba69eeeSIan Campbell #ifndef __CONFIG_H 10cba69eeeSIan Campbell #define __CONFIG_H 11cba69eeeSIan Campbell 12cba69eeeSIan Campbell /* 13cba69eeeSIan Campbell * A20 specific configuration 14cba69eeeSIan Campbell */ 15cba69eeeSIan Campbell #define CONFIG_SUN7I /* sun7i SoC generation */ 1614bc66bdSHenrik Nordstrom #define CONFIG_CLK_FULL_SPEED 912000000 17cba69eeeSIan Campbell 18cba69eeeSIan Campbell #define CONFIG_SYS_PROMPT "sun7i# " 19cba69eeeSIan Campbell 20263b012cSRoman Byshko #ifdef CONFIG_USB_EHCI 21263b012cSRoman Byshko #define CONFIG_USB_EHCI_SUNXI 22263b012cSRoman Byshko 23263b012cSRoman Byshko #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 24263b012cSRoman Byshko #ifndef CONFIG_SUNXI_USB_VBUS0_GPIO 25263b012cSRoman Byshko #define CONFIG_SUNXI_USB_VBUS0_GPIO SUNXI_GPH(6) 26263b012cSRoman Byshko #endif 27263b012cSRoman Byshko #ifndef CONFIG_SUNXI_USB_VBUS1_GPIO 28263b012cSRoman Byshko #define CONFIG_SUNXI_USB_VBUS1_GPIO SUNXI_GPH(3) 29263b012cSRoman Byshko #endif 30263b012cSRoman Byshko #endif 31263b012cSRoman Byshko 32*d5db7024SMarc Zyngier #define CONFIG_ARMV7_VIRT 1 33*d5db7024SMarc Zyngier #define CONFIG_ARMV7_NONSEC 1 34*d5db7024SMarc Zyngier #define CONFIG_ARMV7_PSCI 1 35*d5db7024SMarc Zyngier #define CONFIG_ARMV7_PSCI_NR_CPUS 2 36*d5db7024SMarc Zyngier #define CONFIG_ARMV7_SECURE_BASE SUNXI_SRAM_B_BASE 37*d5db7024SMarc Zyngier 38cba69eeeSIan Campbell /* 39cba69eeeSIan Campbell * Include common sunxi configuration where most the settings are 40cba69eeeSIan Campbell */ 41cba69eeeSIan Campbell #include <configs/sunxi-common.h> 42cba69eeeSIan Campbell 43cba69eeeSIan Campbell #endif /* __CONFIG_H */ 44