Skip to content

Commit

Permalink
plat-k3: Add initial support for AM62Lx SoC
Browse files Browse the repository at this point in the history
AM62Lx newest among on the K3 class of SoCs designed to be low footprint
system where DDR can be as small as 128M. Hence, move the DDR location
to the beginning of DDR right after TF-A.

Disable TI SCI, secure boot info and HW unique ID support for now, they
will be incrementally at later point in time as the underlying
communication layer is different than AM62x.

Signed-off-by: Vignesh Raghavendra <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
Reviewed-by: Dhruva Gole <[email protected]>
  • Loading branch information
r-vignesh authored and jforissier committed Feb 4, 2025
1 parent fbffc8a commit ef1ebdc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ jobs:
_make PLATFORM=k3-am64x CFG_ARM64_core=y
_make PLATFORM=k3-am62x
_make PLATFORM=k3-am62x CFG_ARM64_core=y
_make PLATFORM=k3-am62lx
_make PLATFORM=k3-am62lx CFG_ARM64_core=y
_make PLATFORM=ti-dra7xx out/core/tee{,-pager,-pageable}.bin
_make PLATFORM=ti-am57xx
_make PLATFORM=ti-am43xx
Expand Down
10 changes: 9 additions & 1 deletion core/arch/arm/plat-k3/conf.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
CFG_WITH_STATS ?= y
CFG_CRYPTO_WITH_CE ?= y
CFG_CONSOLE_UART ?= 0
CFG_WITH_SOFTWARE_PRNG ?= n

ifeq ($(PLATFORM_FLAVOR),am62lx)
CFG_TZDRAM_START ?= 0x80200000
CFG_TZDRAM_SIZE ?= 0x00400000 # 20MB

$(call force,CFG_WITH_SOFTWARE_PRNG,y)
else
CFG_TZDRAM_START ?= 0x9e800000
CFG_TZDRAM_SIZE ?= 0x01400000 # 20MB

CFG_WITH_SOFTWARE_PRNG ?= n
endif
CFG_SHMEM_START ?= ($(CFG_TZDRAM_START) + $(CFG_TZDRAM_SIZE))
CFG_SHMEM_SIZE ?= 0x00400000 # 4MB

Expand Down
2 changes: 2 additions & 0 deletions core/arch/arm/plat-k3/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ void plat_console_init(void)
register_serial_console(&console_data.chip);
}

#ifndef PLATFORM_FLAVOR_am62lx
static TEE_Result init_ti_sci(void)
{
TEE_Result ret = TEE_SUCCESS;
Expand Down Expand Up @@ -111,3 +112,4 @@ TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey)

return TEE_SUCCESS;
}
#endif /* PLATFORM_FLAVOR_am62lx */

0 comments on commit ef1ebdc

Please sign in to comment.