45 lines
951 B
C
45 lines
951 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Configuration settings for the Allwinner A64 (sun50i) CPU
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
/*
|
|
* A64 specific configuration
|
|
*/
|
|
#define SUNXI_ARM_A53
|
|
|
|
#ifdef CONFIG_USB_EHCI_HCD
|
|
#define CONFIG_USB_EHCI_SUNXI
|
|
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
|
|
#endif
|
|
|
|
#define CONFIG_SUNXI_USB_PHYS 1
|
|
|
|
#define GICD_BASE 0x3021000
|
|
#define GICC_BASE 0x3022000
|
|
|
|
/* sram layout*/
|
|
#define SUNXI_SRAM_A1_BASE (0x00020000L)
|
|
#define SUNXI_SRAM_A1_SIZE (0x8000)
|
|
|
|
#define SUNXI_SRAM_C_BASE (0x00028000L)
|
|
#define SUNXI_SRAM_C_SIZE (132<<10)
|
|
|
|
#define SUNXI_SRAM_A2_BASE (0x100000L)
|
|
#define SUNXI_SRAM_A2_SIZE (0x30000)
|
|
|
|
#define SUNXI_SYS_SRAM_BASE SUNXI_SRAM_A1_BASE
|
|
#define SUNXI_SYS_SRAM_SIZE (SUNXI_SRAM_A1_SIZE + SUNXI_SRAM_C_SIZE)
|
|
|
|
#define CONFIG_SYS_BOOTM_LEN 0x2000000
|
|
|
|
/*
|
|
* Include common sunxi configuration where most the settings are
|
|
*/
|
|
#include <configs/sunxi-common.h>
|
|
|
|
#endif /* __CONFIG_H */
|