Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cbdcba4 authored by Lina Iyer's avatar Lina Iyer Committed by Hridya Valsaraju
Browse files

drivers: qcom: rpmh-rsc: modularize RSC controller driver



Enable RSC controller driver to be compiled as modules. Since RPMH
communication is need for enabling/disabling critical clocks and busses
needed for the application processor, it is better to keep this module
enabled. Hence declare the driver as a builtin platform driver.

Signed-off-by: default avatarHridya Valsaraju <hridya@google.com>
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>

Change-Id: I5e90b68bbf2c7ed3a2666e0687ff4ade40b9c7a3
parent a8b8978e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ config QCOM_RMTFS_MEM
	  Say y here if you intend to boot the modem remoteproc.

config QCOM_RPMH
	bool "Qualcomm RPM-Hardened (RPMH) Communication"
	tristate "Qualcomm Technologies, Inc. RPM-Hardened (RPMH) Communication driver"
	depends on ARCH_QCOM && ARM64 || COMPILE_TEST
	help
	  Support for communication with the hardened-RPM blocks in
+4 −5
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
@@ -687,9 +688,7 @@ static struct platform_driver rpmh_driver = {
		  .of_match_table = rpmh_drv_match,
	},
};
builtin_platform_driver(rpmh_driver);

static int __init rpmh_driver_init(void)
{
	return platform_driver_register(&rpmh_driver);
}
arch_initcall(rpmh_driver_init);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMH communication driver");