diff options
author | Tien Fong Chee <tien.fong.chee@intel.com> | 2025-02-18 16:34:59 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-02-25 10:53:57 -0600 |
commit | 0d2010faaca92bb5f0d20b961323d85caaafa080 (patch) | |
tree | 73e4daad20d5b32e8c6f3a8f8f6ce06d30767d6a /arch/arm/mach-socfpga/spl_soc64.c | |
parent | 9bb68bff4efaff541a6d19f11f14d269f5f89a19 (diff) |
arm: socfpga: agilex5: Add SMMU initialization
Allow non-secure accesses only with SMMU peripherals. This would protect
the content in DDR secure region from accidentally modified by SMMU
peripherals.
Signed-off-by: Tien Fong Chee <tien.fong.chee@altera.com>
Diffstat (limited to 'arch/arm/mach-socfpga/spl_soc64.c')
-rw-r--r-- | arch/arm/mach-socfpga/spl_soc64.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/spl_soc64.c b/arch/arm/mach-socfpga/spl_soc64.c index 4fe67ea0811..df89125cb29 100644 --- a/arch/arm/mach-socfpga/spl_soc64.c +++ b/arch/arm/mach-socfpga/spl_soc64.c @@ -1,10 +1,13 @@ // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020 Intel Corporation. All rights reserved + * Copyright (C) 2025 Altera Corporation <www.altera.com> * */ +#include <hang.h> #include <spl.h> +#include <dm/uclass.h> DECLARE_GLOBAL_DATA_PTR; @@ -22,3 +25,16 @@ u32 spl_boot_mode(const u32 boot_device) return MMCSD_MODE_RAW; } #endif + +/* board specific function prior loading SSBL / U-Boot */ +void spl_perform_fixups(struct spl_image_info *spl_image) +{ + int ret; + struct udevice *dev; + + ret = uclass_get_device_by_name(UCLASS_NOP, "socfpga-smmu-secure-config", &dev); + if (ret) { + printf("HPS SMMU secure settings init failed: %d\n", ret); + hang(); + } +} |