diff options
author | Martin Botka <[email protected]> | 2024-04-18 16:44:01 +0100 |
---|---|---|
committer | Viresh Kumar <[email protected]> | 2024-04-19 12:34:27 +0530 |
commit | 9cf3415ade2d7598d78d2ce6d35d6d6d06132201 (patch) | |
tree | f797a5c616172c462ad10020f15acf526c9c10e0 | |
parent | cf7de25878a1f4508c69dc9f6819c21ba177dbfe (diff) |
firmware: smccc: Export revision soc_id function
The "SoC ID revision" as provided via the SMCCC SOCID interface can be
valuable information for drivers, when certain functionality depends
on a die revision, for instance.
One example is the sun50i-cpufreq-nvmem driver, which needs this
information to determine the speed bin of the SoC.
Export the arm_smccc_get_soc_id_revision() function so that it can be
called by any driver.
Signed-off-by: Martin Botka <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
Acked-by: Sudeep Holla <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
-rw-r--r-- | drivers/firmware/smccc/smccc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/smccc/smccc.c b/drivers/firmware/smccc/smccc.c index db818f9dcb8e..d670635914ec 100644 --- a/drivers/firmware/smccc/smccc.c +++ b/drivers/firmware/smccc/smccc.c @@ -69,6 +69,7 @@ s32 arm_smccc_get_soc_id_revision(void) { return smccc_soc_id_revision; } +EXPORT_SYMBOL_GPL(arm_smccc_get_soc_id_revision); static int __init smccc_devices_init(void) { |