mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
firmware: qcom: scm: Move the scm driver to drivers/firmware
Architectural changes in the ARM Linux kernel tree mandate the eventual removal of the mach-* directories. Move the scm driver to drivers/firmware and the scm header to include/linux to support that removal. Signed-off-by: Kumar Gala <galak@codeaurora.org>
This commit is contained in:
parent
4de43476fc
commit
916f743da3
@ -1317,6 +1317,7 @@ L: linux-soc@vger.kernel.org
|
|||||||
S: Maintained
|
S: Maintained
|
||||||
F: arch/arm/mach-qcom/
|
F: arch/arm/mach-qcom/
|
||||||
F: drivers/soc/qcom/
|
F: drivers/soc/qcom/
|
||||||
|
F: drivers/firmware/qcom_scm.c
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git
|
||||||
|
|
||||||
ARM/RADISYS ENP2611 MACHINE SUPPORT
|
ARM/RADISYS ENP2611 MACHINE SUPPORT
|
||||||
|
@ -2160,6 +2160,8 @@ source "net/Kconfig"
|
|||||||
|
|
||||||
source "drivers/Kconfig"
|
source "drivers/Kconfig"
|
||||||
|
|
||||||
|
source "drivers/firmware/Kconfig"
|
||||||
|
|
||||||
source "fs/Kconfig"
|
source "fs/Kconfig"
|
||||||
|
|
||||||
source "arch/arm/Kconfig.debug"
|
source "arch/arm/Kconfig.debug"
|
||||||
|
@ -22,7 +22,4 @@ config ARCH_MSM8974
|
|||||||
bool "Enable support for MSM8974"
|
bool "Enable support for MSM8974"
|
||||||
select HAVE_ARM_ARCH_TIMER
|
select HAVE_ARM_ARCH_TIMER
|
||||||
|
|
||||||
config QCOM_SCM
|
|
||||||
bool
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -1,5 +1,2 @@
|
|||||||
obj-y := board.o
|
obj-y := board.o
|
||||||
obj-$(CONFIG_SMP) += platsmp.o
|
obj-$(CONFIG_SMP) += platsmp.o
|
||||||
obj-$(CONFIG_QCOM_SCM) += scm.o
|
|
||||||
|
|
||||||
CFLAGS_scm.o :=$(call as-instr,.arch_extension sec,-DREQUIRES_SEC=1)
|
|
||||||
|
@ -17,10 +17,10 @@
|
|||||||
#include <linux/of_address.h>
|
#include <linux/of_address.h>
|
||||||
#include <linux/smp.h>
|
#include <linux/smp.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
#include <linux/qcom_scm.h>
|
||||||
|
|
||||||
#include <asm/smp_plat.h>
|
#include <asm/smp_plat.h>
|
||||||
|
|
||||||
#include "scm.h"
|
|
||||||
|
|
||||||
#define VDD_SC1_ARRAY_CLAMP_GFS_CTL 0x35a0
|
#define VDD_SC1_ARRAY_CLAMP_GFS_CTL 0x35a0
|
||||||
#define SCSS_CPU1CORE_RESET 0x2d80
|
#define SCSS_CPU1CORE_RESET 0x2d80
|
||||||
|
@ -132,6 +132,10 @@ config ISCSI_IBFT
|
|||||||
detect iSCSI boot parameters dynamically during system boot, say Y.
|
detect iSCSI boot parameters dynamically during system boot, say Y.
|
||||||
Otherwise, say N.
|
Otherwise, say N.
|
||||||
|
|
||||||
|
config QCOM_SCM
|
||||||
|
bool
|
||||||
|
depends on ARM || ARM64
|
||||||
|
|
||||||
source "drivers/firmware/google/Kconfig"
|
source "drivers/firmware/google/Kconfig"
|
||||||
source "drivers/firmware/efi/Kconfig"
|
source "drivers/firmware/efi/Kconfig"
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@ obj-$(CONFIG_DMIID) += dmi-id.o
|
|||||||
obj-$(CONFIG_ISCSI_IBFT_FIND) += iscsi_ibft_find.o
|
obj-$(CONFIG_ISCSI_IBFT_FIND) += iscsi_ibft_find.o
|
||||||
obj-$(CONFIG_ISCSI_IBFT) += iscsi_ibft.o
|
obj-$(CONFIG_ISCSI_IBFT) += iscsi_ibft.o
|
||||||
obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o
|
obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o
|
||||||
|
obj-$(CONFIG_QCOM_SCM) += qcom_scm.o
|
||||||
|
CFLAGS_qcom_scm.o :=$(call as-instr,.arch_extension sec,-DREQUIRES_SEC=1)
|
||||||
|
|
||||||
obj-$(CONFIG_GOOGLE_FIRMWARE) += google/
|
obj-$(CONFIG_GOOGLE_FIRMWARE) += google/
|
||||||
obj-$(CONFIG_EFI) += efi/
|
obj-$(CONFIG_EFI) += efi/
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
|
#include <linux/qcom_scm.h>
|
||||||
|
|
||||||
#include <asm/outercache.h>
|
#include <asm/outercache.h>
|
||||||
#include <asm/cacheflush.h>
|
#include <asm/cacheflush.h>
|
||||||
|
|
||||||
#include "scm.h"
|
|
||||||
|
|
||||||
#define QCOM_SCM_ENOMEM -5
|
#define QCOM_SCM_ENOMEM -5
|
||||||
#define QCOM_SCM_EOPNOTSUPP -4
|
#define QCOM_SCM_EOPNOTSUPP -4
|
Loading…
Reference in New Issue
Block a user