u-boot/include/configs/am64x_gemini.h

62 lines
1.6 KiB
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Configuration header file for K3 AM642 SoC family
*
* Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
* Keerthy <j-keerthy@ti.com>
*/
#ifndef __CONFIG_AM642_EVM_H
#define __CONFIG_AM642_EVM_H
#include <linux/sizes.h>
#include <environment/ti/mmc.h>
#include <asm/arch/am64_hardware.h>
#include <environment/ti/k3_dfu.h>
/* Add support for distro boot */
#if defined(CONFIG_DISTRO_DEFAULTS)
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, CONFIG_SYS_MMC_ENV_DEV)
#include <config_distro_bootcmd.h>
#else
#define BOOTENV ""
#endif
/* DDR Configuration */
#define CONFIG_SYS_SDRAM_BASE1 0x880000000
#ifdef CONFIG_SYS_K3_SPL_ATF
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "tispl.bin"
#endif
/* Configure R5 SPL post-relocation malloc pool in DDR */
#define CONFIG_SYS_SPL_MALLOC_START 0x84000000
#endif
/* Allow a simple U-Boot update */
#define UPDATE_UBOOT_CMD \
"update_uboot=setenv ipaddr 192.168.1.1 && setenv serverip 192.168.1.254 && mmc dev 0 1 && " \
"tftp $loadaddr gemini/tiboot3.bin && mmc write $loadaddr 0 0x600 && " \
"tftp $loadaddr gemini/tispl.bin && mmc write ${loadaddr} 0x600 0x800 && " \
"tftp $loadaddr gemini/u-boot.img && mmc write ${loadaddr} 0x1600 0x800;\0"
#define EXTRA_ENV_DFUARGS \
DFU_ALT_INFO_MMC \
DFU_ALT_INFO_EMMC \
DFU_ALT_INFO_RAM
/* Incorporate settings into the U-Boot environment */
#define CONFIG_EXTRA_ENV_SETTINGS \
BOOTENV \
UPDATE_UBOOT_CMD \
DEFAULT_LINUX_BOOT_ENV \
DEFAULT_FIT_TI_ARGS \
DEFAULT_MMC_TI_ARGS \
EXTRA_ENV_DFUARGS
/* Now for the remaining common defines */
#include <configs/ti_armv7_common.h>