Skip to content

Commit 1d4eff8

Browse files
committed
drm/meson: add Amlogic Video FBC registers
Add the registers of the VPU VD1 Amlogic FBC decoder module, and routing register. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Tested-by: Kevin Hilman <khilman@baylibre.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200703080728.25207-3-narmstrong@baylibre.com
1 parent d6528ec commit 1d4eff8

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

‎drivers/gpu/drm/meson/meson_registers.h‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,15 @@
144144
#define VIU_SW_RESET_OSD1 BIT(0)
145145
#define VIU_MISC_CTRL0 0x1a06
146146
#define VIU_CTRL0_VD1_AFBC_MASK 0x170000
147+
#define VIU_CTRL0_AFBC_TO_VD1 BIT(20)
147148
#define VIU_MISC_CTRL1 0x1a07
148149
#define MALI_AFBC_MISC GENMASK(15, 8)
149150
#define D2D3_INTF_LENGTH 0x1a08
150151
#define D2D3_INTF_CTRL0 0x1a09
152+
#define VD1_AFBCD0_MISC_CTRL 0x1a0a
153+
#define VD1_AXI_SEL_AFBC (1 << 12)
154+
#define AFBC_VD1_SEL (1 << 10)
155+
#define VD2_AFBCD1_MISC_CTRL 0x1a0b
151156
#define VIU_OSD1_CTRL_STAT 0x1a10
152157
#define VIU_OSD1_OSD_BLK_ENABLE BIT(0)
153158
#define VIU_OSD1_OSD_MEM_MODE_LINEAR BIT(2)
@@ -365,6 +370,23 @@
365370
#define VIU_OSD1_OETF_LUT_ADDR_PORT 0x1add
366371
#define VIU_OSD1_OETF_LUT_DATA_PORT 0x1ade
367372
#define AFBC_ENABLE 0x1ae0
373+
#define AFBC_MODE 0x1ae1
374+
#define AFBC_SIZE_IN 0x1ae2
375+
#define AFBC_DEC_DEF_COLOR 0x1ae3
376+
#define AFBC_CONV_CTRL 0x1ae4
377+
#define AFBC_LBUF_DEPTH 0x1ae5
378+
#define AFBC_HEAD_BADDR 0x1ae6
379+
#define AFBC_BODY_BADDR 0x1ae7
380+
#define AFBC_SIZE_OUT 0x1ae8
381+
#define AFBC_OUT_YSCOPE 0x1ae9
382+
#define AFBC_STAT 0x1aea
383+
#define AFBC_VD_CFMT_CTRL 0x1aeb
384+
#define AFBC_VD_CFMT_W 0x1aec
385+
#define AFBC_MIF_HOR_SCOPE 0x1aed
386+
#define AFBC_MIF_VER_SCOPE 0x1aee
387+
#define AFBC_PIXEL_HOR_SCOPE 0x1aef
388+
#define AFBC_PIXEL_VER_SCOPE 0x1af0
389+
#define AFBC_VD_CFMT_H 0x1af1
368390

369391
/* vpp */
370392
#define VPP_DUMMY_DATA 0x1d00

0 commit comments

Comments
 (0)