mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 17:58:23 +00:00
308520b8f2
This removes the following unreferenced CONFIG symbols: CONFIG_FDTADDR CONFIG_FDTFILE CONFIG_FLASH_SECTOR_SIZE CONFIG_FSL_CPLD CONFIG_HDMI_ENCODER_I2C_ADDR CONFIG_I2C_MVTWSI CONFIG_I2C_RTC_ADDR CONFIG_IRAM_END CONFIG_IRAM_SIZE CONFIG_KSNET_MDIO_PHY_CONFIG_ENABLE CONFIG_L1_INIT_RAM CONFIG_MACB_SEARCH_PHY CONFIG_MIU_2BIT_21_7_INTERLEAVED CONFIG_MTD_NAND_VERIFY_WRITE CONFIG_MVGBE_PORTS CONFIG_NETDEV CONFIG_NUM_DSP_CPUS CONFIG_PHY_BASE_ADR CONFIG_PHY_INTERFACE_MODE CONFIG_PSRAM_SCFG CONFIG_RAMBOOT_SPIFLASH CONFIG_RAMBOOT_TEXT_BASE CONFIG_RD_LVL CONFIG_ROCKCHIP_SDHCI_MAX_FREQ CONFIG_SETUP_INITRD_TAG CONFIG_SH_QSPI_BASE CONFIG_SMDK5420 CONFIG_SOCRATES CONFIG_SPI_ADDR CONFIG_SPI_FLASH_QUAD CONFIG_SPI_FLASH_SIZE CONFIG_SPI_HALF_DUPLEX CONFIG_SPI_N25Q256A_RESET CONFIG_TEGRA_SLINK_CTRLS CONFIG_TPM_TIS_BASE_ADDRESS CONFIG_UBOOT_SECTOR_COUNT CONFIG_UBOOT_SECTOR_START CONFIG_VAR_SIZE_SPL CONFIG_VERY_BIG_RAM And also: BL1_SIZE PHY_NO RESERVE_BLOCK_SIZE Signed-off-by: Tom Rini <trini@konsulko.com>
93 lines
2.2 KiB
C
93 lines
2.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2017 Andes Technology Corporation
|
|
* Rick Chen, Andes Technology Corporation <rick@andestech.com>
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
#define RISCV_MMODE_TIMERBASE 0xe6000000
|
|
#define RISCV_MMODE_TIMER_FREQ 60000000
|
|
|
|
#define RISCV_SMODE_TIMER_FREQ 60000000
|
|
|
|
/*
|
|
* CPU and Board Configuration Options
|
|
*/
|
|
|
|
/*
|
|
* Miscellaneous configurable options
|
|
*/
|
|
|
|
/*
|
|
* Physical Memory Map
|
|
*/
|
|
#define PHYS_SDRAM_0 0x00000000 /* SDRAM Bank #1 */
|
|
#define PHYS_SDRAM_1 \
|
|
(PHYS_SDRAM_0 + PHYS_SDRAM_0_SIZE) /* SDRAM Bank #2 */
|
|
#define PHYS_SDRAM_0_SIZE 0x20000000 /* 512 MB */
|
|
#define PHYS_SDRAM_1_SIZE 0x20000000 /* 512 MB */
|
|
#define CFG_SYS_SDRAM_BASE PHYS_SDRAM_0
|
|
|
|
/*
|
|
* Serial console configuration
|
|
*/
|
|
#define CFG_SYS_NS16550_CLK 19660800
|
|
|
|
/* Init Stack Pointer */
|
|
|
|
/* support JEDEC */
|
|
#define PHYS_FLASH_1 0x88000000 /* BANK 0 */
|
|
#define CFG_SYS_FLASH_BASE PHYS_FLASH_1
|
|
#define CFG_SYS_FLASH_BANKS_LIST { PHYS_FLASH_1, }
|
|
|
|
/* max number of memory banks */
|
|
/*
|
|
* There are 4 banks supported for this Controller,
|
|
* but we have only 1 bank connected to flash on board
|
|
*/
|
|
#define CFG_SYS_FLASH_BANKS_SIZES {0x4000000}
|
|
|
|
/* environments */
|
|
|
|
/* SPI FLASH */
|
|
|
|
/*
|
|
* For booting Linux, the board info and command line data
|
|
* have to be in the first 16 MB of memory, since this is
|
|
* the maximum mapped by the Linux kernel during initialization.
|
|
*/
|
|
|
|
/* Initial Memory map for Linux*/
|
|
#define CFG_SYS_BOOTMAPSZ (64 << 20)
|
|
/* Increase max gunzip size */
|
|
|
|
/* Support autoboot from RAM (kernel image is loaded via debug port) */
|
|
#define KERNEL_IMAGE_ADDR "0x2000000 "
|
|
#define BOOTENV_DEV_NAME_RAM(devtypeu, devtypel, instance) \
|
|
"ram "
|
|
#define BOOTENV_DEV_RAM(devtypeu, devtypel, instance) \
|
|
"bootcmd_ram=" \
|
|
"booti " \
|
|
KERNEL_IMAGE_ADDR \
|
|
"- $fdtcontroladdr\0"
|
|
|
|
/* When we use RAM as ENV */
|
|
|
|
/* Enable distro boot */
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
func(MMC, mmc, 0) \
|
|
func(DHCP, dhcp, na) \
|
|
func(RAM, ram, na)
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"kernel_addr_r=0x00080000\0" \
|
|
"pxefile_addr_r=0x01f00000\0" \
|
|
"scriptaddr=0x01f00000\0" \
|
|
"fdt_addr_r=0x02000000\0" \
|
|
"ramdisk_addr_r=0x02800000\0" \
|
|
BOOTENV
|
|
|
|
#endif /* __CONFIG_H */
|