mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +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
2.1 KiB
C
79 lines
2.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* pdu001.h
|
|
*
|
|
* Copyright (C) 2018 EETS GmbH - http://www.eets.ch/
|
|
*
|
|
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
|
|
*/
|
|
|
|
#ifndef __CONFIG_PDU001_H
|
|
#define __CONFIG_PDU001_H
|
|
|
|
#include <configs/ti_am335x_common.h>
|
|
|
|
/* Using 32K of volatile storage for environment */
|
|
|
|
#define MACH_TYPE_PDU001 5075
|
|
#define CONFIG_MACH_TYPE MACH_TYPE_PDU001
|
|
#define CONFIG_BOARD_LATE_INIT
|
|
|
|
/* Clock Defines */
|
|
#define V_OSCK 24000000 /* Clock output from T2 */
|
|
#define V_SCLK (V_OSCK)
|
|
|
|
#if CONFIG_CONS_INDEX == 1
|
|
#define CONSOLE_DEV "ttyO0"
|
|
#elif CONFIG_CONS_INDEX == 2
|
|
#define CONSOLE_DEV "ttyO1"
|
|
#elif CONFIG_CONS_INDEX == 3
|
|
#define CONSOLE_DEV "ttyO2"
|
|
#elif CONFIG_CONS_INDEX == 4
|
|
#define CONSOLE_DEV "ttyO3"
|
|
#elif CONFIG_CONS_INDEX == 5
|
|
#define CONSOLE_DEV "ttyO4"
|
|
#elif CONFIG_CONS_INDEX == 6
|
|
#define CONSOLE_DEV "ttyO5"
|
|
#endif
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
|
"run eval_boot_device;" \
|
|
"setenv bootargs console=${console} " \
|
|
"vt.global_cursor_default=0 " \
|
|
"root=/dev/mmcblk${mmc_boot}p${root_fs_partition} " \
|
|
"rootfstype=ext4 " \
|
|
"rootwait " \
|
|
"rootdelay=1;" \
|
|
"fatload mmc ${mmc_boot} ${fdtaddr} ${fdtfile};" \
|
|
"fatload mmc ${mmc_boot} ${loadaddr} ${bootfile};" \
|
|
"bootz ${loadaddr} - ${fdtaddr}"
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
DEFAULT_LINUX_BOOT_ENV \
|
|
"fdtfile=am335x-pdu001.dtb\0" \
|
|
"bootfile=zImage\0" \
|
|
"console=" CONSOLE_DEV ",115200n8\0" \
|
|
"root_fs_partition=2\0" \
|
|
"eval_boot_device=" \
|
|
"if test $boot_device = emmc; then " \
|
|
"setenv mmc_boot 0;" \
|
|
"elif test $boot_device = sdcard; then " \
|
|
"setenv mmc_boot 1;" \
|
|
"else " \
|
|
"echo Bootdevice is neither MMC0 nor MMC1;" \
|
|
"reset;" \
|
|
"fi;" \
|
|
"\0"
|
|
#endif
|
|
|
|
/* NS16550 Configuration */
|
|
#define CONFIG_SYS_NS16550_COM1 UART0_BASE
|
|
#define CONFIG_SYS_NS16550_COM2 UART1_BASE
|
|
#define CONFIG_SYS_NS16550_COM3 UART2_BASE
|
|
#define CONFIG_SYS_NS16550_COM4 UART3_BASE
|
|
#define CONFIG_SYS_NS16550_COM5 UART4_BASE
|
|
#define CONFIG_SYS_NS16550_COM6 UART5_BASE
|
|
#define CONFIG_BAUDRATE 115200
|
|
|
|
#endif /* ! __CONFIG_PDU001_H */
|