Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: pl111: Absorb the external register header

The PL111 DRM driver is now the sole user of the external
CLCD registers header file, so let's absorb that into the
pl111_drm.h file and save the external include.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Russell King <linux@armlinux.org.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200609200446.153209-3-linus.walleij@linaro.org

+73 -91
-1
drivers/gpu/drm/pl111/pl111_debugfs.c
··· 3 3 * Copyright © 2017 Broadcom 4 4 */ 5 5 6 - #include <linux/amba/clcd-regs.h> 7 6 #include <linux/seq_file.h> 8 7 9 8 #include <drm/drm_debugfs.h>
-1
drivers/gpu/drm/pl111/pl111_display.c
··· 9 9 * Copyright (C) 2011 Texas Instruments 10 10 */ 11 11 12 - #include <linux/amba/clcd-regs.h> 13 12 #include <linux/clk.h> 14 13 #include <linux/delay.h> 15 14 #include <linux/version.h>
+73
drivers/gpu/drm/pl111/pl111_drm.h
··· 23 23 #include <drm/drm_panel.h> 24 24 #include <drm/drm_simple_kms_helper.h> 25 25 26 + /* 27 + * CLCD Controller Internal Register addresses 28 + */ 29 + #define CLCD_TIM0 0x00000000 30 + #define CLCD_TIM1 0x00000004 31 + #define CLCD_TIM2 0x00000008 32 + #define CLCD_TIM3 0x0000000c 33 + #define CLCD_UBAS 0x00000010 34 + #define CLCD_LBAS 0x00000014 35 + 36 + #define CLCD_PL110_IENB 0x00000018 37 + #define CLCD_PL110_CNTL 0x0000001c 38 + #define CLCD_PL110_STAT 0x00000020 39 + #define CLCD_PL110_INTR 0x00000024 40 + #define CLCD_PL110_UCUR 0x00000028 41 + #define CLCD_PL110_LCUR 0x0000002C 42 + 43 + #define CLCD_PL111_CNTL 0x00000018 44 + #define CLCD_PL111_IENB 0x0000001c 45 + #define CLCD_PL111_RIS 0x00000020 46 + #define CLCD_PL111_MIS 0x00000024 47 + #define CLCD_PL111_ICR 0x00000028 48 + #define CLCD_PL111_UCUR 0x0000002c 49 + #define CLCD_PL111_LCUR 0x00000030 50 + 51 + #define CLCD_PALL 0x00000200 52 + #define CLCD_PALETTE 0x00000200 53 + 54 + #define TIM2_PCD_LO_MASK GENMASK(4, 0) 55 + #define TIM2_PCD_LO_BITS 5 56 + #define TIM2_CLKSEL (1 << 5) 57 + #define TIM2_ACB_MASK GENMASK(10, 6) 58 + #define TIM2_IVS (1 << 11) 59 + #define TIM2_IHS (1 << 12) 60 + #define TIM2_IPC (1 << 13) 61 + #define TIM2_IOE (1 << 14) 62 + #define TIM2_BCD (1 << 26) 63 + #define TIM2_PCD_HI_MASK GENMASK(31, 27) 64 + #define TIM2_PCD_HI_BITS 5 65 + #define TIM2_PCD_HI_SHIFT 27 66 + 67 + #define CNTL_LCDEN (1 << 0) 68 + #define CNTL_LCDBPP1 (0 << 1) 69 + #define CNTL_LCDBPP2 (1 << 1) 70 + #define CNTL_LCDBPP4 (2 << 1) 71 + #define CNTL_LCDBPP8 (3 << 1) 72 + #define CNTL_LCDBPP16 (4 << 1) 73 + #define CNTL_LCDBPP16_565 (6 << 1) 74 + #define CNTL_LCDBPP16_444 (7 << 1) 75 + #define CNTL_LCDBPP24 (5 << 1) 76 + #define CNTL_LCDBW (1 << 4) 77 + #define CNTL_LCDTFT (1 << 5) 78 + #define CNTL_LCDMONO8 (1 << 6) 79 + #define CNTL_LCDDUAL (1 << 7) 80 + #define CNTL_BGR (1 << 8) 81 + #define CNTL_BEBO (1 << 9) 82 + #define CNTL_BEPO (1 << 10) 83 + #define CNTL_LCDPWR (1 << 11) 84 + #define CNTL_LCDVCOMP(x) ((x) << 12) 85 + #define CNTL_LDMAFIFOTIME (1 << 15) 86 + #define CNTL_WATERMARK (1 << 16) 87 + 88 + /* ST Microelectronics variant bits */ 89 + #define CNTL_ST_1XBPP_444 0x0 90 + #define CNTL_ST_1XBPP_5551 (1 << 17) 91 + #define CNTL_ST_1XBPP_565 (1 << 18) 92 + #define CNTL_ST_CDWID_12 0x0 93 + #define CNTL_ST_CDWID_16 (1 << 19) 94 + #define CNTL_ST_CDWID_18 (1 << 20) 95 + #define CNTL_ST_CDWID_24 ((1 << 19) | (1 << 20)) 96 + #define CNTL_ST_CEAEN (1 << 21) 97 + #define CNTL_ST_LCDBPP24_PACKED (6 << 1) 98 + 26 99 #define CLCD_IRQ_NEXTBASE_UPDATE BIT(2) 27 100 28 101 struct drm_minor;
-1
drivers/gpu/drm/pl111/pl111_drv.c
··· 47 47 */ 48 48 49 49 #include <linux/amba/bus.h> 50 - #include <linux/amba/clcd-regs.h> 51 50 #include <linux/dma-buf.h> 52 51 #include <linux/module.h> 53 52 #include <linux/of.h>
-1
drivers/gpu/drm/pl111/pl111_versatile.c
··· 9 9 * Major contributions and discoveries by Russell King. 10 10 */ 11 11 12 - #include <linux/amba/clcd-regs.h> 13 12 #include <linux/bitops.h> 14 13 #include <linux/device.h> 15 14 #include <linux/mfd/syscon.h>
-87
include/linux/amba/clcd-regs.h
··· 1 - /* 2 - * David A Rusling 3 - * 4 - * Copyright (C) 2001 ARM Limited 5 - * 6 - * This file is subject to the terms and conditions of the GNU General Public 7 - * License. See the file COPYING in the main directory of this archive 8 - * for more details. 9 - */ 10 - 11 - #ifndef AMBA_CLCD_REGS_H 12 - #define AMBA_CLCD_REGS_H 13 - 14 - /* 15 - * CLCD Controller Internal Register addresses 16 - */ 17 - #define CLCD_TIM0 0x00000000 18 - #define CLCD_TIM1 0x00000004 19 - #define CLCD_TIM2 0x00000008 20 - #define CLCD_TIM3 0x0000000c 21 - #define CLCD_UBAS 0x00000010 22 - #define CLCD_LBAS 0x00000014 23 - 24 - #define CLCD_PL110_IENB 0x00000018 25 - #define CLCD_PL110_CNTL 0x0000001c 26 - #define CLCD_PL110_STAT 0x00000020 27 - #define CLCD_PL110_INTR 0x00000024 28 - #define CLCD_PL110_UCUR 0x00000028 29 - #define CLCD_PL110_LCUR 0x0000002C 30 - 31 - #define CLCD_PL111_CNTL 0x00000018 32 - #define CLCD_PL111_IENB 0x0000001c 33 - #define CLCD_PL111_RIS 0x00000020 34 - #define CLCD_PL111_MIS 0x00000024 35 - #define CLCD_PL111_ICR 0x00000028 36 - #define CLCD_PL111_UCUR 0x0000002c 37 - #define CLCD_PL111_LCUR 0x00000030 38 - 39 - #define CLCD_PALL 0x00000200 40 - #define CLCD_PALETTE 0x00000200 41 - 42 - #define TIM2_PCD_LO_MASK GENMASK(4, 0) 43 - #define TIM2_PCD_LO_BITS 5 44 - #define TIM2_CLKSEL (1 << 5) 45 - #define TIM2_ACB_MASK GENMASK(10, 6) 46 - #define TIM2_IVS (1 << 11) 47 - #define TIM2_IHS (1 << 12) 48 - #define TIM2_IPC (1 << 13) 49 - #define TIM2_IOE (1 << 14) 50 - #define TIM2_BCD (1 << 26) 51 - #define TIM2_PCD_HI_MASK GENMASK(31, 27) 52 - #define TIM2_PCD_HI_BITS 5 53 - #define TIM2_PCD_HI_SHIFT 27 54 - 55 - #define CNTL_LCDEN (1 << 0) 56 - #define CNTL_LCDBPP1 (0 << 1) 57 - #define CNTL_LCDBPP2 (1 << 1) 58 - #define CNTL_LCDBPP4 (2 << 1) 59 - #define CNTL_LCDBPP8 (3 << 1) 60 - #define CNTL_LCDBPP16 (4 << 1) 61 - #define CNTL_LCDBPP16_565 (6 << 1) 62 - #define CNTL_LCDBPP16_444 (7 << 1) 63 - #define CNTL_LCDBPP24 (5 << 1) 64 - #define CNTL_LCDBW (1 << 4) 65 - #define CNTL_LCDTFT (1 << 5) 66 - #define CNTL_LCDMONO8 (1 << 6) 67 - #define CNTL_LCDDUAL (1 << 7) 68 - #define CNTL_BGR (1 << 8) 69 - #define CNTL_BEBO (1 << 9) 70 - #define CNTL_BEPO (1 << 10) 71 - #define CNTL_LCDPWR (1 << 11) 72 - #define CNTL_LCDVCOMP(x) ((x) << 12) 73 - #define CNTL_LDMAFIFOTIME (1 << 15) 74 - #define CNTL_WATERMARK (1 << 16) 75 - 76 - /* ST Microelectronics variant bits */ 77 - #define CNTL_ST_1XBPP_444 0x0 78 - #define CNTL_ST_1XBPP_5551 (1 << 17) 79 - #define CNTL_ST_1XBPP_565 (1 << 18) 80 - #define CNTL_ST_CDWID_12 0x0 81 - #define CNTL_ST_CDWID_16 (1 << 19) 82 - #define CNTL_ST_CDWID_18 (1 << 20) 83 - #define CNTL_ST_CDWID_24 ((1 << 19)|(1 << 20)) 84 - #define CNTL_ST_CEAEN (1 << 21) 85 - #define CNTL_ST_LCDBPP24_PACKED (6 << 1) 86 - 87 - #endif /* AMBA_CLCD_REGS_H */