18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Freescale PXP Register Definitions 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * based on pxp_dma_v3.h, Xml Revision: 1.77, Template Revision: 1.3 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright 2014-2015 Freescale Semiconductor, Inc. All Rights Reserved. 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#ifndef __IMX_PXP_H__ 118c2ecf20Sopenharmony_ci#define __IMX_PXP_H__ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define HW_PXP_CTRL (0x00000000) 148c2ecf20Sopenharmony_ci#define HW_PXP_CTRL_SET (0x00000004) 158c2ecf20Sopenharmony_ci#define HW_PXP_CTRL_CLR (0x00000008) 168c2ecf20Sopenharmony_ci#define HW_PXP_CTRL_TOG (0x0000000c) 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_SFTRST 0x80000000 198c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_SFTRST(v) \ 208c2ecf20Sopenharmony_ci (((v) << 31) & BM_PXP_CTRL_SFTRST) 218c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_CLKGATE 0x40000000 228c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_CLKGATE(v) \ 238c2ecf20Sopenharmony_ci (((v) << 30) & BM_PXP_CTRL_CLKGATE) 248c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_RSVD4 0x20000000 258c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_RSVD4(v) \ 268c2ecf20Sopenharmony_ci (((v) << 29) & BM_PXP_CTRL_RSVD4) 278c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_EN_REPEAT 0x10000000 288c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_EN_REPEAT(v) \ 298c2ecf20Sopenharmony_ci (((v) << 28) & BM_PXP_CTRL_EN_REPEAT) 308c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_ROTATE1 0x08000000 318c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_ROTATE1(v) \ 328c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_CTRL_ENABLE_ROTATE1) 338c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_ROTATE0 0x04000000 348c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_ROTATE0(v) \ 358c2ecf20Sopenharmony_ci (((v) << 26) & BM_PXP_CTRL_ENABLE_ROTATE0) 368c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_LUT 0x02000000 378c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_LUT(v) \ 388c2ecf20Sopenharmony_ci (((v) << 25) & BM_PXP_CTRL_ENABLE_LUT) 398c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_CSC2 0x01000000 408c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_CSC2(v) \ 418c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_CTRL_ENABLE_CSC2) 428c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_BLOCK_SIZE 0x00800000 438c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_BLOCK_SIZE(v) \ 448c2ecf20Sopenharmony_ci (((v) << 23) & BM_PXP_CTRL_BLOCK_SIZE) 458c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_BLOCK_SIZE__8X8 0x0 468c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_BLOCK_SIZE__16X16 0x1 478c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_RSVD1 0x00400000 488c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_RSVD1(v) \ 498c2ecf20Sopenharmony_ci (((v) << 22) & BM_PXP_CTRL_RSVD1) 508c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_ALPHA_B 0x00200000 518c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_ALPHA_B(v) \ 528c2ecf20Sopenharmony_ci (((v) << 21) & BM_PXP_CTRL_ENABLE_ALPHA_B) 538c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_INPUT_FETCH_STORE 0x00100000 548c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_INPUT_FETCH_STORE(v) \ 558c2ecf20Sopenharmony_ci (((v) << 20) & BM_PXP_CTRL_ENABLE_INPUT_FETCH_STORE) 568c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_WFE_B 0x00080000 578c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_WFE_B(v) \ 588c2ecf20Sopenharmony_ci (((v) << 19) & BM_PXP_CTRL_ENABLE_WFE_B) 598c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_WFE_A 0x00040000 608c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_WFE_A(v) \ 618c2ecf20Sopenharmony_ci (((v) << 18) & BM_PXP_CTRL_ENABLE_WFE_A) 628c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_DITHER 0x00020000 638c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_DITHER(v) \ 648c2ecf20Sopenharmony_ci (((v) << 17) & BM_PXP_CTRL_ENABLE_DITHER) 658c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_PS_AS_OUT 0x00010000 668c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_PS_AS_OUT(v) \ 678c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CTRL_ENABLE_PS_AS_OUT) 688c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_VFLIP1 0x00008000 698c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_VFLIP1(v) \ 708c2ecf20Sopenharmony_ci (((v) << 15) & BM_PXP_CTRL_VFLIP1) 718c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_HFLIP1 0x00004000 728c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_HFLIP1(v) \ 738c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_CTRL_HFLIP1) 748c2ecf20Sopenharmony_ci#define BP_PXP_CTRL_ROTATE1 12 758c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ROTATE1 0x00003000 768c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ROTATE1(v) \ 778c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_CTRL_ROTATE1) 788c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_ROTATE1__ROT_0 0x0 798c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_ROTATE1__ROT_90 0x1 808c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_ROTATE1__ROT_180 0x2 818c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_ROTATE1__ROT_270 0x3 828c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_VFLIP0 0x00000800 838c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_VFLIP0(v) \ 848c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CTRL_VFLIP0) 858c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_HFLIP0 0x00000400 868c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_HFLIP0(v) \ 878c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_CTRL_HFLIP0) 888c2ecf20Sopenharmony_ci#define BP_PXP_CTRL_ROTATE0 8 898c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ROTATE0 0x00000300 908c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ROTATE0(v) \ 918c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_CTRL_ROTATE0) 928c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_ROTATE0__ROT_0 0x0 938c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_ROTATE0__ROT_90 0x1 948c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_ROTATE0__ROT_180 0x2 958c2ecf20Sopenharmony_ci#define BV_PXP_CTRL_ROTATE0__ROT_270 0x3 968c2ecf20Sopenharmony_ci#define BP_PXP_CTRL_RSVD0 6 978c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_RSVD0 0x000000C0 988c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_RSVD0(v) \ 998c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_CTRL_RSVD0) 1008c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_HANDSHAKE_ABORT_SKIP 0x00000020 1018c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_HANDSHAKE_ABORT_SKIP(v) \ 1028c2ecf20Sopenharmony_ci (((v) << 5) & BM_PXP_CTRL_HANDSHAKE_ABORT_SKIP) 1038c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE_LCD0_HANDSHAKE 0x00000010 1048c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE_LCD0_HANDSHAKE(v) \ 1058c2ecf20Sopenharmony_ci (((v) << 4) & BM_PXP_CTRL_ENABLE_LCD0_HANDSHAKE) 1068c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_LUT_DMA_IRQ_ENABLE 0x00000008 1078c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_LUT_DMA_IRQ_ENABLE(v) \ 1088c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_CTRL_LUT_DMA_IRQ_ENABLE) 1098c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_NEXT_IRQ_ENABLE 0x00000004 1108c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_NEXT_IRQ_ENABLE(v) \ 1118c2ecf20Sopenharmony_ci (((v) << 2) & BM_PXP_CTRL_NEXT_IRQ_ENABLE) 1128c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_IRQ_ENABLE 0x00000002 1138c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_IRQ_ENABLE(v) \ 1148c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_CTRL_IRQ_ENABLE) 1158c2ecf20Sopenharmony_ci#define BM_PXP_CTRL_ENABLE 0x00000001 1168c2ecf20Sopenharmony_ci#define BF_PXP_CTRL_ENABLE(v) \ 1178c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CTRL_ENABLE) 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_ci#define HW_PXP_STAT (0x00000010) 1208c2ecf20Sopenharmony_ci#define HW_PXP_STAT_SET (0x00000014) 1218c2ecf20Sopenharmony_ci#define HW_PXP_STAT_CLR (0x00000018) 1228c2ecf20Sopenharmony_ci#define HW_PXP_STAT_TOG (0x0000001c) 1238c2ecf20Sopenharmony_ci 1248c2ecf20Sopenharmony_ci#define BP_PXP_STAT_BLOCKX 24 1258c2ecf20Sopenharmony_ci#define BM_PXP_STAT_BLOCKX 0xFF000000 1268c2ecf20Sopenharmony_ci#define BF_PXP_STAT_BLOCKX(v) \ 1278c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_STAT_BLOCKX) 1288c2ecf20Sopenharmony_ci#define BP_PXP_STAT_BLOCKY 16 1298c2ecf20Sopenharmony_ci#define BM_PXP_STAT_BLOCKY 0x00FF0000 1308c2ecf20Sopenharmony_ci#define BF_PXP_STAT_BLOCKY(v) \ 1318c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_STAT_BLOCKY) 1328c2ecf20Sopenharmony_ci#define BP_PXP_STAT_AXI_ERROR_ID_1 12 1338c2ecf20Sopenharmony_ci#define BM_PXP_STAT_AXI_ERROR_ID_1 0x0000F000 1348c2ecf20Sopenharmony_ci#define BF_PXP_STAT_AXI_ERROR_ID_1(v) \ 1358c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_STAT_AXI_ERROR_ID_1) 1368c2ecf20Sopenharmony_ci#define BM_PXP_STAT_RSVD2 0x00000800 1378c2ecf20Sopenharmony_ci#define BF_PXP_STAT_RSVD2(v) \ 1388c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_STAT_RSVD2) 1398c2ecf20Sopenharmony_ci#define BM_PXP_STAT_AXI_READ_ERROR_1 0x00000400 1408c2ecf20Sopenharmony_ci#define BF_PXP_STAT_AXI_READ_ERROR_1(v) \ 1418c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_STAT_AXI_READ_ERROR_1) 1428c2ecf20Sopenharmony_ci#define BM_PXP_STAT_AXI_WRITE_ERROR_1 0x00000200 1438c2ecf20Sopenharmony_ci#define BF_PXP_STAT_AXI_WRITE_ERROR_1(v) \ 1448c2ecf20Sopenharmony_ci (((v) << 9) & BM_PXP_STAT_AXI_WRITE_ERROR_1) 1458c2ecf20Sopenharmony_ci#define BM_PXP_STAT_LUT_DMA_LOAD_DONE_IRQ 0x00000100 1468c2ecf20Sopenharmony_ci#define BF_PXP_STAT_LUT_DMA_LOAD_DONE_IRQ(v) \ 1478c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_STAT_LUT_DMA_LOAD_DONE_IRQ) 1488c2ecf20Sopenharmony_ci#define BP_PXP_STAT_AXI_ERROR_ID_0 4 1498c2ecf20Sopenharmony_ci#define BM_PXP_STAT_AXI_ERROR_ID_0 0x000000F0 1508c2ecf20Sopenharmony_ci#define BF_PXP_STAT_AXI_ERROR_ID_0(v) \ 1518c2ecf20Sopenharmony_ci (((v) << 4) & BM_PXP_STAT_AXI_ERROR_ID_0) 1528c2ecf20Sopenharmony_ci#define BM_PXP_STAT_NEXT_IRQ 0x00000008 1538c2ecf20Sopenharmony_ci#define BF_PXP_STAT_NEXT_IRQ(v) \ 1548c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_STAT_NEXT_IRQ) 1558c2ecf20Sopenharmony_ci#define BM_PXP_STAT_AXI_READ_ERROR_0 0x00000004 1568c2ecf20Sopenharmony_ci#define BF_PXP_STAT_AXI_READ_ERROR_0(v) \ 1578c2ecf20Sopenharmony_ci (((v) << 2) & BM_PXP_STAT_AXI_READ_ERROR_0) 1588c2ecf20Sopenharmony_ci#define BM_PXP_STAT_AXI_WRITE_ERROR_0 0x00000002 1598c2ecf20Sopenharmony_ci#define BF_PXP_STAT_AXI_WRITE_ERROR_0(v) \ 1608c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_STAT_AXI_WRITE_ERROR_0) 1618c2ecf20Sopenharmony_ci#define BM_PXP_STAT_IRQ0 0x00000001 1628c2ecf20Sopenharmony_ci#define BF_PXP_STAT_IRQ0(v) \ 1638c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_STAT_IRQ0) 1648c2ecf20Sopenharmony_ci 1658c2ecf20Sopenharmony_ci#define HW_PXP_OUT_CTRL (0x00000020) 1668c2ecf20Sopenharmony_ci#define HW_PXP_OUT_CTRL_SET (0x00000024) 1678c2ecf20Sopenharmony_ci#define HW_PXP_OUT_CTRL_CLR (0x00000028) 1688c2ecf20Sopenharmony_ci#define HW_PXP_OUT_CTRL_TOG (0x0000002c) 1698c2ecf20Sopenharmony_ci 1708c2ecf20Sopenharmony_ci#define BP_PXP_OUT_CTRL_ALPHA 24 1718c2ecf20Sopenharmony_ci#define BM_PXP_OUT_CTRL_ALPHA 0xFF000000 1728c2ecf20Sopenharmony_ci#define BF_PXP_OUT_CTRL_ALPHA(v) \ 1738c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_OUT_CTRL_ALPHA) 1748c2ecf20Sopenharmony_ci#define BM_PXP_OUT_CTRL_ALPHA_OUTPUT 0x00800000 1758c2ecf20Sopenharmony_ci#define BF_PXP_OUT_CTRL_ALPHA_OUTPUT(v) \ 1768c2ecf20Sopenharmony_ci (((v) << 23) & BM_PXP_OUT_CTRL_ALPHA_OUTPUT) 1778c2ecf20Sopenharmony_ci#define BP_PXP_OUT_CTRL_RSVD1 10 1788c2ecf20Sopenharmony_ci#define BM_PXP_OUT_CTRL_RSVD1 0x007FFC00 1798c2ecf20Sopenharmony_ci#define BF_PXP_OUT_CTRL_RSVD1(v) \ 1808c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_OUT_CTRL_RSVD1) 1818c2ecf20Sopenharmony_ci#define BP_PXP_OUT_CTRL_INTERLACED_OUTPUT 8 1828c2ecf20Sopenharmony_ci#define BM_PXP_OUT_CTRL_INTERLACED_OUTPUT 0x00000300 1838c2ecf20Sopenharmony_ci#define BF_PXP_OUT_CTRL_INTERLACED_OUTPUT(v) \ 1848c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_OUT_CTRL_INTERLACED_OUTPUT) 1858c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_INTERLACED_OUTPUT__PROGRESSIVE 0x0 1868c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_INTERLACED_OUTPUT__FIELD0 0x1 1878c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_INTERLACED_OUTPUT__FIELD1 0x2 1888c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_INTERLACED_OUTPUT__INTERLACED 0x3 1898c2ecf20Sopenharmony_ci#define BP_PXP_OUT_CTRL_RSVD0 5 1908c2ecf20Sopenharmony_ci#define BM_PXP_OUT_CTRL_RSVD0 0x000000E0 1918c2ecf20Sopenharmony_ci#define BF_PXP_OUT_CTRL_RSVD0(v) \ 1928c2ecf20Sopenharmony_ci (((v) << 5) & BM_PXP_OUT_CTRL_RSVD0) 1938c2ecf20Sopenharmony_ci#define BP_PXP_OUT_CTRL_FORMAT 0 1948c2ecf20Sopenharmony_ci#define BM_PXP_OUT_CTRL_FORMAT 0x0000001F 1958c2ecf20Sopenharmony_ci#define BF_PXP_OUT_CTRL_FORMAT(v) \ 1968c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_OUT_CTRL_FORMAT) 1978c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__ARGB8888 0x0 1988c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__RGB888 0x4 1998c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__RGB888P 0x5 2008c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__ARGB1555 0x8 2018c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__ARGB4444 0x9 2028c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__RGB555 0xC 2038c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__RGB444 0xD 2048c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__RGB565 0xE 2058c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__YUV1P444 0x10 2068c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__UYVY1P422 0x12 2078c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__VYUY1P422 0x13 2088c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__Y8 0x14 2098c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__Y4 0x15 2108c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__YUV2P422 0x18 2118c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__YUV2P420 0x19 2128c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__YVU2P422 0x1A 2138c2ecf20Sopenharmony_ci#define BV_PXP_OUT_CTRL_FORMAT__YVU2P420 0x1B 2148c2ecf20Sopenharmony_ci 2158c2ecf20Sopenharmony_ci#define HW_PXP_OUT_BUF (0x00000030) 2168c2ecf20Sopenharmony_ci 2178c2ecf20Sopenharmony_ci#define BP_PXP_OUT_BUF_ADDR 0 2188c2ecf20Sopenharmony_ci#define BM_PXP_OUT_BUF_ADDR 0xFFFFFFFF 2198c2ecf20Sopenharmony_ci#define BF_PXP_OUT_BUF_ADDR(v) (v) 2208c2ecf20Sopenharmony_ci 2218c2ecf20Sopenharmony_ci#define HW_PXP_OUT_BUF2 (0x00000040) 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ci#define BP_PXP_OUT_BUF2_ADDR 0 2248c2ecf20Sopenharmony_ci#define BM_PXP_OUT_BUF2_ADDR 0xFFFFFFFF 2258c2ecf20Sopenharmony_ci#define BF_PXP_OUT_BUF2_ADDR(v) (v) 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci#define HW_PXP_OUT_PITCH (0x00000050) 2288c2ecf20Sopenharmony_ci 2298c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PITCH_RSVD 16 2308c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PITCH_RSVD 0xFFFF0000 2318c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PITCH_RSVD(v) \ 2328c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_OUT_PITCH_RSVD) 2338c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PITCH_PITCH 0 2348c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PITCH_PITCH 0x0000FFFF 2358c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PITCH_PITCH(v) \ 2368c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_OUT_PITCH_PITCH) 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ci#define HW_PXP_OUT_LRC (0x00000060) 2398c2ecf20Sopenharmony_ci 2408c2ecf20Sopenharmony_ci#define BP_PXP_OUT_LRC_RSVD1 30 2418c2ecf20Sopenharmony_ci#define BM_PXP_OUT_LRC_RSVD1 0xC0000000 2428c2ecf20Sopenharmony_ci#define BF_PXP_OUT_LRC_RSVD1(v) \ 2438c2ecf20Sopenharmony_ci (((v) << 30) & BM_PXP_OUT_LRC_RSVD1) 2448c2ecf20Sopenharmony_ci#define BP_PXP_OUT_LRC_X 16 2458c2ecf20Sopenharmony_ci#define BM_PXP_OUT_LRC_X 0x3FFF0000 2468c2ecf20Sopenharmony_ci#define BF_PXP_OUT_LRC_X(v) \ 2478c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_OUT_LRC_X) 2488c2ecf20Sopenharmony_ci#define BP_PXP_OUT_LRC_RSVD0 14 2498c2ecf20Sopenharmony_ci#define BM_PXP_OUT_LRC_RSVD0 0x0000C000 2508c2ecf20Sopenharmony_ci#define BF_PXP_OUT_LRC_RSVD0(v) \ 2518c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_OUT_LRC_RSVD0) 2528c2ecf20Sopenharmony_ci#define BP_PXP_OUT_LRC_Y 0 2538c2ecf20Sopenharmony_ci#define BM_PXP_OUT_LRC_Y 0x00003FFF 2548c2ecf20Sopenharmony_ci#define BF_PXP_OUT_LRC_Y(v) \ 2558c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_OUT_LRC_Y) 2568c2ecf20Sopenharmony_ci 2578c2ecf20Sopenharmony_ci#define HW_PXP_OUT_PS_ULC (0x00000070) 2588c2ecf20Sopenharmony_ci 2598c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PS_ULC_RSVD1 30 2608c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PS_ULC_RSVD1 0xC0000000 2618c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PS_ULC_RSVD1(v) \ 2628c2ecf20Sopenharmony_ci (((v) << 30) & BM_PXP_OUT_PS_ULC_RSVD1) 2638c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PS_ULC_X 16 2648c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PS_ULC_X 0x3FFF0000 2658c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PS_ULC_X(v) \ 2668c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_OUT_PS_ULC_X) 2678c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PS_ULC_RSVD0 14 2688c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PS_ULC_RSVD0 0x0000C000 2698c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PS_ULC_RSVD0(v) \ 2708c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_OUT_PS_ULC_RSVD0) 2718c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PS_ULC_Y 0 2728c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PS_ULC_Y 0x00003FFF 2738c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PS_ULC_Y(v) \ 2748c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_OUT_PS_ULC_Y) 2758c2ecf20Sopenharmony_ci 2768c2ecf20Sopenharmony_ci#define HW_PXP_OUT_PS_LRC (0x00000080) 2778c2ecf20Sopenharmony_ci 2788c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PS_LRC_RSVD1 30 2798c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PS_LRC_RSVD1 0xC0000000 2808c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PS_LRC_RSVD1(v) \ 2818c2ecf20Sopenharmony_ci (((v) << 30) & BM_PXP_OUT_PS_LRC_RSVD1) 2828c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PS_LRC_X 16 2838c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PS_LRC_X 0x3FFF0000 2848c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PS_LRC_X(v) \ 2858c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_OUT_PS_LRC_X) 2868c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PS_LRC_RSVD0 14 2878c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PS_LRC_RSVD0 0x0000C000 2888c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PS_LRC_RSVD0(v) \ 2898c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_OUT_PS_LRC_RSVD0) 2908c2ecf20Sopenharmony_ci#define BP_PXP_OUT_PS_LRC_Y 0 2918c2ecf20Sopenharmony_ci#define BM_PXP_OUT_PS_LRC_Y 0x00003FFF 2928c2ecf20Sopenharmony_ci#define BF_PXP_OUT_PS_LRC_Y(v) \ 2938c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_OUT_PS_LRC_Y) 2948c2ecf20Sopenharmony_ci 2958c2ecf20Sopenharmony_ci#define HW_PXP_OUT_AS_ULC (0x00000090) 2968c2ecf20Sopenharmony_ci 2978c2ecf20Sopenharmony_ci#define BP_PXP_OUT_AS_ULC_RSVD1 30 2988c2ecf20Sopenharmony_ci#define BM_PXP_OUT_AS_ULC_RSVD1 0xC0000000 2998c2ecf20Sopenharmony_ci#define BF_PXP_OUT_AS_ULC_RSVD1(v) \ 3008c2ecf20Sopenharmony_ci (((v) << 30) & BM_PXP_OUT_AS_ULC_RSVD1) 3018c2ecf20Sopenharmony_ci#define BP_PXP_OUT_AS_ULC_X 16 3028c2ecf20Sopenharmony_ci#define BM_PXP_OUT_AS_ULC_X 0x3FFF0000 3038c2ecf20Sopenharmony_ci#define BF_PXP_OUT_AS_ULC_X(v) \ 3048c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_OUT_AS_ULC_X) 3058c2ecf20Sopenharmony_ci#define BP_PXP_OUT_AS_ULC_RSVD0 14 3068c2ecf20Sopenharmony_ci#define BM_PXP_OUT_AS_ULC_RSVD0 0x0000C000 3078c2ecf20Sopenharmony_ci#define BF_PXP_OUT_AS_ULC_RSVD0(v) \ 3088c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_OUT_AS_ULC_RSVD0) 3098c2ecf20Sopenharmony_ci#define BP_PXP_OUT_AS_ULC_Y 0 3108c2ecf20Sopenharmony_ci#define BM_PXP_OUT_AS_ULC_Y 0x00003FFF 3118c2ecf20Sopenharmony_ci#define BF_PXP_OUT_AS_ULC_Y(v) \ 3128c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_OUT_AS_ULC_Y) 3138c2ecf20Sopenharmony_ci 3148c2ecf20Sopenharmony_ci#define HW_PXP_OUT_AS_LRC (0x000000a0) 3158c2ecf20Sopenharmony_ci 3168c2ecf20Sopenharmony_ci#define BP_PXP_OUT_AS_LRC_RSVD1 30 3178c2ecf20Sopenharmony_ci#define BM_PXP_OUT_AS_LRC_RSVD1 0xC0000000 3188c2ecf20Sopenharmony_ci#define BF_PXP_OUT_AS_LRC_RSVD1(v) \ 3198c2ecf20Sopenharmony_ci (((v) << 30) & BM_PXP_OUT_AS_LRC_RSVD1) 3208c2ecf20Sopenharmony_ci#define BP_PXP_OUT_AS_LRC_X 16 3218c2ecf20Sopenharmony_ci#define BM_PXP_OUT_AS_LRC_X 0x3FFF0000 3228c2ecf20Sopenharmony_ci#define BF_PXP_OUT_AS_LRC_X(v) \ 3238c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_OUT_AS_LRC_X) 3248c2ecf20Sopenharmony_ci#define BP_PXP_OUT_AS_LRC_RSVD0 14 3258c2ecf20Sopenharmony_ci#define BM_PXP_OUT_AS_LRC_RSVD0 0x0000C000 3268c2ecf20Sopenharmony_ci#define BF_PXP_OUT_AS_LRC_RSVD0(v) \ 3278c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_OUT_AS_LRC_RSVD0) 3288c2ecf20Sopenharmony_ci#define BP_PXP_OUT_AS_LRC_Y 0 3298c2ecf20Sopenharmony_ci#define BM_PXP_OUT_AS_LRC_Y 0x00003FFF 3308c2ecf20Sopenharmony_ci#define BF_PXP_OUT_AS_LRC_Y(v) \ 3318c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_OUT_AS_LRC_Y) 3328c2ecf20Sopenharmony_ci 3338c2ecf20Sopenharmony_ci#define HW_PXP_PS_CTRL (0x000000b0) 3348c2ecf20Sopenharmony_ci#define HW_PXP_PS_CTRL_SET (0x000000b4) 3358c2ecf20Sopenharmony_ci#define HW_PXP_PS_CTRL_CLR (0x000000b8) 3368c2ecf20Sopenharmony_ci#define HW_PXP_PS_CTRL_TOG (0x000000bc) 3378c2ecf20Sopenharmony_ci 3388c2ecf20Sopenharmony_ci#define BP_PXP_PS_CTRL_RSVD1 12 3398c2ecf20Sopenharmony_ci#define BM_PXP_PS_CTRL_RSVD1 0xFFFFF000 3408c2ecf20Sopenharmony_ci#define BF_PXP_PS_CTRL_RSVD1(v) \ 3418c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_PS_CTRL_RSVD1) 3428c2ecf20Sopenharmony_ci#define BP_PXP_PS_CTRL_DECX 10 3438c2ecf20Sopenharmony_ci#define BM_PXP_PS_CTRL_DECX 0x00000C00 3448c2ecf20Sopenharmony_ci#define BF_PXP_PS_CTRL_DECX(v) \ 3458c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_PS_CTRL_DECX) 3468c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_DECX__DISABLE 0x0 3478c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_DECX__DECX2 0x1 3488c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_DECX__DECX4 0x2 3498c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_DECX__DECX8 0x3 3508c2ecf20Sopenharmony_ci#define BP_PXP_PS_CTRL_DECY 8 3518c2ecf20Sopenharmony_ci#define BM_PXP_PS_CTRL_DECY 0x00000300 3528c2ecf20Sopenharmony_ci#define BF_PXP_PS_CTRL_DECY(v) \ 3538c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_PS_CTRL_DECY) 3548c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_DECY__DISABLE 0x0 3558c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_DECY__DECY2 0x1 3568c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_DECY__DECY4 0x2 3578c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_DECY__DECY8 0x3 3588c2ecf20Sopenharmony_ci#define BM_PXP_PS_CTRL_RSVD0 0x00000080 3598c2ecf20Sopenharmony_ci#define BF_PXP_PS_CTRL_RSVD0(v) \ 3608c2ecf20Sopenharmony_ci (((v) << 7) & BM_PXP_PS_CTRL_RSVD0) 3618c2ecf20Sopenharmony_ci#define BM_PXP_PS_CTRL_WB_SWAP 0x00000040 3628c2ecf20Sopenharmony_ci#define BF_PXP_PS_CTRL_WB_SWAP(v) \ 3638c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_PS_CTRL_WB_SWAP) 3648c2ecf20Sopenharmony_ci#define BP_PXP_PS_CTRL_FORMAT 0 3658c2ecf20Sopenharmony_ci#define BM_PXP_PS_CTRL_FORMAT 0x0000003F 3668c2ecf20Sopenharmony_ci#define BF_PXP_PS_CTRL_FORMAT(v) \ 3678c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_CTRL_FORMAT) 3688c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__RGB888 0x4 3698c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__RGB555 0xC 3708c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__RGB444 0xD 3718c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__RGB565 0xE 3728c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__YUV1P444 0x10 3738c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__UYVY1P422 0x12 3748c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__VYUY1P422 0x13 3758c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__Y8 0x14 3768c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__Y4 0x15 3778c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__YUV2P422 0x18 3788c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__YUV2P420 0x19 3798c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__YVU2P422 0x1A 3808c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__YVU2P420 0x1B 3818c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__YUV422 0x1E 3828c2ecf20Sopenharmony_ci#define BV_PXP_PS_CTRL_FORMAT__YUV420 0x1F 3838c2ecf20Sopenharmony_ci 3848c2ecf20Sopenharmony_ci#define HW_PXP_PS_BUF (0x000000c0) 3858c2ecf20Sopenharmony_ci 3868c2ecf20Sopenharmony_ci#define BP_PXP_PS_BUF_ADDR 0 3878c2ecf20Sopenharmony_ci#define BM_PXP_PS_BUF_ADDR 0xFFFFFFFF 3888c2ecf20Sopenharmony_ci#define BF_PXP_PS_BUF_ADDR(v) (v) 3898c2ecf20Sopenharmony_ci 3908c2ecf20Sopenharmony_ci#define HW_PXP_PS_UBUF (0x000000d0) 3918c2ecf20Sopenharmony_ci 3928c2ecf20Sopenharmony_ci#define BP_PXP_PS_UBUF_ADDR 0 3938c2ecf20Sopenharmony_ci#define BM_PXP_PS_UBUF_ADDR 0xFFFFFFFF 3948c2ecf20Sopenharmony_ci#define BF_PXP_PS_UBUF_ADDR(v) (v) 3958c2ecf20Sopenharmony_ci 3968c2ecf20Sopenharmony_ci#define HW_PXP_PS_VBUF (0x000000e0) 3978c2ecf20Sopenharmony_ci 3988c2ecf20Sopenharmony_ci#define BP_PXP_PS_VBUF_ADDR 0 3998c2ecf20Sopenharmony_ci#define BM_PXP_PS_VBUF_ADDR 0xFFFFFFFF 4008c2ecf20Sopenharmony_ci#define BF_PXP_PS_VBUF_ADDR(v) (v) 4018c2ecf20Sopenharmony_ci 4028c2ecf20Sopenharmony_ci#define HW_PXP_PS_PITCH (0x000000f0) 4038c2ecf20Sopenharmony_ci 4048c2ecf20Sopenharmony_ci#define BP_PXP_PS_PITCH_RSVD 16 4058c2ecf20Sopenharmony_ci#define BM_PXP_PS_PITCH_RSVD 0xFFFF0000 4068c2ecf20Sopenharmony_ci#define BF_PXP_PS_PITCH_RSVD(v) \ 4078c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_PS_PITCH_RSVD) 4088c2ecf20Sopenharmony_ci#define BP_PXP_PS_PITCH_PITCH 0 4098c2ecf20Sopenharmony_ci#define BM_PXP_PS_PITCH_PITCH 0x0000FFFF 4108c2ecf20Sopenharmony_ci#define BF_PXP_PS_PITCH_PITCH(v) \ 4118c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_PITCH_PITCH) 4128c2ecf20Sopenharmony_ci 4138c2ecf20Sopenharmony_ci#define HW_PXP_PS_BACKGROUND_0 (0x00000100) 4148c2ecf20Sopenharmony_ci 4158c2ecf20Sopenharmony_ci#define BP_PXP_PS_BACKGROUND_0_RSVD 24 4168c2ecf20Sopenharmony_ci#define BM_PXP_PS_BACKGROUND_0_RSVD 0xFF000000 4178c2ecf20Sopenharmony_ci#define BF_PXP_PS_BACKGROUND_0_RSVD(v) \ 4188c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_PS_BACKGROUND_0_RSVD) 4198c2ecf20Sopenharmony_ci#define BP_PXP_PS_BACKGROUND_0_COLOR 0 4208c2ecf20Sopenharmony_ci#define BM_PXP_PS_BACKGROUND_0_COLOR 0x00FFFFFF 4218c2ecf20Sopenharmony_ci#define BF_PXP_PS_BACKGROUND_0_COLOR(v) \ 4228c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_BACKGROUND_0_COLOR) 4238c2ecf20Sopenharmony_ci 4248c2ecf20Sopenharmony_ci#define HW_PXP_PS_SCALE (0x00000110) 4258c2ecf20Sopenharmony_ci 4268c2ecf20Sopenharmony_ci#define BM_PXP_PS_SCALE_RSVD2 0x80000000 4278c2ecf20Sopenharmony_ci#define BF_PXP_PS_SCALE_RSVD2(v) \ 4288c2ecf20Sopenharmony_ci (((v) << 31) & BM_PXP_PS_SCALE_RSVD2) 4298c2ecf20Sopenharmony_ci#define BP_PXP_PS_SCALE_YSCALE 16 4308c2ecf20Sopenharmony_ci#define BM_PXP_PS_SCALE_YSCALE 0x7FFF0000 4318c2ecf20Sopenharmony_ci#define BF_PXP_PS_SCALE_YSCALE(v) \ 4328c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_PS_SCALE_YSCALE) 4338c2ecf20Sopenharmony_ci#define BM_PXP_PS_SCALE_RSVD1 0x00008000 4348c2ecf20Sopenharmony_ci#define BF_PXP_PS_SCALE_RSVD1(v) \ 4358c2ecf20Sopenharmony_ci (((v) << 15) & BM_PXP_PS_SCALE_RSVD1) 4368c2ecf20Sopenharmony_ci#define BP_PXP_PS_SCALE_XSCALE 0 4378c2ecf20Sopenharmony_ci#define BM_PXP_PS_SCALE_XSCALE 0x00007FFF 4388c2ecf20Sopenharmony_ci#define BF_PXP_PS_SCALE_XSCALE(v) \ 4398c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_SCALE_XSCALE) 4408c2ecf20Sopenharmony_ci 4418c2ecf20Sopenharmony_ci#define HW_PXP_PS_OFFSET (0x00000120) 4428c2ecf20Sopenharmony_ci 4438c2ecf20Sopenharmony_ci#define BP_PXP_PS_OFFSET_RSVD2 28 4448c2ecf20Sopenharmony_ci#define BM_PXP_PS_OFFSET_RSVD2 0xF0000000 4458c2ecf20Sopenharmony_ci#define BF_PXP_PS_OFFSET_RSVD2(v) \ 4468c2ecf20Sopenharmony_ci (((v) << 28) & BM_PXP_PS_OFFSET_RSVD2) 4478c2ecf20Sopenharmony_ci#define BP_PXP_PS_OFFSET_YOFFSET 16 4488c2ecf20Sopenharmony_ci#define BM_PXP_PS_OFFSET_YOFFSET 0x0FFF0000 4498c2ecf20Sopenharmony_ci#define BF_PXP_PS_OFFSET_YOFFSET(v) \ 4508c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_PS_OFFSET_YOFFSET) 4518c2ecf20Sopenharmony_ci#define BP_PXP_PS_OFFSET_RSVD1 12 4528c2ecf20Sopenharmony_ci#define BM_PXP_PS_OFFSET_RSVD1 0x0000F000 4538c2ecf20Sopenharmony_ci#define BF_PXP_PS_OFFSET_RSVD1(v) \ 4548c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_PS_OFFSET_RSVD1) 4558c2ecf20Sopenharmony_ci#define BP_PXP_PS_OFFSET_XOFFSET 0 4568c2ecf20Sopenharmony_ci#define BM_PXP_PS_OFFSET_XOFFSET 0x00000FFF 4578c2ecf20Sopenharmony_ci#define BF_PXP_PS_OFFSET_XOFFSET(v) \ 4588c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_OFFSET_XOFFSET) 4598c2ecf20Sopenharmony_ci 4608c2ecf20Sopenharmony_ci#define HW_PXP_PS_CLRKEYLOW_0 (0x00000130) 4618c2ecf20Sopenharmony_ci 4628c2ecf20Sopenharmony_ci#define BP_PXP_PS_CLRKEYLOW_0_RSVD1 24 4638c2ecf20Sopenharmony_ci#define BM_PXP_PS_CLRKEYLOW_0_RSVD1 0xFF000000 4648c2ecf20Sopenharmony_ci#define BF_PXP_PS_CLRKEYLOW_0_RSVD1(v) \ 4658c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_PS_CLRKEYLOW_0_RSVD1) 4668c2ecf20Sopenharmony_ci#define BP_PXP_PS_CLRKEYLOW_0_PIXEL 0 4678c2ecf20Sopenharmony_ci#define BM_PXP_PS_CLRKEYLOW_0_PIXEL 0x00FFFFFF 4688c2ecf20Sopenharmony_ci#define BF_PXP_PS_CLRKEYLOW_0_PIXEL(v) \ 4698c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_CLRKEYLOW_0_PIXEL) 4708c2ecf20Sopenharmony_ci 4718c2ecf20Sopenharmony_ci#define HW_PXP_PS_CLRKEYHIGH_0 (0x00000140) 4728c2ecf20Sopenharmony_ci 4738c2ecf20Sopenharmony_ci#define BP_PXP_PS_CLRKEYHIGH_0_RSVD1 24 4748c2ecf20Sopenharmony_ci#define BM_PXP_PS_CLRKEYHIGH_0_RSVD1 0xFF000000 4758c2ecf20Sopenharmony_ci#define BF_PXP_PS_CLRKEYHIGH_0_RSVD1(v) \ 4768c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_PS_CLRKEYHIGH_0_RSVD1) 4778c2ecf20Sopenharmony_ci#define BP_PXP_PS_CLRKEYHIGH_0_PIXEL 0 4788c2ecf20Sopenharmony_ci#define BM_PXP_PS_CLRKEYHIGH_0_PIXEL 0x00FFFFFF 4798c2ecf20Sopenharmony_ci#define BF_PXP_PS_CLRKEYHIGH_0_PIXEL(v) \ 4808c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_CLRKEYHIGH_0_PIXEL) 4818c2ecf20Sopenharmony_ci 4828c2ecf20Sopenharmony_ci#define HW_PXP_AS_CTRL (0x00000150) 4838c2ecf20Sopenharmony_ci 4848c2ecf20Sopenharmony_ci#define BP_PXP_AS_CTRL_RSVD1 22 4858c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_RSVD1 0xFFC00000 4868c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_RSVD1(v) \ 4878c2ecf20Sopenharmony_ci (((v) << 22) & BM_PXP_AS_CTRL_RSVD1) 4888c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_ALPHA1_INVERT 0x00200000 4898c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_ALPHA1_INVERT(v) \ 4908c2ecf20Sopenharmony_ci (((v) << 21) & BM_PXP_AS_CTRL_ALPHA1_INVERT) 4918c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_ALPHA0_INVERT 0x00100000 4928c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_ALPHA0_INVERT(v) \ 4938c2ecf20Sopenharmony_ci (((v) << 20) & BM_PXP_AS_CTRL_ALPHA0_INVERT) 4948c2ecf20Sopenharmony_ci#define BP_PXP_AS_CTRL_ROP 16 4958c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_ROP 0x000F0000 4968c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_ROP(v) \ 4978c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_AS_CTRL_ROP) 4988c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__MASKAS 0x0 4998c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__MASKNOTAS 0x1 5008c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__MASKASNOT 0x2 5018c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__MERGEAS 0x3 5028c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__MERGENOTAS 0x4 5038c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__MERGEASNOT 0x5 5048c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__NOTCOPYAS 0x6 5058c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__NOT 0x7 5068c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__NOTMASKAS 0x8 5078c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__NOTMERGEAS 0x9 5088c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__XORAS 0xA 5098c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ROP__NOTXORAS 0xB 5108c2ecf20Sopenharmony_ci#define BP_PXP_AS_CTRL_ALPHA 8 5118c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_ALPHA 0x0000FF00 5128c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_ALPHA(v) \ 5138c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_AS_CTRL_ALPHA) 5148c2ecf20Sopenharmony_ci#define BP_PXP_AS_CTRL_FORMAT 4 5158c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_FORMAT 0x000000F0 5168c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_FORMAT(v) \ 5178c2ecf20Sopenharmony_ci (((v) << 4) & BM_PXP_AS_CTRL_FORMAT) 5188c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_FORMAT__ARGB8888 0x0 5198c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_FORMAT__RGBA8888 0x1 5208c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_FORMAT__RGB888 0x4 5218c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_FORMAT__ARGB1555 0x8 5228c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_FORMAT__ARGB4444 0x9 5238c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_FORMAT__RGB555 0xC 5248c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_FORMAT__RGB444 0xD 5258c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_FORMAT__RGB565 0xE 5268c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_ENABLE_COLORKEY 0x00000008 5278c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_ENABLE_COLORKEY(v) \ 5288c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_AS_CTRL_ENABLE_COLORKEY) 5298c2ecf20Sopenharmony_ci#define BP_PXP_AS_CTRL_ALPHA_CTRL 1 5308c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_ALPHA_CTRL 0x00000006 5318c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_ALPHA_CTRL(v) \ 5328c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_AS_CTRL_ALPHA_CTRL) 5338c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ALPHA_CTRL__Embedded 0x0 5348c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ALPHA_CTRL__Override 0x1 5358c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ALPHA_CTRL__Multiply 0x2 5368c2ecf20Sopenharmony_ci#define BV_PXP_AS_CTRL_ALPHA_CTRL__ROPs 0x3 5378c2ecf20Sopenharmony_ci#define BM_PXP_AS_CTRL_RSVD0 0x00000001 5388c2ecf20Sopenharmony_ci#define BF_PXP_AS_CTRL_RSVD0(v) \ 5398c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_AS_CTRL_RSVD0) 5408c2ecf20Sopenharmony_ci 5418c2ecf20Sopenharmony_ci#define HW_PXP_AS_BUF (0x00000160) 5428c2ecf20Sopenharmony_ci 5438c2ecf20Sopenharmony_ci#define BP_PXP_AS_BUF_ADDR 0 5448c2ecf20Sopenharmony_ci#define BM_PXP_AS_BUF_ADDR 0xFFFFFFFF 5458c2ecf20Sopenharmony_ci#define BF_PXP_AS_BUF_ADDR(v) (v) 5468c2ecf20Sopenharmony_ci 5478c2ecf20Sopenharmony_ci#define HW_PXP_AS_PITCH (0x00000170) 5488c2ecf20Sopenharmony_ci 5498c2ecf20Sopenharmony_ci#define BP_PXP_AS_PITCH_RSVD 16 5508c2ecf20Sopenharmony_ci#define BM_PXP_AS_PITCH_RSVD 0xFFFF0000 5518c2ecf20Sopenharmony_ci#define BF_PXP_AS_PITCH_RSVD(v) \ 5528c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_AS_PITCH_RSVD) 5538c2ecf20Sopenharmony_ci#define BP_PXP_AS_PITCH_PITCH 0 5548c2ecf20Sopenharmony_ci#define BM_PXP_AS_PITCH_PITCH 0x0000FFFF 5558c2ecf20Sopenharmony_ci#define BF_PXP_AS_PITCH_PITCH(v) \ 5568c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_AS_PITCH_PITCH) 5578c2ecf20Sopenharmony_ci 5588c2ecf20Sopenharmony_ci#define HW_PXP_AS_CLRKEYLOW_0 (0x00000180) 5598c2ecf20Sopenharmony_ci 5608c2ecf20Sopenharmony_ci#define BP_PXP_AS_CLRKEYLOW_0_RSVD1 24 5618c2ecf20Sopenharmony_ci#define BM_PXP_AS_CLRKEYLOW_0_RSVD1 0xFF000000 5628c2ecf20Sopenharmony_ci#define BF_PXP_AS_CLRKEYLOW_0_RSVD1(v) \ 5638c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_AS_CLRKEYLOW_0_RSVD1) 5648c2ecf20Sopenharmony_ci#define BP_PXP_AS_CLRKEYLOW_0_PIXEL 0 5658c2ecf20Sopenharmony_ci#define BM_PXP_AS_CLRKEYLOW_0_PIXEL 0x00FFFFFF 5668c2ecf20Sopenharmony_ci#define BF_PXP_AS_CLRKEYLOW_0_PIXEL(v) \ 5678c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_AS_CLRKEYLOW_0_PIXEL) 5688c2ecf20Sopenharmony_ci 5698c2ecf20Sopenharmony_ci#define HW_PXP_AS_CLRKEYHIGH_0 (0x00000190) 5708c2ecf20Sopenharmony_ci 5718c2ecf20Sopenharmony_ci#define BP_PXP_AS_CLRKEYHIGH_0_RSVD1 24 5728c2ecf20Sopenharmony_ci#define BM_PXP_AS_CLRKEYHIGH_0_RSVD1 0xFF000000 5738c2ecf20Sopenharmony_ci#define BF_PXP_AS_CLRKEYHIGH_0_RSVD1(v) \ 5748c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_AS_CLRKEYHIGH_0_RSVD1) 5758c2ecf20Sopenharmony_ci#define BP_PXP_AS_CLRKEYHIGH_0_PIXEL 0 5768c2ecf20Sopenharmony_ci#define BM_PXP_AS_CLRKEYHIGH_0_PIXEL 0x00FFFFFF 5778c2ecf20Sopenharmony_ci#define BF_PXP_AS_CLRKEYHIGH_0_PIXEL(v) \ 5788c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_AS_CLRKEYHIGH_0_PIXEL) 5798c2ecf20Sopenharmony_ci 5808c2ecf20Sopenharmony_ci#define HW_PXP_CSC1_COEF0 (0x000001a0) 5818c2ecf20Sopenharmony_ci 5828c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF0_YCBCR_MODE 0x80000000 5838c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF0_YCBCR_MODE(v) \ 5848c2ecf20Sopenharmony_ci (((v) << 31) & BM_PXP_CSC1_COEF0_YCBCR_MODE) 5858c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF0_BYPASS 0x40000000 5868c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF0_BYPASS(v) \ 5878c2ecf20Sopenharmony_ci (((v) << 30) & BM_PXP_CSC1_COEF0_BYPASS) 5888c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF0_RSVD1 0x20000000 5898c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF0_RSVD1(v) \ 5908c2ecf20Sopenharmony_ci (((v) << 29) & BM_PXP_CSC1_COEF0_RSVD1) 5918c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF0_C0 18 5928c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF0_C0 0x1FFC0000 5938c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF0_C0(v) \ 5948c2ecf20Sopenharmony_ci (((v) << 18) & BM_PXP_CSC1_COEF0_C0) 5958c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF0_UV_OFFSET 9 5968c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF0_UV_OFFSET 0x0003FE00 5978c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF0_UV_OFFSET(v) \ 5988c2ecf20Sopenharmony_ci (((v) << 9) & BM_PXP_CSC1_COEF0_UV_OFFSET) 5998c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF0_Y_OFFSET 0 6008c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF0_Y_OFFSET 0x000001FF 6018c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF0_Y_OFFSET(v) \ 6028c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC1_COEF0_Y_OFFSET) 6038c2ecf20Sopenharmony_ci 6048c2ecf20Sopenharmony_ci#define HW_PXP_CSC1_COEF1 (0x000001b0) 6058c2ecf20Sopenharmony_ci 6068c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF1_RSVD1 27 6078c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF1_RSVD1 0xF8000000 6088c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF1_RSVD1(v) \ 6098c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_CSC1_COEF1_RSVD1) 6108c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF1_C1 16 6118c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF1_C1 0x07FF0000 6128c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF1_C1(v) \ 6138c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CSC1_COEF1_C1) 6148c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF1_RSVD0 11 6158c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF1_RSVD0 0x0000F800 6168c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF1_RSVD0(v) \ 6178c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CSC1_COEF1_RSVD0) 6188c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF1_C4 0 6198c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF1_C4 0x000007FF 6208c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF1_C4(v) \ 6218c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC1_COEF1_C4) 6228c2ecf20Sopenharmony_ci 6238c2ecf20Sopenharmony_ci#define HW_PXP_CSC1_COEF2 (0x000001c0) 6248c2ecf20Sopenharmony_ci 6258c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF2_RSVD1 27 6268c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF2_RSVD1 0xF8000000 6278c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF2_RSVD1(v) \ 6288c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_CSC1_COEF2_RSVD1) 6298c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF2_C2 16 6308c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF2_C2 0x07FF0000 6318c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF2_C2(v) \ 6328c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CSC1_COEF2_C2) 6338c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF2_RSVD0 11 6348c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF2_RSVD0 0x0000F800 6358c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF2_RSVD0(v) \ 6368c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CSC1_COEF2_RSVD0) 6378c2ecf20Sopenharmony_ci#define BP_PXP_CSC1_COEF2_C3 0 6388c2ecf20Sopenharmony_ci#define BM_PXP_CSC1_COEF2_C3 0x000007FF 6398c2ecf20Sopenharmony_ci#define BF_PXP_CSC1_COEF2_C3(v) \ 6408c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC1_COEF2_C3) 6418c2ecf20Sopenharmony_ci 6428c2ecf20Sopenharmony_ci#define HW_PXP_CSC2_CTRL (0x000001d0) 6438c2ecf20Sopenharmony_ci 6448c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_CTRL_RSVD 3 6458c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_CTRL_RSVD 0xFFFFFFF8 6468c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_CTRL_RSVD(v) \ 6478c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_CSC2_CTRL_RSVD) 6488c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_CTRL_CSC_MODE 1 6498c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_CTRL_CSC_MODE 0x00000006 6508c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_CTRL_CSC_MODE(v) \ 6518c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_CSC2_CTRL_CSC_MODE) 6528c2ecf20Sopenharmony_ci#define BV_PXP_CSC2_CTRL_CSC_MODE__YUV2RGB 0x0 6538c2ecf20Sopenharmony_ci#define BV_PXP_CSC2_CTRL_CSC_MODE__YCbCr2RGB 0x1 6548c2ecf20Sopenharmony_ci#define BV_PXP_CSC2_CTRL_CSC_MODE__RGB2YUV 0x2 6558c2ecf20Sopenharmony_ci#define BV_PXP_CSC2_CTRL_CSC_MODE__RGB2YCbCr 0x3 6568c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_CTRL_BYPASS 0x00000001 6578c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_CTRL_BYPASS(v) \ 6588c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC2_CTRL_BYPASS) 6598c2ecf20Sopenharmony_ci 6608c2ecf20Sopenharmony_ci#define HW_PXP_CSC2_COEF0 (0x000001e0) 6618c2ecf20Sopenharmony_ci 6628c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF0_RSVD1 27 6638c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF0_RSVD1 0xF8000000 6648c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF0_RSVD1(v) \ 6658c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_CSC2_COEF0_RSVD1) 6668c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF0_A2 16 6678c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF0_A2 0x07FF0000 6688c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF0_A2(v) \ 6698c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CSC2_COEF0_A2) 6708c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF0_RSVD0 11 6718c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF0_RSVD0 0x0000F800 6728c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF0_RSVD0(v) \ 6738c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CSC2_COEF0_RSVD0) 6748c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF0_A1 0 6758c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF0_A1 0x000007FF 6768c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF0_A1(v) \ 6778c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC2_COEF0_A1) 6788c2ecf20Sopenharmony_ci 6798c2ecf20Sopenharmony_ci#define HW_PXP_CSC2_COEF1 (0x000001f0) 6808c2ecf20Sopenharmony_ci 6818c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF1_RSVD1 27 6828c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF1_RSVD1 0xF8000000 6838c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF1_RSVD1(v) \ 6848c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_CSC2_COEF1_RSVD1) 6858c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF1_B1 16 6868c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF1_B1 0x07FF0000 6878c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF1_B1(v) \ 6888c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CSC2_COEF1_B1) 6898c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF1_RSVD0 11 6908c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF1_RSVD0 0x0000F800 6918c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF1_RSVD0(v) \ 6928c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CSC2_COEF1_RSVD0) 6938c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF1_A3 0 6948c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF1_A3 0x000007FF 6958c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF1_A3(v) \ 6968c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC2_COEF1_A3) 6978c2ecf20Sopenharmony_ci 6988c2ecf20Sopenharmony_ci#define HW_PXP_CSC2_COEF2 (0x00000200) 6998c2ecf20Sopenharmony_ci 7008c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF2_RSVD1 27 7018c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF2_RSVD1 0xF8000000 7028c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF2_RSVD1(v) \ 7038c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_CSC2_COEF2_RSVD1) 7048c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF2_B3 16 7058c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF2_B3 0x07FF0000 7068c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF2_B3(v) \ 7078c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CSC2_COEF2_B3) 7088c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF2_RSVD0 11 7098c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF2_RSVD0 0x0000F800 7108c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF2_RSVD0(v) \ 7118c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CSC2_COEF2_RSVD0) 7128c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF2_B2 0 7138c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF2_B2 0x000007FF 7148c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF2_B2(v) \ 7158c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC2_COEF2_B2) 7168c2ecf20Sopenharmony_ci 7178c2ecf20Sopenharmony_ci#define HW_PXP_CSC2_COEF3 (0x00000210) 7188c2ecf20Sopenharmony_ci 7198c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF3_RSVD1 27 7208c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF3_RSVD1 0xF8000000 7218c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF3_RSVD1(v) \ 7228c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_CSC2_COEF3_RSVD1) 7238c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF3_C2 16 7248c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF3_C2 0x07FF0000 7258c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF3_C2(v) \ 7268c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CSC2_COEF3_C2) 7278c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF3_RSVD0 11 7288c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF3_RSVD0 0x0000F800 7298c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF3_RSVD0(v) \ 7308c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CSC2_COEF3_RSVD0) 7318c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF3_C1 0 7328c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF3_C1 0x000007FF 7338c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF3_C1(v) \ 7348c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC2_COEF3_C1) 7358c2ecf20Sopenharmony_ci 7368c2ecf20Sopenharmony_ci#define HW_PXP_CSC2_COEF4 (0x00000220) 7378c2ecf20Sopenharmony_ci 7388c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF4_RSVD1 25 7398c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF4_RSVD1 0xFE000000 7408c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF4_RSVD1(v) \ 7418c2ecf20Sopenharmony_ci (((v) << 25) & BM_PXP_CSC2_COEF4_RSVD1) 7428c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF4_D1 16 7438c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF4_D1 0x01FF0000 7448c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF4_D1(v) \ 7458c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CSC2_COEF4_D1) 7468c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF4_RSVD0 11 7478c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF4_RSVD0 0x0000F800 7488c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF4_RSVD0(v) \ 7498c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CSC2_COEF4_RSVD0) 7508c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF4_C3 0 7518c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF4_C3 0x000007FF 7528c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF4_C3(v) \ 7538c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC2_COEF4_C3) 7548c2ecf20Sopenharmony_ci 7558c2ecf20Sopenharmony_ci#define HW_PXP_CSC2_COEF5 (0x00000230) 7568c2ecf20Sopenharmony_ci 7578c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF5_RSVD1 25 7588c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF5_RSVD1 0xFE000000 7598c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF5_RSVD1(v) \ 7608c2ecf20Sopenharmony_ci (((v) << 25) & BM_PXP_CSC2_COEF5_RSVD1) 7618c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF5_D3 16 7628c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF5_D3 0x01FF0000 7638c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF5_D3(v) \ 7648c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CSC2_COEF5_D3) 7658c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF5_RSVD0 9 7668c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF5_RSVD0 0x0000FE00 7678c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF5_RSVD0(v) \ 7688c2ecf20Sopenharmony_ci (((v) << 9) & BM_PXP_CSC2_COEF5_RSVD0) 7698c2ecf20Sopenharmony_ci#define BP_PXP_CSC2_COEF5_D2 0 7708c2ecf20Sopenharmony_ci#define BM_PXP_CSC2_COEF5_D2 0x000001FF 7718c2ecf20Sopenharmony_ci#define BF_PXP_CSC2_COEF5_D2(v) \ 7728c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CSC2_COEF5_D2) 7738c2ecf20Sopenharmony_ci 7748c2ecf20Sopenharmony_ci#define HW_PXP_LUT_CTRL (0x00000240) 7758c2ecf20Sopenharmony_ci 7768c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_BYPASS 0x80000000 7778c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_BYPASS(v) \ 7788c2ecf20Sopenharmony_ci (((v) << 31) & BM_PXP_LUT_CTRL_BYPASS) 7798c2ecf20Sopenharmony_ci#define BP_PXP_LUT_CTRL_RSVD3 26 7808c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_RSVD3 0x7C000000 7818c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_RSVD3(v) \ 7828c2ecf20Sopenharmony_ci (((v) << 26) & BM_PXP_LUT_CTRL_RSVD3) 7838c2ecf20Sopenharmony_ci#define BP_PXP_LUT_CTRL_LOOKUP_MODE 24 7848c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_LOOKUP_MODE 0x03000000 7858c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_LOOKUP_MODE(v) \ 7868c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_LUT_CTRL_LOOKUP_MODE) 7878c2ecf20Sopenharmony_ci#define BV_PXP_LUT_CTRL_LOOKUP_MODE__CACHE_RGB565 0x0 7888c2ecf20Sopenharmony_ci#define BV_PXP_LUT_CTRL_LOOKUP_MODE__DIRECT_Y8 0x1 7898c2ecf20Sopenharmony_ci#define BV_PXP_LUT_CTRL_LOOKUP_MODE__DIRECT_RGB444 0x2 7908c2ecf20Sopenharmony_ci#define BV_PXP_LUT_CTRL_LOOKUP_MODE__DIRECT_RGB454 0x3 7918c2ecf20Sopenharmony_ci#define BP_PXP_LUT_CTRL_RSVD2 18 7928c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_RSVD2 0x00FC0000 7938c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_RSVD2(v) \ 7948c2ecf20Sopenharmony_ci (((v) << 18) & BM_PXP_LUT_CTRL_RSVD2) 7958c2ecf20Sopenharmony_ci#define BP_PXP_LUT_CTRL_OUT_MODE 16 7968c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_OUT_MODE 0x00030000 7978c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_OUT_MODE(v) \ 7988c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_LUT_CTRL_OUT_MODE) 7998c2ecf20Sopenharmony_ci#define BV_PXP_LUT_CTRL_OUT_MODE__RESERVED 0x0 8008c2ecf20Sopenharmony_ci#define BV_PXP_LUT_CTRL_OUT_MODE__Y8 0x1 8018c2ecf20Sopenharmony_ci#define BV_PXP_LUT_CTRL_OUT_MODE__RGBW4444CFA 0x2 8028c2ecf20Sopenharmony_ci#define BV_PXP_LUT_CTRL_OUT_MODE__RGB888 0x3 8038c2ecf20Sopenharmony_ci#define BP_PXP_LUT_CTRL_RSVD1 11 8048c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_RSVD1 0x0000F800 8058c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_RSVD1(v) \ 8068c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_LUT_CTRL_RSVD1) 8078c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_SEL_8KB 0x00000400 8088c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_SEL_8KB(v) \ 8098c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_LUT_CTRL_SEL_8KB) 8108c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_LRU_UPD 0x00000200 8118c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_LRU_UPD(v) \ 8128c2ecf20Sopenharmony_ci (((v) << 9) & BM_PXP_LUT_CTRL_LRU_UPD) 8138c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_INVALID 0x00000100 8148c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_INVALID(v) \ 8158c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_LUT_CTRL_INVALID) 8168c2ecf20Sopenharmony_ci#define BP_PXP_LUT_CTRL_RSVD0 1 8178c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_RSVD0 0x000000FE 8188c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_RSVD0(v) \ 8198c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_LUT_CTRL_RSVD0) 8208c2ecf20Sopenharmony_ci#define BM_PXP_LUT_CTRL_DMA_START 0x00000001 8218c2ecf20Sopenharmony_ci#define BF_PXP_LUT_CTRL_DMA_START(v) \ 8228c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_LUT_CTRL_DMA_START) 8238c2ecf20Sopenharmony_ci 8248c2ecf20Sopenharmony_ci#define HW_PXP_LUT_ADDR (0x00000250) 8258c2ecf20Sopenharmony_ci 8268c2ecf20Sopenharmony_ci#define BM_PXP_LUT_ADDR_RSVD2 0x80000000 8278c2ecf20Sopenharmony_ci#define BF_PXP_LUT_ADDR_RSVD2(v) \ 8288c2ecf20Sopenharmony_ci (((v) << 31) & BM_PXP_LUT_ADDR_RSVD2) 8298c2ecf20Sopenharmony_ci#define BP_PXP_LUT_ADDR_NUM_BYTES 16 8308c2ecf20Sopenharmony_ci#define BM_PXP_LUT_ADDR_NUM_BYTES 0x7FFF0000 8318c2ecf20Sopenharmony_ci#define BF_PXP_LUT_ADDR_NUM_BYTES(v) \ 8328c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_LUT_ADDR_NUM_BYTES) 8338c2ecf20Sopenharmony_ci#define BP_PXP_LUT_ADDR_RSVD1 14 8348c2ecf20Sopenharmony_ci#define BM_PXP_LUT_ADDR_RSVD1 0x0000C000 8358c2ecf20Sopenharmony_ci#define BF_PXP_LUT_ADDR_RSVD1(v) \ 8368c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_LUT_ADDR_RSVD1) 8378c2ecf20Sopenharmony_ci#define BP_PXP_LUT_ADDR_ADDR 0 8388c2ecf20Sopenharmony_ci#define BM_PXP_LUT_ADDR_ADDR 0x00003FFF 8398c2ecf20Sopenharmony_ci#define BF_PXP_LUT_ADDR_ADDR(v) \ 8408c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_LUT_ADDR_ADDR) 8418c2ecf20Sopenharmony_ci 8428c2ecf20Sopenharmony_ci#define HW_PXP_LUT_DATA (0x00000260) 8438c2ecf20Sopenharmony_ci 8448c2ecf20Sopenharmony_ci#define BP_PXP_LUT_DATA_DATA 0 8458c2ecf20Sopenharmony_ci#define BM_PXP_LUT_DATA_DATA 0xFFFFFFFF 8468c2ecf20Sopenharmony_ci#define BF_PXP_LUT_DATA_DATA(v) (v) 8478c2ecf20Sopenharmony_ci 8488c2ecf20Sopenharmony_ci#define HW_PXP_LUT_EXTMEM (0x00000270) 8498c2ecf20Sopenharmony_ci 8508c2ecf20Sopenharmony_ci#define BP_PXP_LUT_EXTMEM_ADDR 0 8518c2ecf20Sopenharmony_ci#define BM_PXP_LUT_EXTMEM_ADDR 0xFFFFFFFF 8528c2ecf20Sopenharmony_ci#define BF_PXP_LUT_EXTMEM_ADDR(v) (v) 8538c2ecf20Sopenharmony_ci 8548c2ecf20Sopenharmony_ci#define HW_PXP_CFA (0x00000280) 8558c2ecf20Sopenharmony_ci 8568c2ecf20Sopenharmony_ci#define BP_PXP_CFA_DATA 0 8578c2ecf20Sopenharmony_ci#define BM_PXP_CFA_DATA 0xFFFFFFFF 8588c2ecf20Sopenharmony_ci#define BF_PXP_CFA_DATA(v) (v) 8598c2ecf20Sopenharmony_ci 8608c2ecf20Sopenharmony_ci#define HW_PXP_ALPHA_A_CTRL (0x00000290) 8618c2ecf20Sopenharmony_ci 8628c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA 24 8638c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA 0xFF000000 8648c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA(v) \ 8658c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA) 8668c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA 16 8678c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA 0x00FF0000 8688c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA(v) \ 8698c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA) 8708c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_A_CTRL_RSVD0 14 8718c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_RSVD0 0x0000C000 8728c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_RSVD0(v) \ 8738c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_ALPHA_A_CTRL_RSVD0) 8748c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S1_COLOR_MODE 0x00002000 8758c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S1_COLOR_MODE(v) \ 8768c2ecf20Sopenharmony_ci (((v) << 13) & BM_PXP_ALPHA_A_CTRL_S1_COLOR_MODE) 8778c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_COLOR_MODE__0 0x0 8788c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_COLOR_MODE__1 0x1 8798c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE 0x00001000 8808c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE(v) \ 8818c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE) 8828c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE__0 0x0 8838c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE__1 0x1 8848c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE 10 8858c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE 0x00000C00 8868c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE(v) \ 8878c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE) 8888c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE__0 0x0 8898c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE__1 0x0 8908c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE__2 0x0 8918c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE__3 0x0 8928c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE 8 8938c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE 0x00000300 8948c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE(v) \ 8958c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE) 8968c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE__0 0x0 8978c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE__1 0x1 8988c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE__2 0x2 8998c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE__3 0x3 9008c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_RSVD1 0x00000080 9018c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_RSVD1(v) \ 9028c2ecf20Sopenharmony_ci (((v) << 7) & BM_PXP_ALPHA_A_CTRL_RSVD1) 9038c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S0_COLOR_MODE 0x00000040 9048c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S0_COLOR_MODE(v) \ 9058c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_ALPHA_A_CTRL_S0_COLOR_MODE) 9068c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_COLOR_MODE__0 0x0 9078c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_COLOR_MODE__1 0x1 9088c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE 0x00000020 9098c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE(v) \ 9108c2ecf20Sopenharmony_ci (((v) << 5) & BM_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE) 9118c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE__0 0x0 9128c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE__1 0x1 9138c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE 3 9148c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE 0x00000018 9158c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE(v) \ 9168c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE) 9178c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE__0 0x0 9188c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE__1 0x1 9198c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE__2 0x2 9208c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE__3 0x3 9218c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE 1 9228c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE 0x00000006 9238c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE(v) \ 9248c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE) 9258c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE__0 0x0 9268c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE__1 0x1 9278c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE__2 0x2 9288c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE__3 0x3 9298c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE 0x00000001 9308c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE(v) \ 9318c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE) 9328c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE__0 0x0 9338c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE__1 0x1 9348c2ecf20Sopenharmony_ci 9358c2ecf20Sopenharmony_ci#define HW_PXP_ALPHA_B_CTRL (0x000002a0) 9368c2ecf20Sopenharmony_ci 9378c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA 24 9388c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA 0xFF000000 9398c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA(v) \ 9408c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA) 9418c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA 16 9428c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA 0x00FF0000 9438c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA(v) \ 9448c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA) 9458c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_RSVD0 14 9468c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_RSVD0 0x0000C000 9478c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_RSVD0(v) \ 9488c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_ALPHA_B_CTRL_RSVD0) 9498c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S1_COLOR_MODE 0x00002000 9508c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S1_COLOR_MODE(v) \ 9518c2ecf20Sopenharmony_ci (((v) << 13) & BM_PXP_ALPHA_B_CTRL_S1_COLOR_MODE) 9528c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_COLOR_MODE__0 0x0 9538c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_COLOR_MODE__1 0x1 9548c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE 0x00001000 9558c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE(v) \ 9568c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE) 9578c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE__0 0x0 9588c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE__1 0x1 9598c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE 10 9608c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE 0x00000C00 9618c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE(v) \ 9628c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE) 9638c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE__0 0x0 9648c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE__1 0x1 9658c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE__2 0x2 9668c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE__3 0x3 9678c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE 8 9688c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE 0x00000300 9698c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE(v) \ 9708c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE) 9718c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE__0 0x0 9728c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE__1 0x1 9738c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE__2 0x2 9748c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE__3 0x3 9758c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_RSVD1 0x00000080 9768c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_RSVD1(v) \ 9778c2ecf20Sopenharmony_ci (((v) << 7) & BM_PXP_ALPHA_B_CTRL_RSVD1) 9788c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S0_COLOR_MODE 0x00000040 9798c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S0_COLOR_MODE(v) \ 9808c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_ALPHA_B_CTRL_S0_COLOR_MODE) 9818c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_COLOR_MODE__0 0x0 9828c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_COLOR_MODE__1 0x1 9838c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE 0x00000020 9848c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE(v) \ 9858c2ecf20Sopenharmony_ci (((v) << 5) & BM_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE) 9868c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE__0 0x0 9878c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE__1 0x1 9888c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE 3 9898c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE 0x00000018 9908c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE(v) \ 9918c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE) 9928c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE__0 0x0 9938c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE__1 0x1 9948c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE__2 0x2 9958c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE__3 0x3 9968c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE 1 9978c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE 0x00000006 9988c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE(v) \ 9998c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE) 10008c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE__0 0x0 10018c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE__1 0x1 10028c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE__2 0x2 10038c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE__3 0x3 10048c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE 0x00000001 10058c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE(v) \ 10068c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE) 10078c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE__0 0x0 10088c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE__1 0x1 10098c2ecf20Sopenharmony_ci 10108c2ecf20Sopenharmony_ci#define HW_PXP_ALPHA_B_CTRL_1 (0x000002b0) 10118c2ecf20Sopenharmony_ci 10128c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_1_RSVD0 8 10138c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_1_RSVD0 0xFFFFFF00 10148c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_1_RSVD0(v) \ 10158c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_ALPHA_B_CTRL_1_RSVD0) 10168c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_1_ROP 4 10178c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_1_ROP 0x000000F0 10188c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_1_ROP(v) \ 10198c2ecf20Sopenharmony_ci (((v) << 4) & BM_PXP_ALPHA_B_CTRL_1_ROP) 10208c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__MASKAS 0x0 10218c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__MASKNOTAS 0x1 10228c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__MASKASNOT 0x2 10238c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__MERGEAS 0x3 10248c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__MERGENOTAS 0x4 10258c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__MERGEASNOT 0x5 10268c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__NOTCOPYAS 0x6 10278c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__NOT 0x7 10288c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__NOTMASKAS 0x8 10298c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__NOTMERGEAS 0x9 10308c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__XORAS 0xA 10318c2ecf20Sopenharmony_ci#define BV_PXP_ALPHA_B_CTRL_1_ROP__NOTXORAS 0xB 10328c2ecf20Sopenharmony_ci#define BP_PXP_ALPHA_B_CTRL_1_RSVD1 2 10338c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_1_RSVD1 0x0000000C 10348c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_1_RSVD1(v) \ 10358c2ecf20Sopenharmony_ci (((v) << 2) & BM_PXP_ALPHA_B_CTRL_1_RSVD1) 10368c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_1_OL_CLRKEY_ENABLE 0x00000002 10378c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_1_OL_CLRKEY_ENABLE(v) \ 10388c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_ALPHA_B_CTRL_1_OL_CLRKEY_ENABLE) 10398c2ecf20Sopenharmony_ci#define BM_PXP_ALPHA_B_CTRL_1_ROP_ENABLE 0x00000001 10408c2ecf20Sopenharmony_ci#define BF_PXP_ALPHA_B_CTRL_1_ROP_ENABLE(v) \ 10418c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_ALPHA_B_CTRL_1_ROP_ENABLE) 10428c2ecf20Sopenharmony_ci 10438c2ecf20Sopenharmony_ci#define HW_PXP_PS_BACKGROUND_1 (0x000002c0) 10448c2ecf20Sopenharmony_ci 10458c2ecf20Sopenharmony_ci#define BP_PXP_PS_BACKGROUND_1_RSVD 24 10468c2ecf20Sopenharmony_ci#define BM_PXP_PS_BACKGROUND_1_RSVD 0xFF000000 10478c2ecf20Sopenharmony_ci#define BF_PXP_PS_BACKGROUND_1_RSVD(v) \ 10488c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_PS_BACKGROUND_1_RSVD) 10498c2ecf20Sopenharmony_ci#define BP_PXP_PS_BACKGROUND_1_COLOR 0 10508c2ecf20Sopenharmony_ci#define BM_PXP_PS_BACKGROUND_1_COLOR 0x00FFFFFF 10518c2ecf20Sopenharmony_ci#define BF_PXP_PS_BACKGROUND_1_COLOR(v) \ 10528c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_BACKGROUND_1_COLOR) 10538c2ecf20Sopenharmony_ci 10548c2ecf20Sopenharmony_ci#define HW_PXP_PS_CLRKEYLOW_1 (0x000002d0) 10558c2ecf20Sopenharmony_ci 10568c2ecf20Sopenharmony_ci#define BP_PXP_PS_CLRKEYLOW_1_RSVD1 24 10578c2ecf20Sopenharmony_ci#define BM_PXP_PS_CLRKEYLOW_1_RSVD1 0xFF000000 10588c2ecf20Sopenharmony_ci#define BF_PXP_PS_CLRKEYLOW_1_RSVD1(v) \ 10598c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_PS_CLRKEYLOW_1_RSVD1) 10608c2ecf20Sopenharmony_ci#define BP_PXP_PS_CLRKEYLOW_1_PIXEL 0 10618c2ecf20Sopenharmony_ci#define BM_PXP_PS_CLRKEYLOW_1_PIXEL 0x00FFFFFF 10628c2ecf20Sopenharmony_ci#define BF_PXP_PS_CLRKEYLOW_1_PIXEL(v) \ 10638c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_CLRKEYLOW_1_PIXEL) 10648c2ecf20Sopenharmony_ci 10658c2ecf20Sopenharmony_ci#define HW_PXP_PS_CLRKEYHIGH_1 (0x000002e0) 10668c2ecf20Sopenharmony_ci 10678c2ecf20Sopenharmony_ci#define BP_PXP_PS_CLRKEYHIGH_1_RSVD1 24 10688c2ecf20Sopenharmony_ci#define BM_PXP_PS_CLRKEYHIGH_1_RSVD1 0xFF000000 10698c2ecf20Sopenharmony_ci#define BF_PXP_PS_CLRKEYHIGH_1_RSVD1(v) \ 10708c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_PS_CLRKEYHIGH_1_RSVD1) 10718c2ecf20Sopenharmony_ci#define BP_PXP_PS_CLRKEYHIGH_1_PIXEL 0 10728c2ecf20Sopenharmony_ci#define BM_PXP_PS_CLRKEYHIGH_1_PIXEL 0x00FFFFFF 10738c2ecf20Sopenharmony_ci#define BF_PXP_PS_CLRKEYHIGH_1_PIXEL(v) \ 10748c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_PS_CLRKEYHIGH_1_PIXEL) 10758c2ecf20Sopenharmony_ci 10768c2ecf20Sopenharmony_ci#define HW_PXP_AS_CLRKEYLOW_1 (0x000002f0) 10778c2ecf20Sopenharmony_ci 10788c2ecf20Sopenharmony_ci#define BP_PXP_AS_CLRKEYLOW_1_RSVD1 24 10798c2ecf20Sopenharmony_ci#define BM_PXP_AS_CLRKEYLOW_1_RSVD1 0xFF000000 10808c2ecf20Sopenharmony_ci#define BF_PXP_AS_CLRKEYLOW_1_RSVD1(v) \ 10818c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_AS_CLRKEYLOW_1_RSVD1) 10828c2ecf20Sopenharmony_ci#define BP_PXP_AS_CLRKEYLOW_1_PIXEL 0 10838c2ecf20Sopenharmony_ci#define BM_PXP_AS_CLRKEYLOW_1_PIXEL 0x00FFFFFF 10848c2ecf20Sopenharmony_ci#define BF_PXP_AS_CLRKEYLOW_1_PIXEL(v) \ 10858c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_AS_CLRKEYLOW_1_PIXEL) 10868c2ecf20Sopenharmony_ci 10878c2ecf20Sopenharmony_ci#define HW_PXP_AS_CLRKEYHIGH_1 (0x00000300) 10888c2ecf20Sopenharmony_ci 10898c2ecf20Sopenharmony_ci#define BP_PXP_AS_CLRKEYHIGH_1_RSVD1 24 10908c2ecf20Sopenharmony_ci#define BM_PXP_AS_CLRKEYHIGH_1_RSVD1 0xFF000000 10918c2ecf20Sopenharmony_ci#define BF_PXP_AS_CLRKEYHIGH_1_RSVD1(v) \ 10928c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_AS_CLRKEYHIGH_1_RSVD1) 10938c2ecf20Sopenharmony_ci#define BP_PXP_AS_CLRKEYHIGH_1_PIXEL 0 10948c2ecf20Sopenharmony_ci#define BM_PXP_AS_CLRKEYHIGH_1_PIXEL 0x00FFFFFF 10958c2ecf20Sopenharmony_ci#define BF_PXP_AS_CLRKEYHIGH_1_PIXEL(v) \ 10968c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_AS_CLRKEYHIGH_1_PIXEL) 10978c2ecf20Sopenharmony_ci 10988c2ecf20Sopenharmony_ci#define HW_PXP_CTRL2 (0x00000310) 10998c2ecf20Sopenharmony_ci#define HW_PXP_CTRL2_SET (0x00000314) 11008c2ecf20Sopenharmony_ci#define HW_PXP_CTRL2_CLR (0x00000318) 11018c2ecf20Sopenharmony_ci#define HW_PXP_CTRL2_TOG (0x0000031c) 11028c2ecf20Sopenharmony_ci 11038c2ecf20Sopenharmony_ci#define BP_PXP_CTRL2_RSVD3 28 11048c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_RSVD3 0xF0000000 11058c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_RSVD3(v) \ 11068c2ecf20Sopenharmony_ci (((v) << 28) & BM_PXP_CTRL2_RSVD3) 11078c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_ROTATE1 0x08000000 11088c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_ROTATE1(v) \ 11098c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_CTRL2_ENABLE_ROTATE1) 11108c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_ROTATE0 0x04000000 11118c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_ROTATE0(v) \ 11128c2ecf20Sopenharmony_ci (((v) << 26) & BM_PXP_CTRL2_ENABLE_ROTATE0) 11138c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_LUT 0x02000000 11148c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_LUT(v) \ 11158c2ecf20Sopenharmony_ci (((v) << 25) & BM_PXP_CTRL2_ENABLE_LUT) 11168c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_CSC2 0x01000000 11178c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_CSC2(v) \ 11188c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_CTRL2_ENABLE_CSC2) 11198c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_BLOCK_SIZE 0x00800000 11208c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_BLOCK_SIZE(v) \ 11218c2ecf20Sopenharmony_ci (((v) << 23) & BM_PXP_CTRL2_BLOCK_SIZE) 11228c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_BLOCK_SIZE__8X8 0x0 11238c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_BLOCK_SIZE__16X16 0x1 11248c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_RSVD2 0x00400000 11258c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_RSVD2(v) \ 11268c2ecf20Sopenharmony_ci (((v) << 22) & BM_PXP_CTRL2_RSVD2) 11278c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_ALPHA_B 0x00200000 11288c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_ALPHA_B(v) \ 11298c2ecf20Sopenharmony_ci (((v) << 21) & BM_PXP_CTRL2_ENABLE_ALPHA_B) 11308c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_INPUT_FETCH_STORE 0x00100000 11318c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_INPUT_FETCH_STORE(v) \ 11328c2ecf20Sopenharmony_ci (((v) << 20) & BM_PXP_CTRL2_ENABLE_INPUT_FETCH_STORE) 11338c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_WFE_B 0x00080000 11348c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_WFE_B(v) \ 11358c2ecf20Sopenharmony_ci (((v) << 19) & BM_PXP_CTRL2_ENABLE_WFE_B) 11368c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_WFE_A 0x00040000 11378c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_WFE_A(v) \ 11388c2ecf20Sopenharmony_ci (((v) << 18) & BM_PXP_CTRL2_ENABLE_WFE_A) 11398c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE_DITHER 0x00020000 11408c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE_DITHER(v) \ 11418c2ecf20Sopenharmony_ci (((v) << 17) & BM_PXP_CTRL2_ENABLE_DITHER) 11428c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_RSVD1 0x00010000 11438c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_RSVD1(v) \ 11448c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_CTRL2_RSVD1) 11458c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_VFLIP1 0x00008000 11468c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_VFLIP1(v) \ 11478c2ecf20Sopenharmony_ci (((v) << 15) & BM_PXP_CTRL2_VFLIP1) 11488c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_HFLIP1 0x00004000 11498c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_HFLIP1(v) \ 11508c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_CTRL2_HFLIP1) 11518c2ecf20Sopenharmony_ci#define BP_PXP_CTRL2_ROTATE1 12 11528c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ROTATE1 0x00003000 11538c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ROTATE1(v) \ 11548c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_CTRL2_ROTATE1) 11558c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_ROTATE1__ROT_0 0x0 11568c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_ROTATE1__ROT_90 0x1 11578c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_ROTATE1__ROT_180 0x2 11588c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_ROTATE1__ROT_270 0x3 11598c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_VFLIP0 0x00000800 11608c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_VFLIP0(v) \ 11618c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_CTRL2_VFLIP0) 11628c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_HFLIP0 0x00000400 11638c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_HFLIP0(v) \ 11648c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_CTRL2_HFLIP0) 11658c2ecf20Sopenharmony_ci#define BP_PXP_CTRL2_ROTATE0 8 11668c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ROTATE0 0x00000300 11678c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ROTATE0(v) \ 11688c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_CTRL2_ROTATE0) 11698c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_ROTATE0__ROT_0 0x0 11708c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_ROTATE0__ROT_90 0x1 11718c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_ROTATE0__ROT_180 0x2 11728c2ecf20Sopenharmony_ci#define BV_PXP_CTRL2_ROTATE0__ROT_270 0x3 11738c2ecf20Sopenharmony_ci#define BP_PXP_CTRL2_RSVD0 1 11748c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_RSVD0 0x000000FE 11758c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_RSVD0(v) \ 11768c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_CTRL2_RSVD0) 11778c2ecf20Sopenharmony_ci#define BM_PXP_CTRL2_ENABLE 0x00000001 11788c2ecf20Sopenharmony_ci#define BF_PXP_CTRL2_ENABLE(v) \ 11798c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_CTRL2_ENABLE) 11808c2ecf20Sopenharmony_ci 11818c2ecf20Sopenharmony_ci#define HW_PXP_POWER_REG0 (0x00000320) 11828c2ecf20Sopenharmony_ci 11838c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG0_CTRL 12 11848c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG0_CTRL 0xFFFFF000 11858c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG0_CTRL(v) \ 11868c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_POWER_REG0_CTRL) 11878c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG0_ROT0_MEM_LP_STATE 9 11888c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG0_ROT0_MEM_LP_STATE 0x00000E00 11898c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG0_ROT0_MEM_LP_STATE(v) \ 11908c2ecf20Sopenharmony_ci (((v) << 9) & BM_PXP_POWER_REG0_ROT0_MEM_LP_STATE) 11918c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_ROT0_MEM_LP_STATE__NONE 0x0 11928c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_ROT0_MEM_LP_STATE__LS 0x1 11938c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_ROT0_MEM_LP_STATE__DS 0x2 11948c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_ROT0_MEM_LP_STATE__SD 0x4 11958c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN 6 11968c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN 0x000001C0 11978c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN(v) \ 11988c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN) 11998c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN__NONE 0x0 12008c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN__LS 0x1 12018c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN__DS 0x2 12028c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN__SD 0x4 12038c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN 3 12048c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN 0x00000038 12058c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN(v) \ 12068c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN) 12078c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN__NONE 0x0 12088c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN__LS 0x1 12098c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN__DS 0x2 12108c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN__SD 0x4 12118c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0 0 12128c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0 0x00000007 12138c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0(v) \ 12148c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0) 12158c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0__NONE 0x0 12168c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0__LS 0x1 12178c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0__DS 0x2 12188c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0__SD 0x4 12198c2ecf20Sopenharmony_ci 12208c2ecf20Sopenharmony_ci#define HW_PXP_POWER_REG1 (0x00000330) 12218c2ecf20Sopenharmony_ci 12228c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_RSVD0 24 12238c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_RSVD0 0xFF000000 12248c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_RSVD0(v) \ 12258c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_POWER_REG1_RSVD0) 12268c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_ALU_B_MEM_LP_STATE 21 12278c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_ALU_B_MEM_LP_STATE 0x00E00000 12288c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_ALU_B_MEM_LP_STATE(v) \ 12298c2ecf20Sopenharmony_ci (((v) << 21) & BM_PXP_POWER_REG1_ALU_B_MEM_LP_STATE) 12308c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ALU_B_MEM_LP_STATE__NONE 0x0 12318c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ALU_B_MEM_LP_STATE__LS 0x1 12328c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ALU_B_MEM_LP_STATE__DS 0x2 12338c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ALU_B_MEM_LP_STATE__SD 0x4 12348c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_ALU_A_MEM_LP_STATE 18 12358c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_ALU_A_MEM_LP_STATE 0x001C0000 12368c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_ALU_A_MEM_LP_STATE(v) \ 12378c2ecf20Sopenharmony_ci (((v) << 18) & BM_PXP_POWER_REG1_ALU_A_MEM_LP_STATE) 12388c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ALU_A_MEM_LP_STATE__NONE 0x0 12398c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ALU_A_MEM_LP_STATE__LS 0x1 12408c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ALU_A_MEM_LP_STATE__DS 0x2 12418c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ALU_A_MEM_LP_STATE__SD 0x4 12428c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE 15 12438c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE 0x00038000 12448c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE(v) \ 12458c2ecf20Sopenharmony_ci (((v) << 15) & BM_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE) 12468c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE__NONE 0x0 12478c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE__LS 0x1 12488c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE__DS 0x2 12498c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE__SD 0x4 12508c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE 12 12518c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE 0x00007000 12528c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE(v) \ 12538c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE) 12548c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE__NONE 0x0 12558c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE__LS 0x1 12568c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE__DS 0x2 12578c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE__SD 0x4 12588c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE 9 12598c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE 0x00000E00 12608c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE(v) \ 12618c2ecf20Sopenharmony_ci (((v) << 9) & BM_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE) 12628c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE__NONE 0x0 12638c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE__LS 0x1 12648c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE__DS 0x2 12658c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE__SD 0x4 12668c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE 6 12678c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE 0x000001C0 12688c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE(v) \ 12698c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE) 12708c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE__NONE 0x0 12718c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE__LS 0x1 12728c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE__DS 0x2 12738c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE__SD 0x4 12748c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE 3 12758c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE 0x00000038 12768c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE(v) \ 12778c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE) 12788c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE__NONE 0x0 12798c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE__LS 0x1 12808c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE__DS 0x2 12818c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE__SD 0x4 12828c2ecf20Sopenharmony_ci#define BP_PXP_POWER_REG1_ROT1_MEM_LP_STATE 0 12838c2ecf20Sopenharmony_ci#define BM_PXP_POWER_REG1_ROT1_MEM_LP_STATE 0x00000007 12848c2ecf20Sopenharmony_ci#define BF_PXP_POWER_REG1_ROT1_MEM_LP_STATE(v) \ 12858c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_POWER_REG1_ROT1_MEM_LP_STATE) 12868c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ROT1_MEM_LP_STATE__NONE 0x0 12878c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ROT1_MEM_LP_STATE__LS 0x1 12888c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ROT1_MEM_LP_STATE__DS 0x2 12898c2ecf20Sopenharmony_ci#define BV_PXP_POWER_REG1_ROT1_MEM_LP_STATE__SD 0x4 12908c2ecf20Sopenharmony_ci 12918c2ecf20Sopenharmony_ci#define HW_PXP_DATA_PATH_CTRL0 (0x00000340) 12928c2ecf20Sopenharmony_ci#define HW_PXP_DATA_PATH_CTRL0_SET (0x00000344) 12938c2ecf20Sopenharmony_ci#define HW_PXP_DATA_PATH_CTRL0_CLR (0x00000348) 12948c2ecf20Sopenharmony_ci#define HW_PXP_DATA_PATH_CTRL0_TOG (0x0000034c) 12958c2ecf20Sopenharmony_ci 12968c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX15_SEL 30 12978c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX15_SEL 0xC0000000 12988c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX15_SEL(v) \ 12998c2ecf20Sopenharmony_ci (((v) << 30) & BM_PXP_DATA_PATH_CTRL0_MUX15_SEL) 13008c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX15_SEL__0 0x0 13018c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX15_SEL__1 0x1 13028c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX15_SEL__2 0x2 13038c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX15_SEL__3 0x3 13048c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX14_SEL 28 13058c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX14_SEL 0x30000000 13068c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX14_SEL(v) \ 13078c2ecf20Sopenharmony_ci (((v) << 28) & BM_PXP_DATA_PATH_CTRL0_MUX14_SEL) 13088c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX14_SEL__0 0x0 13098c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX14_SEL__1 0x1 13108c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX14_SEL__2 0x2 13118c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX14_SEL__3 0x3 13128c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX13_SEL 26 13138c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX13_SEL 0x0C000000 13148c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX13_SEL(v) \ 13158c2ecf20Sopenharmony_ci (((v) << 26) & BM_PXP_DATA_PATH_CTRL0_MUX13_SEL) 13168c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX13_SEL__0 0x0 13178c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX13_SEL__1 0x1 13188c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX13_SEL__2 0x2 13198c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX13_SEL__3 0x3 13208c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX12_SEL 24 13218c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX12_SEL 0x03000000 13228c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX12_SEL(v) \ 13238c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_DATA_PATH_CTRL0_MUX12_SEL) 13248c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX12_SEL__0 0x0 13258c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX12_SEL__1 0x1 13268c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX12_SEL__2 0x2 13278c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX12_SEL__3 0x3 13288c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX11_SEL 22 13298c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX11_SEL 0x00C00000 13308c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX11_SEL(v) \ 13318c2ecf20Sopenharmony_ci (((v) << 22) & BM_PXP_DATA_PATH_CTRL0_MUX11_SEL) 13328c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX11_SEL__0 0x0 13338c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX11_SEL__1 0x1 13348c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX11_SEL__2 0x2 13358c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX11_SEL__3 0x3 13368c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX10_SEL 20 13378c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX10_SEL 0x00300000 13388c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX10_SEL(v) \ 13398c2ecf20Sopenharmony_ci (((v) << 20) & BM_PXP_DATA_PATH_CTRL0_MUX10_SEL) 13408c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX10_SEL__0 0x0 13418c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX10_SEL__1 0x1 13428c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX10_SEL__2 0x2 13438c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX10_SEL__3 0x3 13448c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX9_SEL 18 13458c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX9_SEL 0x000C0000 13468c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX9_SEL(v) \ 13478c2ecf20Sopenharmony_ci (((v) << 18) & BM_PXP_DATA_PATH_CTRL0_MUX9_SEL) 13488c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX9_SEL__0 0x0 13498c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX9_SEL__1 0x1 13508c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX9_SEL__2 0x2 13518c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX9_SEL__3 0x3 13528c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX8_SEL 16 13538c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX8_SEL 0x00030000 13548c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX8_SEL(v) \ 13558c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_DATA_PATH_CTRL0_MUX8_SEL) 13568c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX8_SEL__0 0x0 13578c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX8_SEL__1 0x1 13588c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX8_SEL__2 0x2 13598c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX8_SEL__3 0x3 13608c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX7_SEL 14 13618c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX7_SEL 0x0000C000 13628c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX7_SEL(v) \ 13638c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_DATA_PATH_CTRL0_MUX7_SEL) 13648c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX7_SEL__0 0x0 13658c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX7_SEL__1 0x1 13668c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX7_SEL__2 0x2 13678c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX7_SEL__3 0x3 13688c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX6_SEL 12 13698c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX6_SEL 0x00003000 13708c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX6_SEL(v) \ 13718c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_DATA_PATH_CTRL0_MUX6_SEL) 13728c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX6_SEL__0 0x0 13738c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX6_SEL__1 0x1 13748c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX6_SEL__2 0x2 13758c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX6_SEL__3 0x3 13768c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX5_SEL 10 13778c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX5_SEL 0x00000C00 13788c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX5_SEL(v) \ 13798c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_DATA_PATH_CTRL0_MUX5_SEL) 13808c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX5_SEL__0 0x0 13818c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX5_SEL__1 0x1 13828c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX5_SEL__2 0x2 13838c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX5_SEL__3 0x3 13848c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX4_SEL 8 13858c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX4_SEL 0x00000300 13868c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX4_SEL(v) \ 13878c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_DATA_PATH_CTRL0_MUX4_SEL) 13888c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX4_SEL__0 0x0 13898c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX4_SEL__1 0x1 13908c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX4_SEL__2 0x2 13918c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX4_SEL__3 0x3 13928c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX3_SEL 6 13938c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX3_SEL 0x000000C0 13948c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX3_SEL(v) \ 13958c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_DATA_PATH_CTRL0_MUX3_SEL) 13968c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX3_SEL__0 0x0 13978c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX3_SEL__1 0x1 13988c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX3_SEL__2 0x2 13998c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX3_SEL__3 0x3 14008c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX2_SEL 4 14018c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX2_SEL 0x00000030 14028c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX2_SEL(v) \ 14038c2ecf20Sopenharmony_ci (((v) << 4) & BM_PXP_DATA_PATH_CTRL0_MUX2_SEL) 14048c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX2_SEL__0 0x0 14058c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX2_SEL__1 0x1 14068c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX2_SEL__2 0x2 14078c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX2_SEL__3 0x3 14088c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX1_SEL 2 14098c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX1_SEL 0x0000000C 14108c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX1_SEL(v) \ 14118c2ecf20Sopenharmony_ci (((v) << 2) & BM_PXP_DATA_PATH_CTRL0_MUX1_SEL) 14128c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX1_SEL__0 0x0 14138c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX1_SEL__1 0x1 14148c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX1_SEL__2 0x2 14158c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX1_SEL__3 0x3 14168c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL0_MUX0_SEL 0 14178c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL0_MUX0_SEL 0x00000003 14188c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL0_MUX0_SEL(v) \ 14198c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_DATA_PATH_CTRL0_MUX0_SEL) 14208c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX0_SEL__0 0x0 14218c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX0_SEL__1 0x1 14228c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX0_SEL__2 0x2 14238c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL0_MUX0_SEL__3 0x3 14248c2ecf20Sopenharmony_ci 14258c2ecf20Sopenharmony_ci#define HW_PXP_DATA_PATH_CTRL1 (0x00000350) 14268c2ecf20Sopenharmony_ci#define HW_PXP_DATA_PATH_CTRL1_SET (0x00000354) 14278c2ecf20Sopenharmony_ci#define HW_PXP_DATA_PATH_CTRL1_CLR (0x00000358) 14288c2ecf20Sopenharmony_ci#define HW_PXP_DATA_PATH_CTRL1_TOG (0x0000035c) 14298c2ecf20Sopenharmony_ci 14308c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL1_RSVD0 4 14318c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL1_RSVD0 0xFFFFFFF0 14328c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL1_RSVD0(v) \ 14338c2ecf20Sopenharmony_ci (((v) << 4) & BM_PXP_DATA_PATH_CTRL1_RSVD0) 14348c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL1_MUX17_SEL 2 14358c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL1_MUX17_SEL 0x0000000C 14368c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL1_MUX17_SEL(v) \ 14378c2ecf20Sopenharmony_ci (((v) << 2) & BM_PXP_DATA_PATH_CTRL1_MUX17_SEL) 14388c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL1_MUX17_SEL__0 0x0 14398c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL1_MUX17_SEL__1 0x1 14408c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL1_MUX17_SEL__2 0x2 14418c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL1_MUX17_SEL__3 0x3 14428c2ecf20Sopenharmony_ci#define BP_PXP_DATA_PATH_CTRL1_MUX16_SEL 0 14438c2ecf20Sopenharmony_ci#define BM_PXP_DATA_PATH_CTRL1_MUX16_SEL 0x00000003 14448c2ecf20Sopenharmony_ci#define BF_PXP_DATA_PATH_CTRL1_MUX16_SEL(v) \ 14458c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_DATA_PATH_CTRL1_MUX16_SEL) 14468c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL1_MUX16_SEL__0 0x0 14478c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL1_MUX16_SEL__1 0x1 14488c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL1_MUX16_SEL__2 0x2 14498c2ecf20Sopenharmony_ci#define BV_PXP_DATA_PATH_CTRL1_MUX16_SEL__3 0x3 14508c2ecf20Sopenharmony_ci 14518c2ecf20Sopenharmony_ci#define HW_PXP_INIT_MEM_CTRL (0x00000360) 14528c2ecf20Sopenharmony_ci#define HW_PXP_INIT_MEM_CTRL_SET (0x00000364) 14538c2ecf20Sopenharmony_ci#define HW_PXP_INIT_MEM_CTRL_CLR (0x00000368) 14548c2ecf20Sopenharmony_ci#define HW_PXP_INIT_MEM_CTRL_TOG (0x0000036c) 14558c2ecf20Sopenharmony_ci 14568c2ecf20Sopenharmony_ci#define BM_PXP_INIT_MEM_CTRL_START 0x80000000 14578c2ecf20Sopenharmony_ci#define BF_PXP_INIT_MEM_CTRL_START(v) \ 14588c2ecf20Sopenharmony_ci (((v) << 31) & BM_PXP_INIT_MEM_CTRL_START) 14598c2ecf20Sopenharmony_ci#define BP_PXP_INIT_MEM_CTRL_SELECT 27 14608c2ecf20Sopenharmony_ci#define BM_PXP_INIT_MEM_CTRL_SELECT 0x78000000 14618c2ecf20Sopenharmony_ci#define BF_PXP_INIT_MEM_CTRL_SELECT(v) \ 14628c2ecf20Sopenharmony_ci (((v) << 27) & BM_PXP_INIT_MEM_CTRL_SELECT) 14638c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER0_LUT 0x0 14648c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER0_ERR0 0x1 14658c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER0_ERR1 0x2 14668c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER1_LUT 0x3 14678c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER2_LUT 0x4 14688c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__ALU_A 0x5 14698c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__ALU_B 0x6 14708c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__WFE_A_FETCH 0x7 14718c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__WFE_B_FETCH 0x8 14728c2ecf20Sopenharmony_ci#define BV_PXP_INIT_MEM_CTRL_SELECT__RESERVED 0x15 14738c2ecf20Sopenharmony_ci#define BP_PXP_INIT_MEM_CTRL_RSVD0 16 14748c2ecf20Sopenharmony_ci#define BM_PXP_INIT_MEM_CTRL_RSVD0 0x07FF0000 14758c2ecf20Sopenharmony_ci#define BF_PXP_INIT_MEM_CTRL_RSVD0(v) \ 14768c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_INIT_MEM_CTRL_RSVD0) 14778c2ecf20Sopenharmony_ci#define BP_PXP_INIT_MEM_CTRL_ADDR 0 14788c2ecf20Sopenharmony_ci#define BM_PXP_INIT_MEM_CTRL_ADDR 0x0000FFFF 14798c2ecf20Sopenharmony_ci#define BF_PXP_INIT_MEM_CTRL_ADDR(v) \ 14808c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_INIT_MEM_CTRL_ADDR) 14818c2ecf20Sopenharmony_ci 14828c2ecf20Sopenharmony_ci#define HW_PXP_INIT_MEM_DATA (0x00000370) 14838c2ecf20Sopenharmony_ci 14848c2ecf20Sopenharmony_ci#define BP_PXP_INIT_MEM_DATA_DATA 0 14858c2ecf20Sopenharmony_ci#define BM_PXP_INIT_MEM_DATA_DATA 0xFFFFFFFF 14868c2ecf20Sopenharmony_ci#define BF_PXP_INIT_MEM_DATA_DATA(v) (v) 14878c2ecf20Sopenharmony_ci 14888c2ecf20Sopenharmony_ci#define HW_PXP_INIT_MEM_DATA_HIGH (0x00000380) 14898c2ecf20Sopenharmony_ci 14908c2ecf20Sopenharmony_ci#define BP_PXP_INIT_MEM_DATA_HIGH_DATA 0 14918c2ecf20Sopenharmony_ci#define BM_PXP_INIT_MEM_DATA_HIGH_DATA 0xFFFFFFFF 14928c2ecf20Sopenharmony_ci#define BF_PXP_INIT_MEM_DATA_HIGH_DATA(v) (v) 14938c2ecf20Sopenharmony_ci 14948c2ecf20Sopenharmony_ci#define HW_PXP_IRQ_MASK (0x00000390) 14958c2ecf20Sopenharmony_ci#define HW_PXP_IRQ_MASK_SET (0x00000394) 14968c2ecf20Sopenharmony_ci#define HW_PXP_IRQ_MASK_CLR (0x00000398) 14978c2ecf20Sopenharmony_ci#define HW_PXP_IRQ_MASK_TOG (0x0000039c) 14988c2ecf20Sopenharmony_ci 14998c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_COMPRESS_DONE_IRQ_EN 0x80000000 15008c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_COMPRESS_DONE_IRQ_EN(v) \ 15018c2ecf20Sopenharmony_ci (((v) << 31) & BM_PXP_IRQ_MASK_COMPRESS_DONE_IRQ_EN) 15028c2ecf20Sopenharmony_ci#define BP_PXP_IRQ_MASK_RSVD1 16 15038c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_RSVD1 0x7FFF0000 15048c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_RSVD1(v) \ 15058c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_IRQ_MASK_RSVD1) 15068c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_WFE_B_STORE_IRQ_EN 0x00008000 15078c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_WFE_B_STORE_IRQ_EN(v) \ 15088c2ecf20Sopenharmony_ci (((v) << 15) & BM_PXP_IRQ_MASK_WFE_B_STORE_IRQ_EN) 15098c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_WFE_A_STORE_IRQ_EN 0x00004000 15108c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_WFE_A_STORE_IRQ_EN(v) \ 15118c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_IRQ_MASK_WFE_A_STORE_IRQ_EN) 15128c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_DITHER_STORE_IRQ_EN 0x00002000 15138c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_DITHER_STORE_IRQ_EN(v) \ 15148c2ecf20Sopenharmony_ci (((v) << 13) & BM_PXP_IRQ_MASK_DITHER_STORE_IRQ_EN) 15158c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_FIRST_STORE_IRQ_EN 0x00001000 15168c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_FIRST_STORE_IRQ_EN(v) \ 15178c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_IRQ_MASK_FIRST_STORE_IRQ_EN) 15188c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_WFE_B_CH1_STORE_IRQ_EN 0x00000800 15198c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_WFE_B_CH1_STORE_IRQ_EN(v) \ 15208c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_IRQ_MASK_WFE_B_CH1_STORE_IRQ_EN) 15218c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_WFE_B_CH0_STORE_IRQ_EN 0x00000400 15228c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_WFE_B_CH0_STORE_IRQ_EN(v) \ 15238c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_IRQ_MASK_WFE_B_CH0_STORE_IRQ_EN) 15248c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_WFE_A_CH1_STORE_IRQ_EN 0x00000200 15258c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_WFE_A_CH1_STORE_IRQ_EN(v) \ 15268c2ecf20Sopenharmony_ci (((v) << 9) & BM_PXP_IRQ_MASK_WFE_A_CH1_STORE_IRQ_EN) 15278c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_WFE_A_CH0_STORE_IRQ_EN 0x00000100 15288c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_WFE_A_CH0_STORE_IRQ_EN(v) \ 15298c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_IRQ_MASK_WFE_A_CH0_STORE_IRQ_EN) 15308c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_DITHER_CH1_STORE_IRQ_EN 0x00000080 15318c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_DITHER_CH1_STORE_IRQ_EN(v) \ 15328c2ecf20Sopenharmony_ci (((v) << 7) & BM_PXP_IRQ_MASK_DITHER_CH1_STORE_IRQ_EN) 15338c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_DITHER_CH0_STORE_IRQ_EN 0x00000040 15348c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_DITHER_CH0_STORE_IRQ_EN(v) \ 15358c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_IRQ_MASK_DITHER_CH0_STORE_IRQ_EN) 15368c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_DITHER_CH1_PREFETCH_IRQ_EN 0x00000020 15378c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_DITHER_CH1_PREFETCH_IRQ_EN(v) \ 15388c2ecf20Sopenharmony_ci (((v) << 5) & BM_PXP_IRQ_MASK_DITHER_CH1_PREFETCH_IRQ_EN) 15398c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_DITHER_CH0_PREFETCH_IRQ_EN 0x00000010 15408c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_DITHER_CH0_PREFETCH_IRQ_EN(v) \ 15418c2ecf20Sopenharmony_ci (((v) << 4) & BM_PXP_IRQ_MASK_DITHER_CH0_PREFETCH_IRQ_EN) 15428c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_FIRST_CH1_STORE_IRQ_EN 0x00000008 15438c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_FIRST_CH1_STORE_IRQ_EN(v) \ 15448c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_IRQ_MASK_FIRST_CH1_STORE_IRQ_EN) 15458c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_FIRST_CH0_STORE_IRQ_EN 0x00000004 15468c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_FIRST_CH0_STORE_IRQ_EN(v) \ 15478c2ecf20Sopenharmony_ci (((v) << 2) & BM_PXP_IRQ_MASK_FIRST_CH0_STORE_IRQ_EN) 15488c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_FIRST_CH1_PREFETCH_IRQ_EN 0x00000002 15498c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_FIRST_CH1_PREFETCH_IRQ_EN(v) \ 15508c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_IRQ_MASK_FIRST_CH1_PREFETCH_IRQ_EN) 15518c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_MASK_FIRST_CH0_PREFETCH_IRQ_EN 0x00000001 15528c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_MASK_FIRST_CH0_PREFETCH_IRQ_EN(v) \ 15538c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_IRQ_MASK_FIRST_CH0_PREFETCH_IRQ_EN) 15548c2ecf20Sopenharmony_ci 15558c2ecf20Sopenharmony_ci#define HW_PXP_IRQ (0x000003a0) 15568c2ecf20Sopenharmony_ci#define HW_PXP_IRQ_SET (0x000003a4) 15578c2ecf20Sopenharmony_ci#define HW_PXP_IRQ_CLR (0x000003a8) 15588c2ecf20Sopenharmony_ci#define HW_PXP_IRQ_TOG (0x000003ac) 15598c2ecf20Sopenharmony_ci 15608c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_COMPRESS_DONE_IRQ 0x80000000 15618c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_COMPRESS_DONE_IRQ(v) \ 15628c2ecf20Sopenharmony_ci (((v) << 31) & BM_PXP_IRQ_COMPRESS_DONE_IRQ) 15638c2ecf20Sopenharmony_ci#define BP_PXP_IRQ_RSVD1 16 15648c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_RSVD1 0x7FFF0000 15658c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_RSVD1(v) \ 15668c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_IRQ_RSVD1) 15678c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_WFE_B_STORE_IRQ 0x00008000 15688c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_WFE_B_STORE_IRQ(v) \ 15698c2ecf20Sopenharmony_ci (((v) << 15) & BM_PXP_IRQ_WFE_B_STORE_IRQ) 15708c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_WFE_A_STORE_IRQ 0x00004000 15718c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_WFE_A_STORE_IRQ(v) \ 15728c2ecf20Sopenharmony_ci (((v) << 14) & BM_PXP_IRQ_WFE_A_STORE_IRQ) 15738c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_DITHER_STORE_IRQ 0x00002000 15748c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_DITHER_STORE_IRQ(v) \ 15758c2ecf20Sopenharmony_ci (((v) << 13) & BM_PXP_IRQ_DITHER_STORE_IRQ) 15768c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_FIRST_STORE_IRQ 0x00001000 15778c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_FIRST_STORE_IRQ(v) \ 15788c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_IRQ_FIRST_STORE_IRQ) 15798c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_WFE_B_CH1_STORE_IRQ 0x00000800 15808c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_WFE_B_CH1_STORE_IRQ(v) \ 15818c2ecf20Sopenharmony_ci (((v) << 11) & BM_PXP_IRQ_WFE_B_CH1_STORE_IRQ) 15828c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_WFE_B_CH0_STORE_IRQ 0x00000400 15838c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_WFE_B_CH0_STORE_IRQ(v) \ 15848c2ecf20Sopenharmony_ci (((v) << 10) & BM_PXP_IRQ_WFE_B_CH0_STORE_IRQ) 15858c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_WFE_A_CH1_STORE_IRQ 0x00000200 15868c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_WFE_A_CH1_STORE_IRQ(v) \ 15878c2ecf20Sopenharmony_ci (((v) << 9) & BM_PXP_IRQ_WFE_A_CH1_STORE_IRQ) 15888c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_WFE_A_CH0_STORE_IRQ 0x00000100 15898c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_WFE_A_CH0_STORE_IRQ(v) \ 15908c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_IRQ_WFE_A_CH0_STORE_IRQ) 15918c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_DITHER_CH1_STORE_IRQ 0x00000080 15928c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_DITHER_CH1_STORE_IRQ(v) \ 15938c2ecf20Sopenharmony_ci (((v) << 7) & BM_PXP_IRQ_DITHER_CH1_STORE_IRQ) 15948c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_DITHER_CH0_STORE_IRQ 0x00000040 15958c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_DITHER_CH0_STORE_IRQ(v) \ 15968c2ecf20Sopenharmony_ci (((v) << 6) & BM_PXP_IRQ_DITHER_CH0_STORE_IRQ) 15978c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_DITHER_CH1_PREFETCH_IRQ 0x00000020 15988c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_DITHER_CH1_PREFETCH_IRQ(v) \ 15998c2ecf20Sopenharmony_ci (((v) << 5) & BM_PXP_IRQ_DITHER_CH1_PREFETCH_IRQ) 16008c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_DITHER_CH0_PREFETCH_IRQ 0x00000010 16018c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_DITHER_CH0_PREFETCH_IRQ(v) \ 16028c2ecf20Sopenharmony_ci (((v) << 4) & BM_PXP_IRQ_DITHER_CH0_PREFETCH_IRQ) 16038c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_FIRST_CH1_STORE_IRQ 0x00000008 16048c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_FIRST_CH1_STORE_IRQ(v) \ 16058c2ecf20Sopenharmony_ci (((v) << 3) & BM_PXP_IRQ_FIRST_CH1_STORE_IRQ) 16068c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_FIRST_CH0_STORE_IRQ 0x00000004 16078c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_FIRST_CH0_STORE_IRQ(v) \ 16088c2ecf20Sopenharmony_ci (((v) << 2) & BM_PXP_IRQ_FIRST_CH0_STORE_IRQ) 16098c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_FIRST_CH1_PREFETCH_IRQ 0x00000002 16108c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_FIRST_CH1_PREFETCH_IRQ(v) \ 16118c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_IRQ_FIRST_CH1_PREFETCH_IRQ) 16128c2ecf20Sopenharmony_ci#define BM_PXP_IRQ_FIRST_CH0_PREFETCH_IRQ 0x00000001 16138c2ecf20Sopenharmony_ci#define BF_PXP_IRQ_FIRST_CH0_PREFETCH_IRQ(v) \ 16148c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_IRQ_FIRST_CH0_PREFETCH_IRQ) 16158c2ecf20Sopenharmony_ci 16168c2ecf20Sopenharmony_ci#define HW_PXP_NEXT (0x00000400) 16178c2ecf20Sopenharmony_ci 16188c2ecf20Sopenharmony_ci#define BP_PXP_NEXT_POINTER 2 16198c2ecf20Sopenharmony_ci#define BM_PXP_NEXT_POINTER 0xFFFFFFFC 16208c2ecf20Sopenharmony_ci#define BF_PXP_NEXT_POINTER(v) \ 16218c2ecf20Sopenharmony_ci (((v) << 2) & BM_PXP_NEXT_POINTER) 16228c2ecf20Sopenharmony_ci#define BM_PXP_NEXT_RSVD 0x00000002 16238c2ecf20Sopenharmony_ci#define BF_PXP_NEXT_RSVD(v) \ 16248c2ecf20Sopenharmony_ci (((v) << 1) & BM_PXP_NEXT_RSVD) 16258c2ecf20Sopenharmony_ci#define BM_PXP_NEXT_ENABLED 0x00000001 16268c2ecf20Sopenharmony_ci#define BF_PXP_NEXT_ENABLED(v) \ 16278c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_NEXT_ENABLED) 16288c2ecf20Sopenharmony_ci 16298c2ecf20Sopenharmony_ci#define HW_PXP_DEBUGCTRL (0x00000410) 16308c2ecf20Sopenharmony_ci 16318c2ecf20Sopenharmony_ci#define BP_PXP_DEBUGCTRL_RSVD 12 16328c2ecf20Sopenharmony_ci#define BM_PXP_DEBUGCTRL_RSVD 0xFFFFF000 16338c2ecf20Sopenharmony_ci#define BF_PXP_DEBUGCTRL_RSVD(v) \ 16348c2ecf20Sopenharmony_ci (((v) << 12) & BM_PXP_DEBUGCTRL_RSVD) 16358c2ecf20Sopenharmony_ci#define BP_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT 8 16368c2ecf20Sopenharmony_ci#define BM_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT 0x00000F00 16378c2ecf20Sopenharmony_ci#define BF_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT(v) \ 16388c2ecf20Sopenharmony_ci (((v) << 8) & BM_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT) 16398c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__NONE 0x0 16408c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__MISS_CNT 0x1 16418c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__HIT_CNT 0x2 16428c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__LAT_CNT 0x4 16438c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__MAX_LAT 0x8 16448c2ecf20Sopenharmony_ci#define BP_PXP_DEBUGCTRL_SELECT 0 16458c2ecf20Sopenharmony_ci#define BM_PXP_DEBUGCTRL_SELECT 0x000000FF 16468c2ecf20Sopenharmony_ci#define BF_PXP_DEBUGCTRL_SELECT(v) \ 16478c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_DEBUGCTRL_SELECT) 16488c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__NONE 0x0 16498c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__CTRL 0x1 16508c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__PSBUF 0x2 16518c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__PSBAX 0x3 16528c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__PSBAY 0x4 16538c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__ASBUF 0x5 16548c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__ROTATION 0x6 16558c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__OUTBUF0 0x7 16568c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__OUTBUF1 0x8 16578c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__OUTBUF2 0x9 16588c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__LUT_STAT 0x10 16598c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__LUT_MISS 0x11 16608c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__LUT_HIT 0x12 16618c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__LUT_LAT 0x13 16628c2ecf20Sopenharmony_ci#define BV_PXP_DEBUGCTRL_SELECT__LUT_MAX_LAT 0x14 16638c2ecf20Sopenharmony_ci 16648c2ecf20Sopenharmony_ci#define HW_PXP_DEBUG (0x00000420) 16658c2ecf20Sopenharmony_ci 16668c2ecf20Sopenharmony_ci#define BP_PXP_DEBUG_DATA 0 16678c2ecf20Sopenharmony_ci#define BM_PXP_DEBUG_DATA 0xFFFFFFFF 16688c2ecf20Sopenharmony_ci#define BF_PXP_DEBUG_DATA(v) (v) 16698c2ecf20Sopenharmony_ci 16708c2ecf20Sopenharmony_ci#define HW_PXP_VERSION (0x00000430) 16718c2ecf20Sopenharmony_ci 16728c2ecf20Sopenharmony_ci#define BP_PXP_VERSION_MAJOR 24 16738c2ecf20Sopenharmony_ci#define BM_PXP_VERSION_MAJOR 0xFF000000 16748c2ecf20Sopenharmony_ci#define BF_PXP_VERSION_MAJOR(v) \ 16758c2ecf20Sopenharmony_ci (((v) << 24) & BM_PXP_VERSION_MAJOR) 16768c2ecf20Sopenharmony_ci#define BP_PXP_VERSION_MINOR 16 16778c2ecf20Sopenharmony_ci#define BM_PXP_VERSION_MINOR 0x00FF0000 16788c2ecf20Sopenharmony_ci#define BF_PXP_VERSION_MINOR(v) \ 16798c2ecf20Sopenharmony_ci (((v) << 16) & BM_PXP_VERSION_MINOR) 16808c2ecf20Sopenharmony_ci#define BP_PXP_VERSION_STEP 0 16818c2ecf20Sopenharmony_ci#define BM_PXP_VERSION_STEP 0x0000FFFF 16828c2ecf20Sopenharmony_ci#define BF_PXP_VERSION_STEP(v) \ 16838c2ecf20Sopenharmony_ci (((v) << 0) & BM_PXP_VERSION_STEP) 16848c2ecf20Sopenharmony_ci 16858c2ecf20Sopenharmony_ci#endif /* __IMX_PXP_H__ */ 1686