
After SSR/PDR, the lpass clocks will be in off state. Force restart clocks after SSR/PDR, if enabled before SSR/PDR, to reenable the clocks. Change-Id: I3d850d92bdc6324aa7a64a83a9066f388a85c7f7 Signed-off-by: Meng Wang <mengw@codeaurora.org>
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef BOLERO_CLK_RSC_H
|
|
#define BOLERO_CLK_RSC_H
|
|
|
|
#include <linux/regmap.h>
|
|
#include <dt-bindings/sound/qcom,bolero-clk-rsc.h>
|
|
|
|
#if IS_ENABLED(CONFIG_SND_SOC_BOLERO)
|
|
int bolero_clk_rsc_mgr_init(void);
|
|
void bolero_clk_rsc_mgr_exit(void);
|
|
void bolero_clk_rsc_fs_gen_request(struct device *dev,
|
|
bool enable);
|
|
int bolero_clk_rsc_request_clock(struct device *dev,
|
|
int default_clk_id,
|
|
int clk_id_req,
|
|
bool enable);
|
|
int bolero_rsc_clk_reset(struct device *dev, int clk_id);
|
|
#else
|
|
static inline void bolero_clk_rsc_fs_gen_request(struct device *dev,
|
|
bool enable)
|
|
{
|
|
}
|
|
static inline int bolero_clk_rsc_mgr_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void bolero_clk_rsc_mgr_exit(void)
|
|
{
|
|
}
|
|
static inline int bolero_clk_rsc_request_clock(struct device *dev,
|
|
int default_clk_id,
|
|
int clk_id_req,
|
|
bool enable)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int bolero_rsc_clk_reset(struct device *dev, int clk_id)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif /* CONFIG_SND_SOC_BOLERO */
|
|
#endif /* BOLERO_CLK_RSC_H */
|