mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
487ca61f91
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.61 Manually rebased: bcm27xx/patches-6.6/950-0998-i2c-designware-Add-support-for-bus-clear-feature.patch All other patches automatically rebased. Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/16959 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 9cf3415ade2d7598d78d2ce6d35d6d6d06132201 Mon Sep 17 00:00:00 2001
|
|
From: Martin Botka <martin.botka@somainline.org>
|
|
Date: Thu, 18 Apr 2024 16:44:01 +0100
|
|
Subject: [PATCH] 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 | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/firmware/smccc/smccc.c
|
|
+++ b/drivers/firmware/smccc/smccc.c
|
|
@@ -65,6 +65,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)
|
|
{
|