power: add is_support_pwr_ctrl function. [2/2]

PD#SWPL-5261

Problem:
bringup sm1 and tm2.

Solution:
add is_support_pwr_ctrl function.

Verify:
U212 and AC200

Change-Id: I7f392ea8f23ce6f4e610b98bdcc39c4fcc2e6444
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
This commit is contained in:
Nanxin Qin
2019-04-09 22:34:05 +08:00
committed by Tao Zeng
parent e98a002602
commit 23b79e78fc
2 changed files with 7 additions and 0 deletions

View File

@@ -37,6 +37,12 @@ struct power_ctrl {
struct power_ctrl ctrl;
static bool probe_done;
bool is_support_power_ctrl(void)
{
return probe_done;
}
EXPORT_SYMBOL(is_support_power_ctrl);
int power_ctrl_sleep(bool power_on, unsigned int shift)
{
unsigned int val;

View File

@@ -20,6 +20,7 @@
#include <linux/types.h>
#ifdef CONFIG_AMLOGIC_POWER
bool is_support_power_ctrl(void);
int power_ctrl_sleep(bool power_on, unsigned int shift);
int power_ctrl_sleep_mask(bool power_on,
unsigned int mask_val, unsigned int shift);