mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-26 13:03:40 +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>
79 lines
1.7 KiB
C
79 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2013 Siemens Schweiz AG
|
|
* (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
|
|
*
|
|
* Based on:
|
|
* U-Boot file:/include/configs/am335x_evm.h
|
|
*
|
|
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
|
|
*/
|
|
|
|
#ifndef __CONFIG_THUBAN_H
|
|
#define __CONFIG_THUBAN_H
|
|
|
|
#include "siemens-am33x-common.h"
|
|
|
|
#define DDR_PLL_FREQ 303
|
|
|
|
#define BOARD_DFU_BUTTON_GPIO 27 /* Use as default */
|
|
#define GPIO_LAN9303_NRST 88 /* GPIO2_24 = gpio88 */
|
|
|
|
#define CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
|
|
"button_dfu0=27\0" \
|
|
"led0=103,1,0\0" \
|
|
"led1=64,0,1\0"
|
|
|
|
/* Physical Memory Map */
|
|
#define CONFIG_MAX_RAM_BANK_SIZE (1024 << 20) /* 1GB */
|
|
|
|
/* I2C Configuration */
|
|
#define CONFIG_SYS_I2C_SPEED 100000
|
|
|
|
#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
|
|
#define EEPROM_ADDR_DDR3 0x90
|
|
#define EEPROM_ADDR_CHIP 0x120
|
|
|
|
#define CONFIG_PHY_SMSC
|
|
|
|
#define CONFIG_FACTORYSET
|
|
|
|
/* Define own nand partitions */
|
|
#define CONFIG_ENV_RANGE (4 * CONFIG_SYS_ENV_SECT_SIZE)
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
|
|
|
/* Default env settings */
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"hostname=thuban\0" \
|
|
"ubi_off=2048\0"\
|
|
"nand_img_size=0x400000\0" \
|
|
"optargs=\0" \
|
|
"preboot=draco_led 0\0" \
|
|
CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
|
|
CONFIG_ENV_SETTINGS_V2 \
|
|
CONFIG_ENV_SETTINGS_NAND_V2
|
|
|
|
#ifndef CONFIG_RESTORE_FLASH
|
|
/* set to negative value for no autoboot */
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
|
"if dfubutton; then " \
|
|
"run dfu_start; " \
|
|
"reset; " \
|
|
"fi;" \
|
|
"run nand_boot;" \
|
|
"run nand_boot_backup;" \
|
|
"reset;"
|
|
|
|
#else
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
|
"setenv autoload no; " \
|
|
"dhcp; " \
|
|
"if tftp 80000000 debrick.scr; then " \
|
|
"source 80000000; " \
|
|
"fi"
|
|
#endif
|
|
#endif /* CONFIG_SPL_BUILD */
|
|
#endif /* ! __CONFIG_THUBAN_H */
|