mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
camera: rockchip: set system status SYS_STATUS_ISP when camera on/off
Change-Id: Ibc576b351b3db877a427ddd78c008182f1d78a56 Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
This commit is contained in:
@@ -55,6 +55,8 @@
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/mfd/syscon.h>
|
||||
#include <linux/dma-iommu.h>
|
||||
#include <soc/rockchip/rockchip-system-status.h>
|
||||
#include <dt-bindings/soc/rockchip-system-status.h>
|
||||
|
||||
static int debug;
|
||||
module_param(debug, int, S_IRUGO|S_IWUSR);
|
||||
@@ -1649,6 +1651,7 @@ static int rk_camera_mclk_ctrl(int cif_idx, int on, int clk_rate)
|
||||
|
||||
/* spin_lock(&clk->lock); */
|
||||
if (on && !clk->on) {
|
||||
rockchip_set_system_status(SYS_STATUS_ISP);
|
||||
if (CHIP_NAME == 3368)
|
||||
clk_prepare_enable(clk->pclk_cif);
|
||||
|
||||
@@ -1671,6 +1674,7 @@ static int rk_camera_mclk_ctrl(int cif_idx, int on, int clk_rate)
|
||||
clk_disable_unprepare(clk->cif_clk_out);
|
||||
if (CHIP_NAME == 3368)
|
||||
clk_disable_unprepare(clk->pclk_cif);
|
||||
rockchip_clear_system_status(SYS_STATUS_ISP);
|
||||
clk->on = false;
|
||||
}
|
||||
/* spin_unlock(&clk->lock); */
|
||||
|
||||
Reference in New Issue
Block a user