mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 16:07:30 +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>
70 lines
2.1 KiB
C
70 lines
2.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* brxre1.h
|
|
*
|
|
* specific parts for B&R KWB Motherboard
|
|
*
|
|
* Copyright (C) 2013 Hannes Schmelzer <oe5hpm@oevsv.at> -
|
|
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
|
|
*/
|
|
|
|
#ifndef __CONFIG_BRXRE1_H__
|
|
#define __CONFIG_BRXRE1_H__
|
|
|
|
#include <configs/bur_cfg_common.h>
|
|
#include <configs/bur_am335x_common.h>
|
|
/* ------------------------------------------------------------------------- */
|
|
#define CONFIG_AM335X_LCD
|
|
#define LCD_BPP LCD_COLOR32
|
|
|
|
/* memory */
|
|
#define CONFIG_SYS_MALLOC_LEN (5 * 1024 * 1024)
|
|
|
|
/* Clock Defines */
|
|
#define V_OSCK 26000000 /* Clock output from T2 */
|
|
#define V_SCLK (V_OSCK)
|
|
|
|
#define CONFIG_MACH_TYPE 3589
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
|
|
|
/* Default environment */
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
BUR_COMMON_ENV \
|
|
"autoload=0\0" \
|
|
"scradr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
|
"bootaddr=0x80001100\0" \
|
|
"bootdev=cpsw(0,0)\0" \
|
|
"vx_romfsbase=0x800E0000\0" \
|
|
"vx_romfssize=0x20000\0" \
|
|
"vx_memtop=0x8FBEF000\0" \
|
|
"loadromfs=mmc read ${vx_romfsbase} 700 100\0" \
|
|
"loadaddr=0x80100000\0" \
|
|
"startvx=run loadromfs; bootvx ${loadaddr}\0" \
|
|
"b_break=0\0" \
|
|
"b_tgts_std=mmc def net usb0\0" \
|
|
"b_tgts_rcy=def net usb0\0" \
|
|
"b_tgts_pme=net usb0 mmc\0" \
|
|
"b_deftgts=if test ${b_mode} = 12; then setenv b_tgts ${b_tgts_pme};" \
|
|
" elif test ${b_mode} = 0; then setenv b_tgts ${b_tgts_rcy};" \
|
|
" else setenv b_tgts ${b_tgts_std}; fi\0" \
|
|
"b_mmc=load mmc 1 ${loadaddr} arimg && run startvx\0" \
|
|
"b_def=mmc read ${loadaddr} 800 8000; run startvx\0" \
|
|
"b_net=tftp ${scradr} netscript.img && source ${scradr}\0" \
|
|
"b_usb0=usb start && load usb 0 ${scradr} usbscript.img && source ${scradr}\0" \
|
|
"b_default=run b_deftgts; for target in ${b_tgts};"\
|
|
" do run b_${target}; if test ${b_break} = 1; then; exit; fi; done\0"
|
|
#endif /* !CONFIG_SPL_BUILD*/
|
|
|
|
#define CONFIG_BOOTCOMMAND "mmc dev 1; run b_default"
|
|
|
|
/* Support both device trees and ATAGs. */
|
|
#define CONFIG_CMDLINE_TAG
|
|
#define CONFIG_SETUP_MEMORY_TAGS
|
|
#define CONFIG_INITRD_TAG
|
|
|
|
/* Environment */
|
|
#define CONFIG_SYS_MMC_ENV_DEV 1
|
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
|
|
|
#endif /* __CONFIG_BRXRE1_H__ */
|