Commit ed0e60512407716d17405e45e12c92e52918608a

Authored by Lokesh Vutla
Committed by Tom Rini
1 parent 586bde93eb

arm: K3: Add support for AM654 SoC definition

The AM654 device is designed for industrial automation and PLC
controller class platforms among other applications. Introduce
base support for AM654 SoC.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>

Showing 4 changed files with 85 additions and 0 deletions Side-by-side Diff

arch/arm/mach-k3/Kconfig
... ... @@ -4,10 +4,41 @@
4 4 prompt "Texas Instruments' K3 based SoC select"
5 5 optional
6 6  
  7 +config SOC_K3_AM6
  8 + bool "TI's K3 based AM6 SoC Family Support"
  9 +
7 10 endchoice
8 11  
9 12 config SYS_SOC
10 13 default "k3"
  14 +
  15 +config SYS_K3_NON_SECURE_MSRAM_SIZE
  16 + hex
  17 + default 0x80000
  18 + help
  19 + Describes the total size of the MCU MSRAM. This doesn't
  20 + specify the total size of SPL as ROM can use some part
  21 + of this RAM. Once ROM gives control to SPL then this
  22 + complete size can be usable.
  23 +
  24 +config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
  25 + hex
  26 + default 0x58000
  27 + help
  28 + Describes the maximum size of the image that ROM can download
  29 + from any boot media.
  30 +
  31 +config SYS_K3_MCU_SCRATCHPAD_BASE
  32 + hex
  33 + default 0x40280000 if SOC_K3_AM6
  34 + help
  35 + Describes the base address of MCU Scratchpad RAM.
  36 +
  37 +config SYS_K3_MCU_SCRATCHPAD_SIZE
  38 + hex
  39 + default 0x200 if SOC_K3_AM6
  40 + help
  41 + Describes the size of MCU Scratchpad RAM.
11 42  
12 43 endif
arch/arm/mach-k3/Makefile
  1 +# SPDX-License-Identifier: GPL-2.0+
  2 +#
  3 +# Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
  4 +# Lokesh Vutla <lokeshvutla@ti.com>
  5 +
  6 +obj-$(CONFIG_SOC_K3_AM6) += am6_init.o
arch/arm/mach-k3/am6_init.c
  1 +// SPDX-License-Identifier: GPL-2.0+
  2 +/*
  3 + * K3: Architecture initialization
  4 + *
  5 + * Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
  6 + * Lokesh Vutla <lokeshvutla@ti.com>
  7 + */
  8 +
  9 +#include <common.h>
  10 +#include <spl.h>
  11 +
  12 +#ifdef CONFIG_SPL_BUILD
  13 +void board_init_f(ulong dummy)
  14 +{
  15 + /* Init DM early in-order to invoke system controller */
  16 + spl_early_init();
  17 +
  18 + /* Prepare console output */
  19 + preloader_console_init();
  20 +}
  21 +
  22 +u32 spl_boot_device(void)
  23 +{
  24 + return BOOT_DEVICE_RAM;
  25 +}
  26 +#endif
  27 +
  28 +#ifndef CONFIG_SYSRESET
  29 +void reset_cpu(ulong ignored)
  30 +{
  31 +}
  32 +#endif
arch/arm/mach-k3/include/mach/clock.h
  1 +/* SPDX-License-Identifier: GPL-2.0+ */
  2 +/*
  3 + * K3: Common SoC clock definitions.
  4 + *
  5 + * (C) Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  6 + */
  7 +#ifndef __ASM_ARCH_CLOCK_H
  8 +#define __ASM_ARCH_CLOCK_H
  9 +
  10 +#include <config.h>
  11 +
  12 +/* Clock Defines */
  13 +#define V_OSCK 24000000
  14 +#define V_SCLK V_OSCK
  15 +
  16 +#endif /* __ASM_ARCH_CLOCK_H */