board: ti: Add support for the AM437x GP EVM mini board
Subsystems (3)
PATCH 1/1 board: ti: Add support for the AM437x GP EVM mini board
From: Andreas Dannenberg <[email protected]>
This is not really a new board but rather a minimal bootloader solution for the AM437x GP EVM. In terms of interfaces, it only supports booting from MMC0 or UART0 and only activates a minimal set of drivers that are that are necessary to run the device such as DDR, I2C, and PMIC.
The goal is to provide a bare minimum starting point to boot Linux for basing custom board-ports on. The limited complexity of this solution should make it easier to achieve a successful boot to U-Boot prompt vs. trying to pair down the full-featured multi-platform AM437x U-Boot available through am43xx_evm_defconfig.
---
Tests:
- This has been tested on AM43xx platform, the board boots successfully to u-boot prompt and runs basic commands seamlessly, please find the logs
here: [0]
However, regarding the kernel boot test, sometimes it does boot correctly, sometimes it does not, but this patch does not actually guaranteey that since its purpose is to mainly allow the user to achieve a successful boot to U-boot prompt.
[0]: https://pastebin.com/zmCsjQRT
MAINTAINERS | 4 + arch/arm/dts/Makefile | 5 +- arch/arm/dts/am437x-gp-evm-mini.dts | 171 ++++++++++ arch/arm/mach-omap2/am33xx/Kconfig | 22 ++ board/ti/am43xx/Kconfig | 13 +- board/ti/am43xx/Makefile | 6 +- board/ti/am43xx/board_hs_mini.h | 27 ++ board/ti/am43xx/board_mini.c | 452 +++++++++++++++++++++++++++ board/ti/am43xx/board_mini.h | 28 ++ board/ti/am43xx/mux_mini.c | 53 ++++ configs/am43xx_evm_mini_defconfig | 39 +++ configs/am43xx_hs_evm_mini_defconfig | 47 +++ include/configs/am43xx_evm_mini.h | 120 +++++++ 13 files changed, 983 insertions(+), 4 deletions(-) create mode 100644 arch/arm/dts/am437x-gp-evm-mini.dts create mode 100644 board/ti/am43xx/board_hs_mini.h create mode 100644 board/ti/am43xx/board_mini.c create mode 100644 board/ti/am43xx/board_mini.h create mode 100644 board/ti/am43xx/mux_mini.c create mode 100644 configs/am43xx_evm_mini_defconfig create mode 100644 configs/am43xx_hs_evm_mini_defconfig create mode 100644 include/configs/am43xx_evm_mini.h
MAINTAINERS +4 -0
@@ -492,6 +492,7 @@ F: arch/arm/mach-keystone/ F: arch/arm/mach-omap2/ F: arch/arm/include/asm/arch-omap*/ F: arch/arm/include/asm/ti-common/ +F: arch/arm/dts/am437x* F: board/ti/ F: drivers/dma/ti* F: drivers/firmware/ti_sci.*
@@ -518,6 +519,7 @@ F: drivers/timer/omap-timer.c F: drivers/watchdog/omap_wdt.c F: include/linux/pruss_driver.h F: include/linux/soc/ti/ +F: include/configs/am43xx_evm_mini.h ARM U8500 M: Stephan Gerhold <[email protected]>
@@ -1134,6 +1136,8 @@ F: arch/arm/mach-k3/config_secure.mk F: configs/am335x_hs_evm_defconfig F: configs/am335x_hs_evm_uart_defconfig F: configs/am43xx_hs_evm_defconfig +F: configs/am43xx_evm_mini_defconfig +F: configs/am43xx_hs_evm_mini_defconfig F: configs/am57xx_hs_evm_defconfig F: configs/am57xx_hs_evm_usb_defconfig F: configs/dra7xx_hs_evm_defconfig
arch/arm/dts/Makefile +4 -1
@@ -375,7 +375,10 @@ dtb-$(CONFIG_AM33XX) += \ am335x-guardian.dtb \ am335x-wega-rdk.dtb \ am335x-regor-rdk.dtb -dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb \ +dtb-$(CONFIG_AM43XX) += \ + am437x-gp-evm.dtb \ + am437x-gp-evm-mini.dtb \ + am437x-sk-evm.dtb \ am43x-epos-evm.dtb \ am437x-idk-evm.dtb \ am4372-generic.dtb \
arch/arm/dts/am437x-gp-evm-mini.dts new file +171 -0
171 lines not on this page · raw message
arch/arm/mach-omap2/am33xx/Kconfig +22 -0
@@ -244,6 +244,28 @@ config TARGET_AM43XX_EVM to write software and develop hardware around an AM43xx processor subsystem. +config TARGET_AM43XX_EVM_MINI + bool "Support am43xx_evm_mini" + select BOARD_LATE_INIT + imply DM_I2C + imply SPL_ENV_SUPPORT + imply SPL_FS_EXT4 + imply SPL_FS_FAT + imply SPL_GPIO_SUPPORT + imply SPL_I2C_SUPPORT + imply SPL_LIBCOMMON_SUPPORT + imply SPL_LIBDISK_SUPPORT + imply SPL_LIBGENERIC_SUPPORT + imply SPL_MMC_SUPPORT + imply SPL_POWER_SUPPORT + imply SPL_SERIAL_SUPPORT + imply SPL_YMODEM_SUPPORT + help + This option specifies support for the AM43xx + GP and HS EVM development platforms using a minimal + system configuration, only supporting a small subset + of boot media and other features. + config TARGET_CM_T43 bool "Support cm_t43"
board/ti/am43xx/Kconfig +12 -1
@@ -1,4 +1,4 @@ -if TARGET_AM43XX_EVM +if TARGET_AM43XX_EVM || TARGET_AM43XX_EVM_MINI config SYS_BOARD default "am43xx"
@@ -9,9 +9,20 @@ config SYS_VENDOR config SYS_SOC default "am33xx" +if TARGET_AM43XX_EVM + config SYS_CONFIG_NAME default "am43xx_evm" +endif + +if TARGET_AM43XX_EVM_MINI + +config SYS_CONFIG_NAME + default "am43xx_evm_mini" + +endif + source "board/ti/common/Kconfig" endif
board/ti/am43xx/Makefile +4 -2
@@ -5,7 +5,9 @@ # Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ ifeq ($(CONFIG_SKIP_LOWLEVEL_INIT),) -obj-y := mux.o +obj-$(CONFIG_TARGET_AM43XX_EVM) := mux.o +obj-$(CONFIG_TARGET_AM43XX_EVM_MINI) := mux_mini.o endif -obj-y += board.o +obj-$(CONFIG_TARGET_AM43XX_EVM) += board.o +obj-$(CONFIG_TARGET_AM43XX_EVM_MINI) += board_mini.o
board/ti/am43xx/board_hs_mini.h new file +27 -0
@@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* TI AM437x boards information header +* Derived from AM335x board. +* +* Copyright (C) 2020, Texas Instruments, Incorporated - http://www.ti.com/ +*/ + +#ifndef _BOARD_HS_H_ +#define _BOARD_HS_H_ + +#ifdef CONFIG_TI_SECURE_DEVICE +void board_fit_image_post_process (const void *fit,int node, +void **p_image,size_t *p_size) +{ +secure_boot_verify_image (p_image, p_size); +} + +void board_tee_image_process (ulong tee_image,size_t tee_size) +{ +secure_tee_install ((u32 )tee_image); +} + +U_BOOT_FIT_LOADABLE_HANDLER (IH_TYPE_TEE , board_tee_image_process); +#endif + +#endif
board/ti/am43xx/board_mini.c new file +452 -0
452 lines not on this page · raw message
board/ti/am43xx/board_mini.h new file +28 -0
@@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* TI AM437x boards information header +* Derived from AM335x board. +* +* Copyright (C) 2020, Texas Instruments, Incorporated - http://www.ti.com/ +*/ + +#ifndef _BOARD_H_ +#define _BOARD_H_ + +#include <asm/arch/omap.h> + +#define DEV_ATTR_MAX_OFFSET 5 +#define DEV_ATTR_MIN_OFFSET 0 + +void enable_uart0_pin_mux (void ); +void enable_board_pin_mux (void ); +void enable_i2c0_pin_mux (void ); + +#ifdef CONFIG_DM_I2C +#define pmic_get (name) (NULL) +#define pmic_probe (p) (NULL) +#define i2c_init (speed, slaveaddr) +#define i2c_probe (chip) (NULL) +#endif + +#endif
board/ti/am43xx/mux_mini.c new file +53 -0
53 lines not on this page · raw message
configs/am43xx_evm_mini_defconfig new file +39 -0
@@ -0,0 +1,39 @@ +CONFIG_ARM=y +CONFIG_ARCH_CPU_INIT=y +CONFIG_ARCH_OMAP2PLUS=y +CONFIG_TI_COMMON_CMD_OPTIONS=y +CONFIG_SYS_MALLOC_F_LEN=0x2000 +CONFIG_ENV_SIZE=0x10000 +CONFIG_DM_GPIO=y +CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm-mini" +CONFIG_AM43XX=y +CONFIG_TARGET_AM43XX_EVM_MINI=y +CONFIG_SPL=y +CONFIG_DISTRO_DEFAULTS=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1" +# CONFIG_USE_BOOTCOMMAND is not set +CONFIG_SYS_CONSOLE_INFO_QUIET=y +# CONFIG_MISC_INIT_R is not set +CONFIG_SPL_I2C=y +# CONFIG_SPL_NAND_SUPPORT is not set +CONFIG_SPL_POWER=y +CONFIG_CMD_SPL=y +CONFIG_CMD_SPL_WRITE_SIZE=0x40000 +# CONFIG_CMD_EEPROM is not set +# CONFIG_CMD_SETEXPR is not set +CONFIG_OF_CONTROL=y +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y +CONFIG_VERSION_VARIABLE=y +# CONFIG_NET is not set +CONFIG_DM=y +CONFIG_REGMAP=y +CONFIG_SPL_REGMAP=y +CONFIG_SYSCON=y +CONFIG_SPL_SYSCON=y +CONFIG_MISC=y +CONFIG_MMC_OMAP_HS=y +CONFIG_DM_SERIAL=y +CONFIG_TIMER=y +CONFIG_OMAP_TIMER=y
configs/am43xx_hs_evm_mini_defconfig new file +47 -0
47 lines not on this page · raw message
include/configs/am43xx_evm_mini.h new file +120 -0
120 lines not on this page · raw message
Signature · 1 line
2.25.1