Loading drivers/clk/msm/clock-local2.c +7 −0 Original line number Diff line number Diff line Loading @@ -586,6 +586,13 @@ static int cbcr_set_flags(void * __iomem regaddr, unsigned flags) spin_lock_irqsave(&local_clock_reg_lock, irq_flags); cbcr_val = readl_relaxed(regaddr); switch (flags) { case CLKFLAG_PERIPH_OFF_SET: cbcr_val |= BIT(12); delay_us = 1; break; case CLKFLAG_PERIPH_OFF_CLEAR: cbcr_val &= ~BIT(12); break; case CLKFLAG_RETAIN_PERIPH: cbcr_val |= BIT(13); delay_us = 1; Loading include/linux/clk/msm-clk.h +3 −1 Original line number Diff line number Diff line /* Copyright (c) 2009, 2012-2014 The Linux Foundation. All rights reserved. /* Copyright (c) 2009, 2012-2015 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -30,6 +30,8 @@ #define CLKFLAG_NO_RATE_CACHE 0x00004000 #define CLKFLAG_MEASURE 0x00008000 #define CLKFLAG_EPROBE_DEFER 0x00010000 #define CLKFLAG_PERIPH_OFF_SET 0x00020000 #define CLKFLAG_PERIPH_OFF_CLEAR 0x00040000 struct clk_lookup; struct clk; Loading Loading
drivers/clk/msm/clock-local2.c +7 −0 Original line number Diff line number Diff line Loading @@ -586,6 +586,13 @@ static int cbcr_set_flags(void * __iomem regaddr, unsigned flags) spin_lock_irqsave(&local_clock_reg_lock, irq_flags); cbcr_val = readl_relaxed(regaddr); switch (flags) { case CLKFLAG_PERIPH_OFF_SET: cbcr_val |= BIT(12); delay_us = 1; break; case CLKFLAG_PERIPH_OFF_CLEAR: cbcr_val &= ~BIT(12); break; case CLKFLAG_RETAIN_PERIPH: cbcr_val |= BIT(13); delay_us = 1; Loading
include/linux/clk/msm-clk.h +3 −1 Original line number Diff line number Diff line /* Copyright (c) 2009, 2012-2014 The Linux Foundation. All rights reserved. /* Copyright (c) 2009, 2012-2015 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -30,6 +30,8 @@ #define CLKFLAG_NO_RATE_CACHE 0x00004000 #define CLKFLAG_MEASURE 0x00008000 #define CLKFLAG_EPROBE_DEFER 0x00010000 #define CLKFLAG_PERIPH_OFF_SET 0x00020000 #define CLKFLAG_PERIPH_OFF_CLEAR 0x00040000 struct clk_lookup; struct clk; Loading