[PATCH v2 10/11] clk: qcom: Add support for VideoCC driver for Kaanapali
Konrad Dybcio
konrad.dybcio at oss.qualcomm.com
Mon Dec 1 05:15:42 PST 2025
On 11/25/25 6:45 PM, Taniya Das wrote:
> Enable Kaanapali video clock driver for video SW to be able to control
> the clocks from the Video SW driver.
>
> Signed-off-by: Taniya Das <taniya.das at oss.qualcomm.com>
> ---
[...]
> +static struct clk_mem_branch video_cc_mvs0_freerun_clk = {
> + .mem_enable_reg = 0x80E4,
> + .mem_ack_reg = 0x80E4,
hex must be lowercase
> + .mem_enable_mask = BIT(3),
> + .mem_enable_ack_mask = 0xc00,
GENMASK(11, 10)
> + .mem_enable_invert = true,
> + .branch = {
> + .halt_reg = 0x80e0,
> + .halt_check = BRANCH_HALT,
> + .clkr = {
> + .enable_reg = 0x80e0,
> + .enable_mask = BIT(0),
> + .hw.init = &(const struct clk_init_data) {
> + .name = "video_cc_mvs0_freerun_clk",
> + .parent_hws = (const struct clk_hw*[]) {
> + &video_cc_mvs0_clk_src.clkr.hw,
> + },
> + .num_parents = 1,
> + .flags = CLK_SET_RATE_PARENT,
> + .ops = &clk_branch2_ops,
> + },
The indentation is a little malformed
> +static void clk_kaanapali_regs_configure(struct device *dev, struct regmap *regmap)
> +{
> + /*
> + * Enable clk_on sync for MVS0 and VPP clocks via VIDEO_CC_SPARE1
> + * during core reset by default.
> + */
> + regmap_update_bits(regmap, 0x9f24, BIT(0), BIT(0));
regmap_set_bits()
lgtm otherwise
Konrad
More information about the linux-arm-kernel
mailing list