sdk-hwV1.3/lichee/brandy-2.0/u-boot-2018/include/configs/sun8iw15p1.h

53 lines
1.1 KiB
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Configuration settings for the Allwinner sun8iw19 CPU
*/
#ifndef __CONFIG_H
#define __CONFIG_H
/*#define FPGA_PLATFORM*/
/*
* sun8iw15 specific configuration
*/
#define CONFIG_SF_DEFAULT_BUS 0
#define CONFIG_SF_DEFAULT_CS 0
#define CONFIG_SF_DEFAULT_SPEED 50000000
#define CONFIG_SF_DEFAULT_MODE (SPI_RX_DUAL|SPI_RX_QUAD)
#ifdef CONFIG_USB_EHCI_HCD
#define CONFIG_USB_EHCI_SUNXI
#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
#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 (0x38000)
#define SUNXI_SRAM_C_BASE (0x00024000L)
#define SUNXI_SRAM_C_SIZE (132 << 10)
#define SUNXI_SRAM_A2_BASE (0x100000L)
#define SUNXI_SRAM_A2_SIZE (0x1C000)
#define SUNXI_SYS_SRAM_BASE SUNXI_SRAM_A1_BASE
#define SUNXI_SYS_SRAM_SIZE (SUNXI_SRAM_A1_SIZE)
#define CONFIG_SYS_BOOTM_LEN 0x2000000
/*#define CONFIG_MMC_LOGICAL_OFFSET (20 * 1024 * 1024/512)*/
/*
* Include common sunxi configuration where most the settings are
*/
#include <configs/sunxi-common.h>
#endif /* __CONFIG_H */