summaryrefslogtreecommitdiff
path: root/drivers/clk/ingenic/cgu.h
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2018-01-16 18:47:53 +0300
committerJames Hogan <jhogan@kernel.org>2018-01-19 01:05:13 +0300
commit268db077ac47d3b5d8e3a768bf9dc5cb32ce6074 (patch)
tree59380382f525ff4869a1ac1d5b586fde3059ea48 /drivers/clk/ingenic/cgu.h
parente6cfa64375d34a6c8c1861868a381013b2d3b921 (diff)
downloadlinux-268db077ac47d3b5d8e3a768bf9dc5cb32ce6074.tar.xz
clk: ingenic: support PLLs with no bypass bit
The second PLL of the JZ4770 does not have a bypass bit. This commit makes it possible to support it with the current common CGU code. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Acked-by: Stephen Boyd <sboyd@codeaurora.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Maarten ter Huurne <maarten@treewalker.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/18479/ Signed-off-by: James Hogan <jhogan@kernel.org>
Diffstat (limited to 'drivers/clk/ingenic/cgu.h')
-rw-r--r--drivers/clk/ingenic/cgu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/ingenic/cgu.h b/drivers/clk/ingenic/cgu.h
index f1527cf75b3f..9da34910bd80 100644
--- a/drivers/clk/ingenic/cgu.h
+++ b/drivers/clk/ingenic/cgu.h
@@ -48,6 +48,7 @@
* @bypass_bit: the index of the bypass bit in the PLL control register
* @enable_bit: the index of the enable bit in the PLL control register
* @stable_bit: the index of the stable bit in the PLL control register
+ * @no_bypass_bit: if set, the PLL has no bypass functionality
*/
struct ingenic_cgu_pll_info {
unsigned reg;
@@ -58,6 +59,7 @@ struct ingenic_cgu_pll_info {
u8 bypass_bit;
u8 enable_bit;
u8 stable_bit;
+ bool no_bypass_bit;
};
/**