soc: rockchip: pvtm: support module

This submit supports to compile rockchip pvtm into a module.

Change-Id: Id32b2dad80af8657b28e308d155539e3c7dac48a
Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
Liang Chen 2020-07-05 11:44:47 +08:00 committed by Tao Huang
commit bb9a41524c
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ config ROCKCHIP_PM_DOMAINS
If unsure, say N.
config ROCKCHIP_PVTM
bool "Rockchip PVTM support"
tristate "Rockchip PVTM support"
help
Say y here to enable pvtm support.
The Process-Voltage-Temperature Monitor (PVTM) is used to monitor

View file

@ -2,7 +2,7 @@
#ifndef __SOC_ROCKCHIP_PVTM_H
#define __SOC_ROCKCHIP_PVTM_H
#ifdef CONFIG_ROCKCHIP_PVTM
#if IS_ENABLED(CONFIG_ROCKCHIP_PVTM)
u32 rockchip_get_pvtm_value(unsigned int id, unsigned int ring_sel,
unsigned int time_us);
#else