diff options
| author | Marek Vasut <marex@denx.de> | 2025-02-06 22:29:36 +0100 |
|---|---|---|
| committer | Michal Simek <michal.simek@amd.com> | 2025-04-16 13:42:06 +0200 |
| commit | 931d96b594e029ecde46475ca355da2efb3035b1 (patch) | |
| tree | 2ebf3ecafba14bfd519c99db9ef77b3a07127c6f /arch/arm/mach-versal/include/mach | |
| parent | 3ecf1b78d92469f3074ecf8cbb1c19455a878ea4 (diff) | |
arm64: zynqmp: versal: Consistently use enum tcm_mode
Turn anonymous enum TCM_LOCK/TCM_SPLIT into enum tcm_mode {}, set
TCM_LOCK as 0 and TCM_SPLIT as 1 to match LOCK and SPLIT macros in
mach-zynqmp/mp.c, and unify all the functions and their parameters
on this one single enum tcm_mode {} instead of a mix of bool and u8.
No functional change intended.
Signed-off-by: Marek Vasut <marex@denx.de>
Tested-by: Love Kumar <love.kumar@amd.com>
Link: https://lore.kernel.org/r/20250206213039.42756-1-marex@denx.de
Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'arch/arm/mach-versal/include/mach')
| -rw-r--r-- | arch/arm/mach-versal/include/mach/sys_proto.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-versal/include/mach/sys_proto.h b/arch/arm/mach-versal/include/mach/sys_proto.h index 757bd873fbe..a6dfa556966 100644 --- a/arch/arm/mach-versal/include/mach/sys_proto.h +++ b/arch/arm/mach-versal/include/mach/sys_proto.h @@ -5,11 +5,11 @@ #include <linux/build_bug.h> -enum { - TCM_LOCK, - TCM_SPLIT, +enum tcm_mode { + TCM_LOCK = 0, + TCM_SPLIT = 1, }; -void initialize_tcm(bool mode); -void tcm_init(u8 mode); +void initialize_tcm(enum tcm_mode mode); +void tcm_init(enum tcm_mode mode); void mem_map_fill(void); |
