firmware: qcom: scm: Add function stubs for ARM64
PATCH v2 1/1 firmware: qcom: scm: Add function stubs for ARM64
This patch adds stubs for the SCM functions exposed in the QCOM SCM API.
Signed-off-by Andy Gross <[email protected]>
--- drivers/firmware/Kconfig | 8 +++++ drivers/firmware/Makefile | 3 +- drivers/firmware/qcom_scm-64.c | 63 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 drivers/firmware/qcom_scm-64.c
drivers/firmware/Kconfig +8 -0
@@ -136,6 +136,14 @@ config QCOM_SCM bool depends on ARM || ARM64 +config QCOM_SCM_32 + def_bool y + depends on QCOM_SCM && ARM + +config QCOM_SCM_64 + def_bool y + depends on QCOM_SCM && ARM64 + source "drivers/firmware/broadcom/Kconfig" source "drivers/firmware/google/Kconfig" source "drivers/firmware/efi/Kconfig"
drivers/firmware/Makefile +2 -1
@@ -12,7 +12,8 @@ obj-$(CONFIG_ISCSI_IBFT_FIND) += iscsi_ibft_find.o obj-$(CONFIG_ISCSI_IBFT) += iscsi_ibft.o obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o obj-$(CONFIG_QCOM_SCM) += qcom_scm.o -obj-$(CONFIG_QCOM_SCM) += qcom_scm-32.o +obj-$(CONFIG_QCOM_SCM_64) += qcom_scm-64.o +obj-$(CONFIG_QCOM_SCM_32) += qcom_scm-32.o CFLAGS_qcom_scm-32.o :=$(call as-instr,.arch_extension sec,-DREQUIRES_SEC=1) obj-y += broadcom/
drivers/firmware/qcom_scm-64.c new file +63 -0
63 lines not on this page · raw message
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation
Quoted 3 lines · Andy Gross
This patch adds stubs for the SCM functions exposed in the QCOM SCM API.
Signed-off-by Andy Gross <[email protected]>
Looks much better, thanks.
Acked-by Russell King <[email protected]>
Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.
Quoted 16 lines · Andy Gross
This patch adds stubs for the SCM functions exposed in the QCOM SCM API.
Signed-off-by Andy Gross <[email protected]>--- drivers/firmware/Kconfig | 8 +++++ drivers/firmware/Makefile | 3 +- drivers/firmware/qcom_scm-64.c | 63 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 drivers/firmware/qcom_scm-64.cdrivers/firmware/Kconfig +0
-0@@ -136,6 +136,14 @@ config QCOM_SCM bool
drivers/firmware/Kconfig config QCOM_SCM · line 146
Quoted 10 lines
drivers/firmware/Kconfig +8
-0depends on ARM || ARM64 +config QCOM_SCM_32 + def_bool y + depends on QCOM_SCM && ARM + +config QCOM_SCM_64 + def_bool y + depends on QCOM_SCM && ARM64 +
So if QCOM_SCM is selected by a consumer then the dependencies here will be met and the correct implementation will be chosen, as these aren't possible to deselect?
I guess that's an okay approach, so:
Acked-by Bjorn Andersson <[email protected]>
Regards,
Bjorn