aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/amba
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-05-08 12:33:48 -0700
committerEric Anholt <eric@anholt.net>2017-05-19 11:11:35 -0700
commit032838f9cb4014af8a974374db9e2ce6f3aa8d3b (patch)
tree4fc8a4219ad3fdd59d8ced82cdf746f6bad34899 /include/linux/amba
parentdrm: drop drm_[cm]alloc* helpers (diff)
downloadwireguard-linux-032838f9cb4014af8a974374db9e2ce6f3aa8d3b.tar.xz
wireguard-linux-032838f9cb4014af8a974374db9e2ce6f3aa8d3b.zip
drm/pl111: Register the clock divider and use it.
This is required for the panel to work on bcm911360, where CLCDCLK is the fixed 200Mhz AXI41 clock. The rate set is still passed up to the CLCDCLK, for platforms that have a settable rate on that one. v2: Set SET_RATE_PARENT (caught by Linus Walleij), depend on COMMON_CLK. v3: Mark the clk_ops static (caught by Stephen). Signed-off-by: Eric Anholt <eric@anholt.net> Link: http://patchwork.freedesktop.org/patch/msgid/20170508193348.30236-1-eric@anholt.net Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/linux/amba')
-rw-r--r--include/linux/amba/clcd-regs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/amba/clcd-regs.h b/include/linux/amba/clcd-regs.h
index 69c0e2143003..516a6fda83c5 100644
--- a/include/linux/amba/clcd-regs.h
+++ b/include/linux/amba/clcd-regs.h
@@ -39,12 +39,17 @@
#define CLCD_PALL 0x00000200
#define CLCD_PALETTE 0x00000200
+#define TIM2_PCD_LO_MASK GENMASK(4, 0)
+#define TIM2_PCD_LO_BITS 5
#define TIM2_CLKSEL (1 << 5)
#define TIM2_IVS (1 << 11)
#define TIM2_IHS (1 << 12)
#define TIM2_IPC (1 << 13)
#define TIM2_IOE (1 << 14)
#define TIM2_BCD (1 << 26)
+#define TIM2_PCD_HI_MASK GENMASK(31, 27)
+#define TIM2_PCD_HI_BITS 5
+#define TIM2_PCD_HI_SHIFT 27
#define CNTL_LCDEN (1 << 0)
#define CNTL_LCDBPP1 (0 << 1)