mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
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. Change-Id: I41a657c0d618efb7c3460833ffb8eb5d445885a0 Signed-off-by: Lina Iyer <ilina@codeaurora.org>
This commit is contained in:
parent
d6b2e3798f
commit
df2f76f8e8
3 changed files with 5 additions and 7 deletions
|
|
@ -228,7 +228,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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. */
|
||||
|
||||
|
||||
#ifndef __RPM_INTERNAL_H__
|
||||
#define __RPM_INTERNAL_H__
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,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>
|
||||
|
|
@ -685,9 +686,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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue