firmware: smccc: Export revision soc_id function
authorMartin Botka <martin.botka@somainline.org>
Thu, 18 Apr 2024 15:44:01 +0000 (16:44 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 19 Apr 2024 07:04:27 +0000 (12:34 +0530)
commit9cf3415ade2d7598d78d2ce6d35d6d6d06132201
treef797a5c616172c462ad10020f15acf526c9c10e0
parentcf7de25878a1f4508c69dc9f6819c21ba177dbfe
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 <martin.botka@somainline.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/firmware/smccc/smccc.c