gunyah: arm64: Add support for arm64 drivers for Gunyah
Add gh_arm basic driver to support Gunyah. All required features can be further added to support complete functioning of Gunyah drivers. Change-Id: I0b821d30977963f9891470ed423f9f9645315153 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
This commit is contained in:
parent
3bc0c6e962
commit
5d9f2d2223
@ -4,3 +4,4 @@ obj-$(CONFIG_NET) += net/
|
||||
obj-$(CONFIG_KVM) += kvm/
|
||||
obj-$(CONFIG_XEN) += xen/
|
||||
obj-$(CONFIG_CRYPTO) += crypto/
|
||||
obj-$(CONFIG_GUNYAH_DRIVERS) += gunyah/
|
||||
|
@ -2024,6 +2024,8 @@ source "drivers/acpi/Kconfig"
|
||||
|
||||
source "arch/arm64/kvm/Kconfig"
|
||||
|
||||
source "arch/arm64/gunyah/Kconfig"
|
||||
|
||||
if CRYPTO
|
||||
source "arch/arm64/crypto/Kconfig"
|
||||
endif
|
||||
|
13
arch/arm64/gunyah/Kconfig
Normal file
13
arch/arm64/gunyah/Kconfig
Normal file
@ -0,0 +1,13 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
menu "Gunyah arm64 drivers"
|
||||
config GH_ARM64_DRV
|
||||
tristate "Gunyah arm64 support"
|
||||
depends on ARM64
|
||||
help
|
||||
Gunyah drivers need arch specific support. Add support for
|
||||
ARM64 features required by Gunyah virtualizaton drivers. All
|
||||
arm64 specific features like GIC and reset reasons are handled
|
||||
by drivers under this config.
|
||||
endmenu
|
||||
|
4
arch/arm64/gunyah/Makefile
Normal file
4
arch/arm64/gunyah/Makefile
Normal file
@ -0,0 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
obj-$(CONFIG_GH_ARM64_DRV) += gh_arm_drv.o
|
||||
gh_arm_drv-y := gh_arm.o
|
21
arch/arm64/gunyah/gh_arm.c
Normal file
21
arch/arm64/gunyah/gh_arm.c
Normal file
@ -0,0 +1,21 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
|
||||
static int __init gh_arm_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
module_init(gh_arm_init);
|
||||
|
||||
static void __exit gh_arm_exit(void)
|
||||
{
|
||||
}
|
||||
module_exit(gh_arm_exit);
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Gunyah ARM64 Driver");
|
@ -17,6 +17,7 @@ gdsc-regulator.ko
|
||||
gh_ctrl.ko
|
||||
gh_dbl.ko
|
||||
gh_msgq.ko
|
||||
gh_arm_drv.ko
|
||||
gh_rm_drv.ko
|
||||
gh_virt_wdt.ko
|
||||
hwkm.ko
|
||||
|
Loading…
Reference in New Issue
Block a user