soc: rockchip: opp_select: Add support to be built as module

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ia386fad85df6c7e439ed0d6a0b0a382edb0c6b74
This commit is contained in:
Finley Xiao
2020-07-09 19:07:10 +08:00
committed by Tao Huang
parent 4544c0fa4d
commit f417ab1184
3 changed files with 7 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ config ROCKCHIP_IPA
If unsure, say N.
config ROCKCHIP_OPP
bool "Rockchip OPP select support"
tristate "Rockchip OPP select support"
depends on PM_DEVFREQ
default y
help

View File

@@ -6,6 +6,7 @@
#include <linux/clk.h>
#include <linux/cpufreq.h>
#include <linux/devfreq.h>
#include <linux/module.h>
#include <linux/nvmem-consumer.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
@@ -977,3 +978,7 @@ int rockchip_init_opp_table(struct device *dev,
return 0;
}
EXPORT_SYMBOL(rockchip_init_opp_table);
MODULE_DESCRIPTION("ROCKCHIP OPP Select");
MODULE_AUTHOR("Finley Xiao <finley.xiao@rock-chips.com>, Liang Chen <cl@rock-chips.com>");
MODULE_LICENSE("GPL");

View File

@@ -6,7 +6,7 @@
#ifndef __SOC_ROCKCHIP_OPP_SELECT_H
#define __SOC_ROCKCHIP_OPP_SELECT_H
#ifdef CONFIG_ROCKCHIP_OPP
#if IS_ENABLED(CONFIG_ROCKCHIP_OPP)
int rockchip_of_get_leakage(struct device *dev, char *lkg_name, int *leakage);
void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np,
char *lkg_name, int process,