mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
csi: csi use new power control API [1/1]
PD#SWPL-17785 Problem: csi use new power control API Solution: change api in csi Verify: sm1 Change-Id: I56e1055096c743d07401254c254acf24d08b64c5 Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
This commit is contained in:
@@ -28,7 +28,8 @@
|
||||
#include <linux/delay.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/amlogic/power_ctrl.h>
|
||||
#include <linux/amlogic/power_domain.h>
|
||||
#include <dt-bindings/power/amlogic,pd.h>
|
||||
#include "csi.h"
|
||||
|
||||
#define HHI_CSI_PHY 0xff63c000
|
||||
@@ -264,12 +265,12 @@ static void powerup_csi_analog(struct csi_parm_s *info)
|
||||
|
||||
iounmap(base_addr);
|
||||
|
||||
power_ctrl_mempd0(1, 3, 6);
|
||||
power_domain_switch(PM_CSI, PWR_ON);
|
||||
}
|
||||
|
||||
static void powerdown_csi_analog(void)
|
||||
{
|
||||
power_ctrl_mempd0(0, 3, 6);
|
||||
power_domain_switch(PM_CSI, PWR_OFF);
|
||||
}
|
||||
|
||||
static void init_am_mipi_phy(struct csi_parm_s *info)
|
||||
|
||||
Reference in New Issue
Block a user