arm-trusted-firmware/plat
Sona Mathew aaaf2cc313 refactor(cpufeat): add macro to simplify is_feat_xx_present
In this patch, we are trying to introduce the wrapper macro
CREATE_FEATURE_PRESENT to get the following capability and
align it for all the features:

-> is_feat_xx_present(): Does Hardware implement the feature.
-> uniformity in naming the function across multiple features.
-> improved readability

The is_feat_xx_present() is implemented to check if the hardware
implements the feature and does not take into account the
ENABLE_FEAT_XXX flag enabled/disabled in software.

- CREATE_FEATURE_PRESENT(name, idreg, shift, mask, idval)
The wrapper macro reduces the function to a single line and
creates the is_feat_xx_present function that checks the
id register based on the shift and mask values and compares
this against a determined idvalue.

Change-Id: I7b91d2c9c6fbe55f94c693aa1b2c50be54fb9ecc
Signed-off-by: Sona Mathew <sonarebecca.mathew@arm.com>
2024-05-02 12:16:16 -05:00
..
allwinner refactor(allwinner): console runtime switch on bl31 exit 2024-03-04 20:11:25 +01:00
amlogic build: use toolchain identifiers in conditions 2024-02-06 11:14:52 +00:00
arm refactor(cpufeat): add macro to simplify is_feat_xx_present 2024-05-02 12:16:16 -05:00
aspeed/ast2700 fix(ast2700): add device mapping for coherent memory 2023-10-30 11:30:03 +02:00
brcm chore(brcm): include cpu_helpers.S for bl2 build 2023-07-27 09:35:12 +01:00
common refactor(bl1): clean up bl2 layout calculation 2024-04-26 09:00:12 +00:00
hisilicon fix(spmd): fix build error with spmd 2023-05-10 15:57:29 -05:00
imx feat(imx8mq): detect console base address during runtime 2024-04-01 15:08:20 +02:00
intel/soc refactor: fix common misspelling of init* 2024-03-20 11:44:00 +00:00
marvell fix(tree): correct some typos 2023-05-09 15:57:12 +01:00
mediatek feat(mt8188): remove apusys kernel handler usage constraints 2024-04-29 16:56:32 +08:00
nuvoton fix(nuvoton): prevent changing clock frequency 2024-03-26 16:44:07 +02:00
nvidia/tegra build: use toolchain identifiers in conditions 2024-02-06 11:14:52 +00:00
nxp fix(tree): correct some typos 2023-05-09 15:57:12 +01:00
qemu refactor(cpufeat): add macro to simplify is_feat_xx_present 2024-05-02 12:16:16 -05:00
qti chore: remove MULTI_CONSOLE_API references 2023-09-12 15:28:36 +02:00
renesas build: use new toolchain variables for tools 2024-02-06 11:14:52 +00:00
rockchip fix(rockchip): add support for building with LTO enabled 2024-02-24 00:42:50 +03:00
rpi feat(rpi): add Raspberry Pi 5 support 2024-03-08 21:05:08 +02:00
socionext refactor(console): disable getc() by default 2023-10-11 08:40:14 +02:00
st refactor(stm32mp1): move the MCU security to BL32 2024-03-19 15:49:14 +01:00
ti/k3 Revert "fix(ti): do not take system power reference in bl31_platform_setup()" 2024-02-05 10:45:48 +05:30
xilinx Merge "feat(zynqmp): remove unused pm_get_proc_by_node()" into integration 2024-05-02 10:13:54 +02:00