mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-05 20:54:31 +00:00
a09fea1d28
- In ARMv8 NXP Layerscape platforms we also need to make use of CONFIG_SYS_RELOC_GD_ENV_ADDR now, do so. - On ENV_IS_IN_REMOTE, CONFIG_ENV_OFFSET is never used, drop the define to 0. - Add Kconfig entry for ENV_ADDR. - Make ENV_ADDR / ENV_OFFSET depend on the env locations that use it. - Add ENV_xxx_REDUND options that depend on their primary option and SYS_REDUNDAND_ENVIRONMENT - On a number of PowerPC platforms, use SPL_ENV_ADDR not CONFIG_ENV_ADDR for the pre-main-U-Boot environment location. - On ENV_IS_IN_SPI_FLASH, check not for CONFIG_ENV_ADDR being set but rather it being non-zero, as it will now be zero by default. - Rework the env_offset absolute in env/embedded.o to not use CONFIG_ENV_OFFSET as it was the only use of ENV_OFFSET within ENV_IS_IN_FLASH. - Migrate all platforms. Cc: Wolfgang Denk <wd@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: uboot-stm32@st-md-mailman.stormreply.com Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
72 lines
2.4 KiB
C
72 lines
2.4 KiB
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2018 Microsemi Corporation
|
|
*/
|
|
|
|
#ifndef __VCOREIII_H
|
|
#define __VCOREIII_H
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
/* Onboard devices */
|
|
|
|
#define CONFIG_SYS_MALLOC_LEN 0x1F0000
|
|
#define CONFIG_SYS_LOAD_ADDR 0x00100000
|
|
#define CONFIG_SYS_INIT_SP_OFFSET 0x400000
|
|
|
|
#if defined(CONFIG_SOC_LUTON) || defined(CONFIG_SOC_SERVAL)
|
|
#define CPU_CLOCK_RATE 416666666 /* Clock for the MIPS core */
|
|
#define CONFIG_SYS_MIPS_TIMER_FREQ 208333333
|
|
#else
|
|
#define CPU_CLOCK_RATE 500000000 /* Clock for the MIPS core */
|
|
#define CONFIG_SYS_MIPS_TIMER_FREQ (CPU_CLOCK_RATE / 2)
|
|
#endif
|
|
#define CONFIG_SYS_NS16550_CLK CONFIG_SYS_MIPS_TIMER_FREQ
|
|
|
|
#define CONFIG_BOARD_TYPES
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
|
#if defined(CONFIG_DDRTYPE_H5TQ1G63BFA) || defined(CONFIG_DDRTYPE_MT47H128M8HQ)
|
|
#define CONFIG_SYS_SDRAM_SIZE (128 * SZ_1M)
|
|
#elif defined(CONFIG_DDRTYPE_MT41J128M16HA) || defined(CONFIG_DDRTYPE_MT41K128M16JT)
|
|
#define CONFIG_SYS_SDRAM_SIZE (256 * SZ_1M)
|
|
#elif defined(CONFIG_DDRTYPE_H5TQ4G63MFR) || defined(CONFIG_DDRTYPE_MT41K256M16)
|
|
#define CONFIG_SYS_SDRAM_SIZE (512 * SZ_1M)
|
|
#else
|
|
#error Unknown DDR size - please add!
|
|
#endif
|
|
|
|
#define CONFIG_CONS_INDEX 1
|
|
|
|
#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
|
|
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - SZ_1M)
|
|
|
|
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
|
|
|
|
#define CONFIG_BOARD_EARLY_INIT_R
|
|
#if defined(CONFIG_MTDIDS_DEFAULT) && defined(CONFIG_MTDPARTS_DEFAULT)
|
|
#define VCOREIII_DEFAULT_MTD_ENV \
|
|
"mtdparts="CONFIG_MTDPARTS_DEFAULT"\0" \
|
|
"mtdids="CONFIG_MTDIDS_DEFAULT"\0"
|
|
#else
|
|
#define VCOREIII_DEFAULT_MTD_ENV /* Go away */
|
|
#endif
|
|
|
|
#define CONFIG_SYS_BOOTM_LEN (16 << 20) /* Increase max gunzip size */
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
VCOREIII_DEFAULT_MTD_ENV \
|
|
"loadaddr=0x81000000\0" \
|
|
"spi_image_off=0x00100000\0" \
|
|
"console=ttyS0,115200\0" \
|
|
"setup=setenv bootargs console=${console} ${mtdparts}" \
|
|
"${bootargs_extra}\0" \
|
|
"spiboot=run setup; sf probe; sf read ${loadaddr}" \
|
|
"${spi_image_off} 0x600000; bootm ${loadaddr}\0" \
|
|
"ubootfile=u-boot.bin\0" \
|
|
"update=sf probe;mtdparts;dhcp ${loadaddr} ${ubootfile};" \
|
|
"sf erase UBoot 0x100000;" \
|
|
"sf write ${loadaddr} UBoot ${filesize}\0" \
|
|
"bootcmd=run spiboot\0" \
|
|
""
|
|
#endif /* __VCOREIII_H */
|