mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user