aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/amba
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-08-05 10:58:44 +0200
committerLinus Walleij <linus.walleij@linaro.org>2019-08-09 09:15:05 +0200
commit43f847d0b9540dd1de4cfd626448fb4294422874 (patch)
tree255328cc402c1c35f36e2305e98f289ae5d3d265 /include/linux/amba
parentdrm/panfrost: Add madvise and shrinker support (diff)
downloadwireguard-linux-43f847d0b9540dd1de4cfd626448fb4294422874.tar.xz
wireguard-linux-43f847d0b9540dd1de4cfd626448fb4294422874.zip
drm/pl111: Support grayscale
Migrating the TI nspire calculators to use the PL111 driver for framebuffer requires grayscale support for the elder panel which uses 8bit grayscale only. DRM does not support 8bit grayscale framebuffers in memory, but by defining the bus format to be MEDIA_BUS_FMT_Y8_1X8 we can get the hardware to turn on a grayscaling feature and convert the RGB framebuffer to grayscale for us. Cc: Daniel Tang <dt.tangr@gmail.com> Cc: Fabian Vogt <fabian@ritter-vogt.de> Tested-by: Fabian Vogt <fabian@ritter-vogt.de> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190805085847.25554-2-linus.walleij@linaro.org
Diffstat (limited to 'include/linux/amba')
-rw-r--r--include/linux/amba/clcd-regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/amba/clcd-regs.h b/include/linux/amba/clcd-regs.h
index 516a6fda83c5..421b0fa90d6a 100644
--- a/include/linux/amba/clcd-regs.h
+++ b/include/linux/amba/clcd-regs.h
@@ -42,6 +42,7 @@
#define TIM2_PCD_LO_MASK GENMASK(4, 0)
#define TIM2_PCD_LO_BITS 5
#define TIM2_CLKSEL (1 << 5)
+#define TIM2_ACB_MASK GENMASK(10, 6)
#define TIM2_IVS (1 << 11)
#define TIM2_IHS (1 << 12)
#define TIM2_IPC (1 << 13)