aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-10-17 11:45:11 -0400
committerPeng Fan <peng.fan@nxp.com>2022-10-18 09:32:52 +0800
commit3ed84e73fb59c592c4cdfe3b56cce5cecf30a7da (patch)
tree8a84a85f19808282e0f01be13d5b3916cac5eeb2 /arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
parent3d970cb264ba2dd9b84fa689b397cd93ac939ac9 (diff)
downloadu-boot-3ed84e73fb59c592c4cdfe3b56cce5cecf30a7da.zip
u-boot-3ed84e73fb59c592c4cdfe3b56cce5cecf30a7da.tar.gz
u-boot-3ed84e73fb59c592c4cdfe3b56cce5cecf30a7da.tar.bz2
arm: layerscape: Disable unused parts of ICID tables
Several parts of the ICID table are only necessary for U-Boot proper. Disable them in SPL. This saves around 500 bytes. Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h')
-rw-r--r--arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h b/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
index 3c06a55..8af0d35 100644
--- a/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
+++ b/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
@@ -12,11 +12,15 @@
#include <asm/armv8/sec_firmware.h>
struct icid_id_table {
+#ifndef CONFIG_SPL_BUILD
const char *compat;
- u32 id;
- u32 reg;
phys_addr_t compat_addr;
+#endif
phys_addr_t reg_addr;
+ u32 reg;
+#ifndef CONFIG_SPL_BUILD
+ u32 id;
+#endif
bool le;
};
@@ -31,6 +35,13 @@ int fdt_set_iommu_prop(void *blob, int off, int smmu_ph, u32 *ids, int num_ids);
void set_icids(void);
void fdt_fixup_icid(void *blob);
+#ifdef CONFIG_SPL_BUILD
+#define SET_ICID_ENTRY(name, idA, regA, addr, compataddr, _le) \
+ { .reg = regA, \
+ .reg_addr = addr, \
+ .le = _le \
+ }
+#else
#define SET_ICID_ENTRY(name, idA, regA, addr, compataddr, _le) \
{ .compat = name, \
.id = idA, \
@@ -39,6 +50,7 @@ void fdt_fixup_icid(void *blob);
.reg_addr = addr, \
.le = _le \
}
+#endif
#ifdef CONFIG_SYS_FSL_SEC_LE
#define SEC_IS_LE true