18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  Driver for the Conexant CX25821 PCIe bridge
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) 2009 Conexant Systems Inc.
68c2ecf20Sopenharmony_ci *  Authors  <shu.lin@conexant.com>, <hiep.huynh@conexant.com>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef __CX25821_REGISTERS__
108c2ecf20Sopenharmony_ci#define __CX25821_REGISTERS__
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/* Risc Instructions */
138c2ecf20Sopenharmony_ci#define RISC_CNT_INC	 0x00010000
148c2ecf20Sopenharmony_ci#define RISC_CNT_RESET	 0x00030000
158c2ecf20Sopenharmony_ci#define RISC_IRQ1		 0x01000000
168c2ecf20Sopenharmony_ci#define RISC_IRQ2		 0x02000000
178c2ecf20Sopenharmony_ci#define RISC_EOL		 0x04000000
188c2ecf20Sopenharmony_ci#define RISC_SOL		 0x08000000
198c2ecf20Sopenharmony_ci#define RISC_WRITE		 0x10000000
208c2ecf20Sopenharmony_ci#define RISC_SKIP		 0x20000000
218c2ecf20Sopenharmony_ci#define RISC_JUMP		 0x70000000
228c2ecf20Sopenharmony_ci#define RISC_SYNC		 0x80000000
238c2ecf20Sopenharmony_ci#define RISC_RESYNC		 0x80008000
248c2ecf20Sopenharmony_ci#define RISC_READ		 0x90000000
258c2ecf20Sopenharmony_ci#define RISC_WRITERM	 0xB0000000
268c2ecf20Sopenharmony_ci#define RISC_WRITECM	 0xC0000000
278c2ecf20Sopenharmony_ci#define RISC_WRITECR	 0xD0000000
288c2ecf20Sopenharmony_ci#define RISC_WRITEC		 0x50000000
298c2ecf20Sopenharmony_ci#define RISC_READC		 0xA0000000
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#define RISC_SYNC_ODD		 0x00000000
328c2ecf20Sopenharmony_ci#define RISC_SYNC_EVEN		 0x00000200
338c2ecf20Sopenharmony_ci#define RISC_SYNC_ODD_VBI	 0x00000006
348c2ecf20Sopenharmony_ci#define RISC_SYNC_EVEN_VBI	 0x00000207
358c2ecf20Sopenharmony_ci#define RISC_NOOP			 0xF0000000
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci/*****************************************************************************
388c2ecf20Sopenharmony_ci* ASB SRAM
398c2ecf20Sopenharmony_ci *****************************************************************************/
408c2ecf20Sopenharmony_ci#define  TX_SRAM                   0x000000	/* Transmit SRAM */
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*****************************************************************************/
438c2ecf20Sopenharmony_ci#define  RX_RAM                    0x010000	/* Receive SRAM */
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci/*****************************************************************************
468c2ecf20Sopenharmony_ci* Application Layer (AL)
478c2ecf20Sopenharmony_ci *****************************************************************************/
488c2ecf20Sopenharmony_ci#define  DEV_CNTRL2                0x040000	/* Device control */
498c2ecf20Sopenharmony_ci#define  FLD_RUN_RISC              0x00000020
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci/* ***************************************************************************** */
528c2ecf20Sopenharmony_ci#define  PCI_INT_MSK               0x040010	/* PCI interrupt mask */
538c2ecf20Sopenharmony_ci#define  PCI_INT_STAT              0x040014	/* PCI interrupt status */
548c2ecf20Sopenharmony_ci#define  PCI_INT_MSTAT             0x040018	/* PCI interrupt masked status */
558c2ecf20Sopenharmony_ci#define  FLD_HAMMERHEAD_INT        (1 << 27)
568c2ecf20Sopenharmony_ci#define  FLD_UART_INT              (1 << 26)
578c2ecf20Sopenharmony_ci#define  FLD_IRQN_INT              (1 << 25)
588c2ecf20Sopenharmony_ci#define  FLD_TM_INT                (1 << 28)
598c2ecf20Sopenharmony_ci#define  FLD_I2C_3_RACK            (1 << 27)
608c2ecf20Sopenharmony_ci#define  FLD_I2C_3_INT             (1 << 26)
618c2ecf20Sopenharmony_ci#define  FLD_I2C_2_RACK            (1 << 25)
628c2ecf20Sopenharmony_ci#define  FLD_I2C_2_INT             (1 << 24)
638c2ecf20Sopenharmony_ci#define  FLD_I2C_1_RACK            (1 << 23)
648c2ecf20Sopenharmony_ci#define  FLD_I2C_1_INT             (1 << 22)
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci#define  FLD_APB_DMA_BERR_INT      (1 << 21)
678c2ecf20Sopenharmony_ci#define  FLD_AL_WR_BERR_INT        (1 << 20)
688c2ecf20Sopenharmony_ci#define  FLD_AL_RD_BERR_INT        (1 << 19)
698c2ecf20Sopenharmony_ci#define  FLD_RISC_WR_BERR_INT      (1 << 18)
708c2ecf20Sopenharmony_ci#define  FLD_RISC_RD_BERR_INT      (1 << 17)
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci#define  FLD_VID_I_INT             (1 << 8)
738c2ecf20Sopenharmony_ci#define  FLD_VID_H_INT             (1 << 7)
748c2ecf20Sopenharmony_ci#define  FLD_VID_G_INT             (1 << 6)
758c2ecf20Sopenharmony_ci#define  FLD_VID_F_INT             (1 << 5)
768c2ecf20Sopenharmony_ci#define  FLD_VID_E_INT             (1 << 4)
778c2ecf20Sopenharmony_ci#define  FLD_VID_D_INT             (1 << 3)
788c2ecf20Sopenharmony_ci#define  FLD_VID_C_INT             (1 << 2)
798c2ecf20Sopenharmony_ci#define  FLD_VID_B_INT             (1 << 1)
808c2ecf20Sopenharmony_ci#define  FLD_VID_A_INT             (1 << 0)
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci/* ***************************************************************************** */
838c2ecf20Sopenharmony_ci#define  VID_A_INT_MSK             0x040020	/* Video A interrupt mask */
848c2ecf20Sopenharmony_ci#define  VID_A_INT_STAT            0x040024	/* Video A interrupt status */
858c2ecf20Sopenharmony_ci#define  VID_A_INT_MSTAT           0x040028	/* Video A interrupt masked status */
868c2ecf20Sopenharmony_ci#define  VID_A_INT_SSTAT           0x04002C	/* Video A interrupt set status */
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci/* ***************************************************************************** */
898c2ecf20Sopenharmony_ci#define  VID_B_INT_MSK             0x040030	/* Video B interrupt mask */
908c2ecf20Sopenharmony_ci#define  VID_B_INT_STAT            0x040034	/* Video B interrupt status */
918c2ecf20Sopenharmony_ci#define  VID_B_INT_MSTAT           0x040038	/* Video B interrupt masked status */
928c2ecf20Sopenharmony_ci#define  VID_B_INT_SSTAT           0x04003C	/* Video B interrupt set status */
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ci/* ***************************************************************************** */
958c2ecf20Sopenharmony_ci#define  VID_C_INT_MSK             0x040040	/* Video C interrupt mask */
968c2ecf20Sopenharmony_ci#define  VID_C_INT_STAT            0x040044	/* Video C interrupt status */
978c2ecf20Sopenharmony_ci#define  VID_C_INT_MSTAT           0x040048	/* Video C interrupt masked status */
988c2ecf20Sopenharmony_ci#define  VID_C_INT_SSTAT           0x04004C	/* Video C interrupt set status */
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1018c2ecf20Sopenharmony_ci#define  VID_D_INT_MSK             0x040050	/* Video D interrupt mask */
1028c2ecf20Sopenharmony_ci#define  VID_D_INT_STAT            0x040054	/* Video D interrupt status */
1038c2ecf20Sopenharmony_ci#define  VID_D_INT_MSTAT           0x040058	/* Video D interrupt masked status */
1048c2ecf20Sopenharmony_ci#define  VID_D_INT_SSTAT           0x04005C	/* Video D interrupt set status */
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1078c2ecf20Sopenharmony_ci#define  VID_E_INT_MSK             0x040060	/* Video E interrupt mask */
1088c2ecf20Sopenharmony_ci#define  VID_E_INT_STAT            0x040064	/* Video E interrupt status */
1098c2ecf20Sopenharmony_ci#define  VID_E_INT_MSTAT           0x040068	/* Video E interrupt masked status */
1108c2ecf20Sopenharmony_ci#define  VID_E_INT_SSTAT           0x04006C	/* Video E interrupt set status */
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1138c2ecf20Sopenharmony_ci#define  VID_F_INT_MSK             0x040070	/* Video F interrupt mask */
1148c2ecf20Sopenharmony_ci#define  VID_F_INT_STAT            0x040074	/* Video F interrupt status */
1158c2ecf20Sopenharmony_ci#define  VID_F_INT_MSTAT           0x040078	/* Video F interrupt masked status */
1168c2ecf20Sopenharmony_ci#define  VID_F_INT_SSTAT           0x04007C	/* Video F interrupt set status */
1178c2ecf20Sopenharmony_ci
1188c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1198c2ecf20Sopenharmony_ci#define  VID_G_INT_MSK             0x040080	/* Video G interrupt mask */
1208c2ecf20Sopenharmony_ci#define  VID_G_INT_STAT            0x040084	/* Video G interrupt status */
1218c2ecf20Sopenharmony_ci#define  VID_G_INT_MSTAT           0x040088	/* Video G interrupt masked status */
1228c2ecf20Sopenharmony_ci#define  VID_G_INT_SSTAT           0x04008C	/* Video G interrupt set status */
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1258c2ecf20Sopenharmony_ci#define  VID_H_INT_MSK             0x040090	/* Video H interrupt mask */
1268c2ecf20Sopenharmony_ci#define  VID_H_INT_STAT            0x040094	/* Video H interrupt status */
1278c2ecf20Sopenharmony_ci#define  VID_H_INT_MSTAT           0x040098	/* Video H interrupt masked status */
1288c2ecf20Sopenharmony_ci#define  VID_H_INT_SSTAT           0x04009C	/* Video H interrupt set status */
1298c2ecf20Sopenharmony_ci
1308c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1318c2ecf20Sopenharmony_ci#define  VID_I_INT_MSK             0x0400A0	/* Video I interrupt mask */
1328c2ecf20Sopenharmony_ci#define  VID_I_INT_STAT            0x0400A4	/* Video I interrupt status */
1338c2ecf20Sopenharmony_ci#define  VID_I_INT_MSTAT           0x0400A8	/* Video I interrupt masked status */
1348c2ecf20Sopenharmony_ci#define  VID_I_INT_SSTAT           0x0400AC	/* Video I interrupt set status */
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1378c2ecf20Sopenharmony_ci#define  VID_J_INT_MSK             0x0400B0	/* Video J interrupt mask */
1388c2ecf20Sopenharmony_ci#define  VID_J_INT_STAT            0x0400B4	/* Video J interrupt status */
1398c2ecf20Sopenharmony_ci#define  VID_J_INT_MSTAT           0x0400B8	/* Video J interrupt masked status */
1408c2ecf20Sopenharmony_ci#define  VID_J_INT_SSTAT           0x0400BC	/* Video J interrupt set status */
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci#define  FLD_VID_SRC_OPC_ERR       0x00020000
1438c2ecf20Sopenharmony_ci#define  FLD_VID_DST_OPC_ERR       0x00010000
1448c2ecf20Sopenharmony_ci#define  FLD_VID_SRC_SYNC          0x00002000
1458c2ecf20Sopenharmony_ci#define  FLD_VID_DST_SYNC          0x00001000
1468c2ecf20Sopenharmony_ci#define  FLD_VID_SRC_UF            0x00000200
1478c2ecf20Sopenharmony_ci#define  FLD_VID_DST_OF            0x00000100
1488c2ecf20Sopenharmony_ci#define  FLD_VID_SRC_RISC2         0x00000020
1498c2ecf20Sopenharmony_ci#define  FLD_VID_DST_RISC2         0x00000010
1508c2ecf20Sopenharmony_ci#define  FLD_VID_SRC_RISC1         0x00000002
1518c2ecf20Sopenharmony_ci#define  FLD_VID_DST_RISC1         0x00000001
1528c2ecf20Sopenharmony_ci#define  FLD_VID_SRC_ERRORS		(FLD_VID_SRC_OPC_ERR | FLD_VID_SRC_SYNC | FLD_VID_SRC_UF)
1538c2ecf20Sopenharmony_ci#define  FLD_VID_DST_ERRORS		(FLD_VID_DST_OPC_ERR | FLD_VID_DST_SYNC | FLD_VID_DST_OF)
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1568c2ecf20Sopenharmony_ci#define  AUD_A_INT_MSK             0x0400C0	/* Audio Int interrupt mask */
1578c2ecf20Sopenharmony_ci#define  AUD_A_INT_STAT            0x0400C4	/* Audio Int interrupt status */
1588c2ecf20Sopenharmony_ci#define  AUD_A_INT_MSTAT           0x0400C8	/* Audio Int interrupt masked status */
1598c2ecf20Sopenharmony_ci#define  AUD_A_INT_SSTAT           0x0400CC	/* Audio Int interrupt set status */
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1628c2ecf20Sopenharmony_ci#define  AUD_B_INT_MSK             0x0400D0	/* Audio Int interrupt mask */
1638c2ecf20Sopenharmony_ci#define  AUD_B_INT_STAT            0x0400D4	/* Audio Int interrupt status */
1648c2ecf20Sopenharmony_ci#define  AUD_B_INT_MSTAT           0x0400D8	/* Audio Int interrupt masked status */
1658c2ecf20Sopenharmony_ci#define  AUD_B_INT_SSTAT           0x0400DC	/* Audio Int interrupt set status */
1668c2ecf20Sopenharmony_ci
1678c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1688c2ecf20Sopenharmony_ci#define  AUD_C_INT_MSK             0x0400E0	/* Audio Int interrupt mask */
1698c2ecf20Sopenharmony_ci#define  AUD_C_INT_STAT            0x0400E4	/* Audio Int interrupt status */
1708c2ecf20Sopenharmony_ci#define  AUD_C_INT_MSTAT           0x0400E8	/* Audio Int interrupt masked status */
1718c2ecf20Sopenharmony_ci#define  AUD_C_INT_SSTAT           0x0400EC	/* Audio Int interrupt set status */
1728c2ecf20Sopenharmony_ci
1738c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1748c2ecf20Sopenharmony_ci#define  AUD_D_INT_MSK             0x0400F0	/* Audio Int interrupt mask */
1758c2ecf20Sopenharmony_ci#define  AUD_D_INT_STAT            0x0400F4	/* Audio Int interrupt status */
1768c2ecf20Sopenharmony_ci#define  AUD_D_INT_MSTAT           0x0400F8	/* Audio Int interrupt masked status */
1778c2ecf20Sopenharmony_ci#define  AUD_D_INT_SSTAT           0x0400FC	/* Audio Int interrupt set status */
1788c2ecf20Sopenharmony_ci
1798c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1808c2ecf20Sopenharmony_ci#define  AUD_E_INT_MSK             0x040100	/* Audio Int interrupt mask */
1818c2ecf20Sopenharmony_ci#define  AUD_E_INT_STAT            0x040104	/* Audio Int interrupt status */
1828c2ecf20Sopenharmony_ci#define  AUD_E_INT_MSTAT           0x040108	/* Audio Int interrupt masked status */
1838c2ecf20Sopenharmony_ci#define  AUD_E_INT_SSTAT           0x04010C	/* Audio Int interrupt set status */
1848c2ecf20Sopenharmony_ci
1858c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_OPC_ERR       0x00020000
1868c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_OPC_ERR       0x00010000
1878c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_SYNC          0x00002000
1888c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_SYNC          0x00001000
1898c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_OF            0x00000200
1908c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_OF            0x00000100
1918c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_RISCI2        0x00000020
1928c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_RISCI2        0x00000010
1938c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_RISCI1        0x00000002
1948c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_RISCI1        0x00000001
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci/* ***************************************************************************** */
1978c2ecf20Sopenharmony_ci#define  MBIF_A_INT_MSK             0x040110	/* MBIF Int interrupt mask */
1988c2ecf20Sopenharmony_ci#define  MBIF_A_INT_STAT            0x040114	/* MBIF Int interrupt status */
1998c2ecf20Sopenharmony_ci#define  MBIF_A_INT_MSTAT           0x040118	/* MBIF Int interrupt masked status */
2008c2ecf20Sopenharmony_ci#define  MBIF_A_INT_SSTAT           0x04011C	/* MBIF Int interrupt set status */
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2038c2ecf20Sopenharmony_ci#define  MBIF_B_INT_MSK             0x040120	/* MBIF Int interrupt mask */
2048c2ecf20Sopenharmony_ci#define  MBIF_B_INT_STAT            0x040124	/* MBIF Int interrupt status */
2058c2ecf20Sopenharmony_ci#define  MBIF_B_INT_MSTAT           0x040128	/* MBIF Int interrupt masked status */
2068c2ecf20Sopenharmony_ci#define  MBIF_B_INT_SSTAT           0x04012C	/* MBIF Int interrupt set status */
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci#define  FLD_MBIF_DST_OPC_ERR       0x00010000
2098c2ecf20Sopenharmony_ci#define  FLD_MBIF_DST_SYNC          0x00001000
2108c2ecf20Sopenharmony_ci#define  FLD_MBIF_DST_OF            0x00000100
2118c2ecf20Sopenharmony_ci#define  FLD_MBIF_DST_RISCI2        0x00000010
2128c2ecf20Sopenharmony_ci#define  FLD_MBIF_DST_RISCI1        0x00000001
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2158c2ecf20Sopenharmony_ci#define  AUD_EXT_INT_MSK           0x040060	/* Audio Ext interrupt mask */
2168c2ecf20Sopenharmony_ci#define  AUD_EXT_INT_STAT          0x040064	/* Audio Ext interrupt status */
2178c2ecf20Sopenharmony_ci#define  AUD_EXT_INT_MSTAT         0x040068	/* Audio Ext interrupt masked status */
2188c2ecf20Sopenharmony_ci#define  AUD_EXT_INT_SSTAT         0x04006C	/* Audio Ext interrupt set status */
2198c2ecf20Sopenharmony_ci#define  FLD_AUD_EXT_OPC_ERR       0x00010000
2208c2ecf20Sopenharmony_ci#define  FLD_AUD_EXT_SYNC          0x00001000
2218c2ecf20Sopenharmony_ci#define  FLD_AUD_EXT_OF            0x00000100
2228c2ecf20Sopenharmony_ci#define  FLD_AUD_EXT_RISCI2        0x00000010
2238c2ecf20Sopenharmony_ci#define  FLD_AUD_EXT_RISCI1        0x00000001
2248c2ecf20Sopenharmony_ci
2258c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2268c2ecf20Sopenharmony_ci#define  GPIO_LO                   0x110010	/* Lower  of GPIO pins [31:0] */
2278c2ecf20Sopenharmony_ci#define  GPIO_HI                   0x110014	/* Upper WORD  of GPIO pins [47:31] */
2288c2ecf20Sopenharmony_ci
2298c2ecf20Sopenharmony_ci#define  GPIO_LO_OE                0x110018	/* Lower  of GPIO output enable [31:0] */
2308c2ecf20Sopenharmony_ci#define  GPIO_HI_OE                0x11001C	/* Upper word  of GPIO output enable [47:32] */
2318c2ecf20Sopenharmony_ci
2328c2ecf20Sopenharmony_ci#define  GPIO_LO_INT_MSK           0x11003C	/* GPIO interrupt mask */
2338c2ecf20Sopenharmony_ci#define  GPIO_LO_INT_STAT          0x110044	/* GPIO interrupt status */
2348c2ecf20Sopenharmony_ci#define  GPIO_LO_INT_MSTAT         0x11004C	/* GPIO interrupt masked status */
2358c2ecf20Sopenharmony_ci#define  GPIO_LO_ISM_SNS           0x110054	/* GPIO interrupt sensitivity */
2368c2ecf20Sopenharmony_ci#define  GPIO_LO_ISM_POL           0x11005C	/* GPIO interrupt polarity */
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci#define  GPIO_HI_INT_MSK           0x110040	/* GPIO interrupt mask */
2398c2ecf20Sopenharmony_ci#define  GPIO_HI_INT_STAT          0x110048	/* GPIO interrupt status */
2408c2ecf20Sopenharmony_ci#define  GPIO_HI_INT_MSTAT         0x110050	/* GPIO interrupt masked status */
2418c2ecf20Sopenharmony_ci#define  GPIO_HI_ISM_SNS           0x110058	/* GPIO interrupt sensitivity */
2428c2ecf20Sopenharmony_ci#define  GPIO_HI_ISM_POL           0x110060	/* GPIO interrupt polarity */
2438c2ecf20Sopenharmony_ci
2448c2ecf20Sopenharmony_ci#define  FLD_GPIO43_INT            (1 << 11)
2458c2ecf20Sopenharmony_ci#define  FLD_GPIO42_INT            (1 << 10)
2468c2ecf20Sopenharmony_ci#define  FLD_GPIO41_INT            (1 << 9)
2478c2ecf20Sopenharmony_ci#define  FLD_GPIO40_INT            (1 << 8)
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_ci#define  FLD_GPIO9_INT             (1 << 9)
2508c2ecf20Sopenharmony_ci#define  FLD_GPIO8_INT             (1 << 8)
2518c2ecf20Sopenharmony_ci#define  FLD_GPIO7_INT             (1 << 7)
2528c2ecf20Sopenharmony_ci#define  FLD_GPIO6_INT             (1 << 6)
2538c2ecf20Sopenharmony_ci#define  FLD_GPIO5_INT             (1 << 5)
2548c2ecf20Sopenharmony_ci#define  FLD_GPIO4_INT             (1 << 4)
2558c2ecf20Sopenharmony_ci#define  FLD_GPIO3_INT             (1 << 3)
2568c2ecf20Sopenharmony_ci#define  FLD_GPIO2_INT             (1 << 2)
2578c2ecf20Sopenharmony_ci#define  FLD_GPIO1_INT             (1 << 1)
2588c2ecf20Sopenharmony_ci#define  FLD_GPIO0_INT             (1 << 0)
2598c2ecf20Sopenharmony_ci
2608c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2618c2ecf20Sopenharmony_ci#define  TC_REQ                    0x040090	/* Rider PCI Express traFFic class request */
2628c2ecf20Sopenharmony_ci
2638c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2648c2ecf20Sopenharmony_ci#define  TC_REQ_SET                0x040094	/* Rider PCI Express traFFic class request set */
2658c2ecf20Sopenharmony_ci
2668c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2678c2ecf20Sopenharmony_ci/* Rider */
2688c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_ci/* PCI Compatible Header */
2718c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2728c2ecf20Sopenharmony_ci#define  RDR_CFG0                  0x050000
2738c2ecf20Sopenharmony_ci#define  RDR_VENDOR_DEVICE_ID_CFG  0x050000
2748c2ecf20Sopenharmony_ci
2758c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2768c2ecf20Sopenharmony_ci#define  RDR_CFG1                  0x050004
2778c2ecf20Sopenharmony_ci
2788c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2798c2ecf20Sopenharmony_ci#define  RDR_CFG2                  0x050008
2808c2ecf20Sopenharmony_ci
2818c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2828c2ecf20Sopenharmony_ci#define  RDR_CFG3                  0x05000C
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2858c2ecf20Sopenharmony_ci#define  RDR_CFG4                  0x050010
2868c2ecf20Sopenharmony_ci
2878c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2888c2ecf20Sopenharmony_ci#define  RDR_CFG5                  0x050014
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2918c2ecf20Sopenharmony_ci#define  RDR_CFG6                  0x050018
2928c2ecf20Sopenharmony_ci
2938c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2948c2ecf20Sopenharmony_ci#define  RDR_CFG7                  0x05001C
2958c2ecf20Sopenharmony_ci
2968c2ecf20Sopenharmony_ci/* ***************************************************************************** */
2978c2ecf20Sopenharmony_ci#define  RDR_CFG8                  0x050020
2988c2ecf20Sopenharmony_ci
2998c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3008c2ecf20Sopenharmony_ci#define  RDR_CFG9                  0x050024
3018c2ecf20Sopenharmony_ci
3028c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3038c2ecf20Sopenharmony_ci#define  RDR_CFGA                  0x050028
3048c2ecf20Sopenharmony_ci
3058c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3068c2ecf20Sopenharmony_ci#define  RDR_CFGB                  0x05002C
3078c2ecf20Sopenharmony_ci#define  RDR_SUSSYSTEM_ID_CFG      0x05002C
3088c2ecf20Sopenharmony_ci
3098c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3108c2ecf20Sopenharmony_ci#define  RDR_CFGC                  0x050030
3118c2ecf20Sopenharmony_ci
3128c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3138c2ecf20Sopenharmony_ci#define  RDR_CFGD                  0x050034
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3168c2ecf20Sopenharmony_ci#define  RDR_CFGE                  0x050038
3178c2ecf20Sopenharmony_ci
3188c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3198c2ecf20Sopenharmony_ci#define  RDR_CFGF                  0x05003C
3208c2ecf20Sopenharmony_ci
3218c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3228c2ecf20Sopenharmony_ci/* PCI-Express Capabilities */
3238c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3248c2ecf20Sopenharmony_ci#define  RDR_PECAP                 0x050040
3258c2ecf20Sopenharmony_ci
3268c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3278c2ecf20Sopenharmony_ci#define  RDR_PEDEVCAP              0x050044
3288c2ecf20Sopenharmony_ci
3298c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3308c2ecf20Sopenharmony_ci#define  RDR_PEDEVSC               0x050048
3318c2ecf20Sopenharmony_ci
3328c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3338c2ecf20Sopenharmony_ci#define  RDR_PELINKCAP             0x05004C
3348c2ecf20Sopenharmony_ci
3358c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3368c2ecf20Sopenharmony_ci#define  RDR_PELINKSC              0x050050
3378c2ecf20Sopenharmony_ci
3388c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3398c2ecf20Sopenharmony_ci#define  RDR_PMICAP                0x050080
3408c2ecf20Sopenharmony_ci
3418c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3428c2ecf20Sopenharmony_ci#define  RDR_PMCSR                 0x050084
3438c2ecf20Sopenharmony_ci
3448c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3458c2ecf20Sopenharmony_ci#define  RDR_VPDCAP                0x050090
3468c2ecf20Sopenharmony_ci
3478c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3488c2ecf20Sopenharmony_ci#define  RDR_VPDDATA               0x050094
3498c2ecf20Sopenharmony_ci
3508c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3518c2ecf20Sopenharmony_ci#define  RDR_MSICAP                0x0500A0
3528c2ecf20Sopenharmony_ci
3538c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3548c2ecf20Sopenharmony_ci#define  RDR_MSIARL                0x0500A4
3558c2ecf20Sopenharmony_ci
3568c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3578c2ecf20Sopenharmony_ci#define  RDR_MSIARU                0x0500A8
3588c2ecf20Sopenharmony_ci
3598c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3608c2ecf20Sopenharmony_ci#define  RDR_MSIDATA               0x0500AC
3618c2ecf20Sopenharmony_ci
3628c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3638c2ecf20Sopenharmony_ci/* PCI Express Extended Capabilities */
3648c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3658c2ecf20Sopenharmony_ci#define  RDR_AERXCAP               0x050100
3668c2ecf20Sopenharmony_ci
3678c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3688c2ecf20Sopenharmony_ci#define  RDR_AERUESTA              0x050104
3698c2ecf20Sopenharmony_ci
3708c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3718c2ecf20Sopenharmony_ci#define  RDR_AERUEMSK              0x050108
3728c2ecf20Sopenharmony_ci
3738c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3748c2ecf20Sopenharmony_ci#define  RDR_AERUESEV              0x05010C
3758c2ecf20Sopenharmony_ci
3768c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3778c2ecf20Sopenharmony_ci#define  RDR_AERCESTA              0x050110
3788c2ecf20Sopenharmony_ci
3798c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3808c2ecf20Sopenharmony_ci#define  RDR_AERCEMSK              0x050114
3818c2ecf20Sopenharmony_ci
3828c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3838c2ecf20Sopenharmony_ci#define  RDR_AERCC                 0x050118
3848c2ecf20Sopenharmony_ci
3858c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3868c2ecf20Sopenharmony_ci#define  RDR_AERHL0                0x05011C
3878c2ecf20Sopenharmony_ci
3888c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3898c2ecf20Sopenharmony_ci#define  RDR_AERHL1                0x050120
3908c2ecf20Sopenharmony_ci
3918c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3928c2ecf20Sopenharmony_ci#define  RDR_AERHL2                0x050124
3938c2ecf20Sopenharmony_ci
3948c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3958c2ecf20Sopenharmony_ci#define  RDR_AERHL3                0x050128
3968c2ecf20Sopenharmony_ci
3978c2ecf20Sopenharmony_ci/* ***************************************************************************** */
3988c2ecf20Sopenharmony_ci#define  RDR_VCXCAP                0x050200
3998c2ecf20Sopenharmony_ci
4008c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4018c2ecf20Sopenharmony_ci#define  RDR_VCCAP1                0x050204
4028c2ecf20Sopenharmony_ci
4038c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4048c2ecf20Sopenharmony_ci#define  RDR_VCCAP2                0x050208
4058c2ecf20Sopenharmony_ci
4068c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4078c2ecf20Sopenharmony_ci#define  RDR_VCSC                  0x05020C
4088c2ecf20Sopenharmony_ci
4098c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4108c2ecf20Sopenharmony_ci#define  RDR_VCR0_CAP              0x050210
4118c2ecf20Sopenharmony_ci
4128c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4138c2ecf20Sopenharmony_ci#define  RDR_VCR0_CTRL             0x050214
4148c2ecf20Sopenharmony_ci
4158c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4168c2ecf20Sopenharmony_ci#define  RDR_VCR0_STAT             0x050218
4178c2ecf20Sopenharmony_ci
4188c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4198c2ecf20Sopenharmony_ci#define  RDR_VCR1_CAP              0x05021C
4208c2ecf20Sopenharmony_ci
4218c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4228c2ecf20Sopenharmony_ci#define  RDR_VCR1_CTRL             0x050220
4238c2ecf20Sopenharmony_ci
4248c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4258c2ecf20Sopenharmony_ci#define  RDR_VCR1_STAT             0x050224
4268c2ecf20Sopenharmony_ci
4278c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4288c2ecf20Sopenharmony_ci#define  RDR_VCR2_CAP              0x050228
4298c2ecf20Sopenharmony_ci
4308c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4318c2ecf20Sopenharmony_ci#define  RDR_VCR2_CTRL             0x05022C
4328c2ecf20Sopenharmony_ci
4338c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4348c2ecf20Sopenharmony_ci#define  RDR_VCR2_STAT             0x050230
4358c2ecf20Sopenharmony_ci
4368c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4378c2ecf20Sopenharmony_ci#define  RDR_VCR3_CAP              0x050234
4388c2ecf20Sopenharmony_ci
4398c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4408c2ecf20Sopenharmony_ci#define  RDR_VCR3_CTRL             0x050238
4418c2ecf20Sopenharmony_ci
4428c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4438c2ecf20Sopenharmony_ci#define  RDR_VCR3_STAT             0x05023C
4448c2ecf20Sopenharmony_ci
4458c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4468c2ecf20Sopenharmony_ci#define  RDR_VCARB0                0x050240
4478c2ecf20Sopenharmony_ci
4488c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4498c2ecf20Sopenharmony_ci#define  RDR_VCARB1                0x050244
4508c2ecf20Sopenharmony_ci
4518c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4528c2ecf20Sopenharmony_ci#define  RDR_VCARB2                0x050248
4538c2ecf20Sopenharmony_ci
4548c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4558c2ecf20Sopenharmony_ci#define  RDR_VCARB3                0x05024C
4568c2ecf20Sopenharmony_ci
4578c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4588c2ecf20Sopenharmony_ci#define  RDR_VCARB4                0x050250
4598c2ecf20Sopenharmony_ci
4608c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4618c2ecf20Sopenharmony_ci#define  RDR_VCARB5                0x050254
4628c2ecf20Sopenharmony_ci
4638c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4648c2ecf20Sopenharmony_ci#define  RDR_VCARB6                0x050258
4658c2ecf20Sopenharmony_ci
4668c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4678c2ecf20Sopenharmony_ci#define  RDR_VCARB7                0x05025C
4688c2ecf20Sopenharmony_ci
4698c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4708c2ecf20Sopenharmony_ci#define  RDR_RDRSTAT0              0x050300
4718c2ecf20Sopenharmony_ci
4728c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4738c2ecf20Sopenharmony_ci#define  RDR_RDRSTAT1              0x050304
4748c2ecf20Sopenharmony_ci
4758c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4768c2ecf20Sopenharmony_ci#define  RDR_RDRCTL0               0x050308
4778c2ecf20Sopenharmony_ci
4788c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4798c2ecf20Sopenharmony_ci#define  RDR_RDRCTL1               0x05030C
4808c2ecf20Sopenharmony_ci
4818c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4828c2ecf20Sopenharmony_ci/* Transaction Layer Registers */
4838c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4848c2ecf20Sopenharmony_ci#define  RDR_TLSTAT0               0x050310
4858c2ecf20Sopenharmony_ci
4868c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4878c2ecf20Sopenharmony_ci#define  RDR_TLSTAT1               0x050314
4888c2ecf20Sopenharmony_ci
4898c2ecf20Sopenharmony_ci/* ***************************************************************************** */
4908c2ecf20Sopenharmony_ci#define  RDR_TLCTL0                0x050318
4918c2ecf20Sopenharmony_ci#define  FLD_CFG_UR_CPL_MODE       0x00000040
4928c2ecf20Sopenharmony_ci#define  FLD_CFG_CORR_ERR_QUITE    0x00000020
4938c2ecf20Sopenharmony_ci#define  FLD_CFG_RCB_CK_EN         0x00000010
4948c2ecf20Sopenharmony_ci#define  FLD_CFG_BNDRY_CK_EN       0x00000008
4958c2ecf20Sopenharmony_ci#define  FLD_CFG_BYTE_EN_CK_EN     0x00000004
4968c2ecf20Sopenharmony_ci#define  FLD_CFG_RELAX_ORDER_MSK   0x00000002
4978c2ecf20Sopenharmony_ci#define  FLD_CFG_TAG_ORDER_EN      0x00000001
4988c2ecf20Sopenharmony_ci
4998c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5008c2ecf20Sopenharmony_ci#define  RDR_TLCTL1                0x05031C
5018c2ecf20Sopenharmony_ci
5028c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5038c2ecf20Sopenharmony_ci#define  RDR_REQRCAL               0x050320
5048c2ecf20Sopenharmony_ci
5058c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5068c2ecf20Sopenharmony_ci#define  RDR_REQRCAU               0x050324
5078c2ecf20Sopenharmony_ci
5088c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5098c2ecf20Sopenharmony_ci#define  RDR_REQEPA                0x050328
5108c2ecf20Sopenharmony_ci
5118c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5128c2ecf20Sopenharmony_ci#define  RDR_REQCTRL               0x05032C
5138c2ecf20Sopenharmony_ci
5148c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5158c2ecf20Sopenharmony_ci#define  RDR_REQSTAT               0x050330
5168c2ecf20Sopenharmony_ci
5178c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5188c2ecf20Sopenharmony_ci#define  RDR_TL_TEST               0x050334
5198c2ecf20Sopenharmony_ci
5208c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5218c2ecf20Sopenharmony_ci#define  RDR_VCR01_CTL             0x050348
5228c2ecf20Sopenharmony_ci
5238c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5248c2ecf20Sopenharmony_ci#define  RDR_VCR23_CTL             0x05034C
5258c2ecf20Sopenharmony_ci
5268c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5278c2ecf20Sopenharmony_ci#define  RDR_RX_VCR0_FC            0x050350
5288c2ecf20Sopenharmony_ci
5298c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5308c2ecf20Sopenharmony_ci#define  RDR_RX_VCR1_FC            0x050354
5318c2ecf20Sopenharmony_ci
5328c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5338c2ecf20Sopenharmony_ci#define  RDR_RX_VCR2_FC            0x050358
5348c2ecf20Sopenharmony_ci
5358c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5368c2ecf20Sopenharmony_ci#define  RDR_RX_VCR3_FC            0x05035C
5378c2ecf20Sopenharmony_ci
5388c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5398c2ecf20Sopenharmony_ci/* Data Link Layer Registers */
5408c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5418c2ecf20Sopenharmony_ci#define  RDR_DLLSTAT               0x050360
5428c2ecf20Sopenharmony_ci
5438c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5448c2ecf20Sopenharmony_ci#define  RDR_DLLCTRL               0x050364
5458c2ecf20Sopenharmony_ci
5468c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5478c2ecf20Sopenharmony_ci#define  RDR_REPLAYTO              0x050368
5488c2ecf20Sopenharmony_ci
5498c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5508c2ecf20Sopenharmony_ci#define  RDR_ACKLATTO              0x05036C
5518c2ecf20Sopenharmony_ci
5528c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5538c2ecf20Sopenharmony_ci/* MAC Layer Registers */
5548c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5558c2ecf20Sopenharmony_ci#define  RDR_MACSTAT0              0x050380
5568c2ecf20Sopenharmony_ci
5578c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5588c2ecf20Sopenharmony_ci#define  RDR_MACSTAT1              0x050384
5598c2ecf20Sopenharmony_ci
5608c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5618c2ecf20Sopenharmony_ci#define  RDR_MACCTRL0              0x050388
5628c2ecf20Sopenharmony_ci
5638c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5648c2ecf20Sopenharmony_ci#define  RDR_MACCTRL1              0x05038C
5658c2ecf20Sopenharmony_ci
5668c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5678c2ecf20Sopenharmony_ci#define  RDR_MACCTRL2              0x050390
5688c2ecf20Sopenharmony_ci
5698c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5708c2ecf20Sopenharmony_ci#define  RDR_MAC_LB_DATA           0x050394
5718c2ecf20Sopenharmony_ci
5728c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5738c2ecf20Sopenharmony_ci#define  RDR_L0S_EXIT_LAT          0x050398
5748c2ecf20Sopenharmony_ci
5758c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5768c2ecf20Sopenharmony_ci/* DMAC */
5778c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5788c2ecf20Sopenharmony_ci#define  DMA1_PTR1                 0x100000	/* DMA Current Ptr : Ch#1 */
5798c2ecf20Sopenharmony_ci
5808c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5818c2ecf20Sopenharmony_ci#define  DMA2_PTR1                 0x100004	/* DMA Current Ptr : Ch#2 */
5828c2ecf20Sopenharmony_ci
5838c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5848c2ecf20Sopenharmony_ci#define  DMA3_PTR1                 0x100008	/* DMA Current Ptr : Ch#3 */
5858c2ecf20Sopenharmony_ci
5868c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5878c2ecf20Sopenharmony_ci#define  DMA4_PTR1                 0x10000C	/* DMA Current Ptr : Ch#4 */
5888c2ecf20Sopenharmony_ci
5898c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5908c2ecf20Sopenharmony_ci#define  DMA5_PTR1                 0x100010	/* DMA Current Ptr : Ch#5 */
5918c2ecf20Sopenharmony_ci
5928c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5938c2ecf20Sopenharmony_ci#define  DMA6_PTR1                 0x100014	/* DMA Current Ptr : Ch#6 */
5948c2ecf20Sopenharmony_ci
5958c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5968c2ecf20Sopenharmony_ci#define  DMA7_PTR1                 0x100018	/* DMA Current Ptr : Ch#7 */
5978c2ecf20Sopenharmony_ci
5988c2ecf20Sopenharmony_ci/* ***************************************************************************** */
5998c2ecf20Sopenharmony_ci#define  DMA8_PTR1                 0x10001C	/* DMA Current Ptr : Ch#8 */
6008c2ecf20Sopenharmony_ci
6018c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6028c2ecf20Sopenharmony_ci#define  DMA9_PTR1                 0x100020	/* DMA Current Ptr : Ch#9 */
6038c2ecf20Sopenharmony_ci
6048c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6058c2ecf20Sopenharmony_ci#define  DMA10_PTR1                0x100024	/* DMA Current Ptr : Ch#10 */
6068c2ecf20Sopenharmony_ci
6078c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6088c2ecf20Sopenharmony_ci#define  DMA11_PTR1                0x100028	/* DMA Current Ptr : Ch#11 */
6098c2ecf20Sopenharmony_ci
6108c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6118c2ecf20Sopenharmony_ci#define  DMA12_PTR1                0x10002C	/* DMA Current Ptr : Ch#12 */
6128c2ecf20Sopenharmony_ci
6138c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6148c2ecf20Sopenharmony_ci#define  DMA13_PTR1                0x100030	/* DMA Current Ptr : Ch#13 */
6158c2ecf20Sopenharmony_ci
6168c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6178c2ecf20Sopenharmony_ci#define  DMA14_PTR1                0x100034	/* DMA Current Ptr : Ch#14 */
6188c2ecf20Sopenharmony_ci
6198c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6208c2ecf20Sopenharmony_ci#define  DMA15_PTR1                0x100038	/* DMA Current Ptr : Ch#15 */
6218c2ecf20Sopenharmony_ci
6228c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6238c2ecf20Sopenharmony_ci#define  DMA16_PTR1                0x10003C	/* DMA Current Ptr : Ch#16 */
6248c2ecf20Sopenharmony_ci
6258c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6268c2ecf20Sopenharmony_ci#define  DMA17_PTR1                0x100040	/* DMA Current Ptr : Ch#17 */
6278c2ecf20Sopenharmony_ci
6288c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6298c2ecf20Sopenharmony_ci#define  DMA18_PTR1                0x100044	/* DMA Current Ptr : Ch#18 */
6308c2ecf20Sopenharmony_ci
6318c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6328c2ecf20Sopenharmony_ci#define  DMA19_PTR1                0x100048	/* DMA Current Ptr : Ch#19 */
6338c2ecf20Sopenharmony_ci
6348c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6358c2ecf20Sopenharmony_ci#define  DMA20_PTR1                0x10004C	/* DMA Current Ptr : Ch#20 */
6368c2ecf20Sopenharmony_ci
6378c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6388c2ecf20Sopenharmony_ci#define  DMA21_PTR1                0x100050	/* DMA Current Ptr : Ch#21 */
6398c2ecf20Sopenharmony_ci
6408c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6418c2ecf20Sopenharmony_ci#define  DMA22_PTR1                0x100054	/* DMA Current Ptr : Ch#22 */
6428c2ecf20Sopenharmony_ci
6438c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6448c2ecf20Sopenharmony_ci#define  DMA23_PTR1                0x100058	/* DMA Current Ptr : Ch#23 */
6458c2ecf20Sopenharmony_ci
6468c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6478c2ecf20Sopenharmony_ci#define  DMA24_PTR1                0x10005C	/* DMA Current Ptr : Ch#24 */
6488c2ecf20Sopenharmony_ci
6498c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6508c2ecf20Sopenharmony_ci#define  DMA25_PTR1                0x100060	/* DMA Current Ptr : Ch#25 */
6518c2ecf20Sopenharmony_ci
6528c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6538c2ecf20Sopenharmony_ci#define  DMA26_PTR1                0x100064	/* DMA Current Ptr : Ch#26 */
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6568c2ecf20Sopenharmony_ci#define  DMA1_PTR2                 0x100080	/* DMA Tab Ptr : Ch#1 */
6578c2ecf20Sopenharmony_ci
6588c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6598c2ecf20Sopenharmony_ci#define  DMA2_PTR2                 0x100084	/* DMA Tab Ptr : Ch#2 */
6608c2ecf20Sopenharmony_ci
6618c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6628c2ecf20Sopenharmony_ci#define  DMA3_PTR2                 0x100088	/* DMA Tab Ptr : Ch#3 */
6638c2ecf20Sopenharmony_ci
6648c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6658c2ecf20Sopenharmony_ci#define  DMA4_PTR2                 0x10008C	/* DMA Tab Ptr : Ch#4 */
6668c2ecf20Sopenharmony_ci
6678c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6688c2ecf20Sopenharmony_ci#define  DMA5_PTR2                 0x100090	/* DMA Tab Ptr : Ch#5 */
6698c2ecf20Sopenharmony_ci
6708c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6718c2ecf20Sopenharmony_ci#define  DMA6_PTR2                 0x100094	/* DMA Tab Ptr : Ch#6 */
6728c2ecf20Sopenharmony_ci
6738c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6748c2ecf20Sopenharmony_ci#define  DMA7_PTR2                 0x100098	/* DMA Tab Ptr : Ch#7 */
6758c2ecf20Sopenharmony_ci
6768c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6778c2ecf20Sopenharmony_ci#define  DMA8_PTR2                 0x10009C	/* DMA Tab Ptr : Ch#8 */
6788c2ecf20Sopenharmony_ci
6798c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6808c2ecf20Sopenharmony_ci#define  DMA9_PTR2                 0x1000A0	/* DMA Tab Ptr : Ch#9 */
6818c2ecf20Sopenharmony_ci
6828c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6838c2ecf20Sopenharmony_ci#define  DMA10_PTR2                0x1000A4	/* DMA Tab Ptr : Ch#10 */
6848c2ecf20Sopenharmony_ci
6858c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6868c2ecf20Sopenharmony_ci#define  DMA11_PTR2                0x1000A8	/* DMA Tab Ptr : Ch#11 */
6878c2ecf20Sopenharmony_ci
6888c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6898c2ecf20Sopenharmony_ci#define  DMA12_PTR2                0x1000AC	/* DMA Tab Ptr : Ch#12 */
6908c2ecf20Sopenharmony_ci
6918c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6928c2ecf20Sopenharmony_ci#define  DMA13_PTR2                0x1000B0	/* DMA Tab Ptr : Ch#13 */
6938c2ecf20Sopenharmony_ci
6948c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6958c2ecf20Sopenharmony_ci#define  DMA14_PTR2                0x1000B4	/* DMA Tab Ptr : Ch#14 */
6968c2ecf20Sopenharmony_ci
6978c2ecf20Sopenharmony_ci/* ***************************************************************************** */
6988c2ecf20Sopenharmony_ci#define  DMA15_PTR2                0x1000B8	/* DMA Tab Ptr : Ch#15 */
6998c2ecf20Sopenharmony_ci
7008c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7018c2ecf20Sopenharmony_ci#define  DMA16_PTR2                0x1000BC	/* DMA Tab Ptr : Ch#16 */
7028c2ecf20Sopenharmony_ci
7038c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7048c2ecf20Sopenharmony_ci#define  DMA17_PTR2                0x1000C0	/* DMA Tab Ptr : Ch#17 */
7058c2ecf20Sopenharmony_ci
7068c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7078c2ecf20Sopenharmony_ci#define  DMA18_PTR2                0x1000C4	/* DMA Tab Ptr : Ch#18 */
7088c2ecf20Sopenharmony_ci
7098c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7108c2ecf20Sopenharmony_ci#define  DMA19_PTR2                0x1000C8	/* DMA Tab Ptr : Ch#19 */
7118c2ecf20Sopenharmony_ci
7128c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7138c2ecf20Sopenharmony_ci#define  DMA20_PTR2                0x1000CC	/* DMA Tab Ptr : Ch#20 */
7148c2ecf20Sopenharmony_ci
7158c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7168c2ecf20Sopenharmony_ci#define  DMA21_PTR2                0x1000D0	/* DMA Tab Ptr : Ch#21 */
7178c2ecf20Sopenharmony_ci
7188c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7198c2ecf20Sopenharmony_ci#define  DMA22_PTR2                0x1000D4	/* DMA Tab Ptr : Ch#22 */
7208c2ecf20Sopenharmony_ci
7218c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7228c2ecf20Sopenharmony_ci#define  DMA23_PTR2                0x1000D8	/* DMA Tab Ptr : Ch#23 */
7238c2ecf20Sopenharmony_ci
7248c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7258c2ecf20Sopenharmony_ci#define  DMA24_PTR2                0x1000DC	/* DMA Tab Ptr : Ch#24 */
7268c2ecf20Sopenharmony_ci
7278c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7288c2ecf20Sopenharmony_ci#define  DMA25_PTR2                0x1000E0	/* DMA Tab Ptr : Ch#25 */
7298c2ecf20Sopenharmony_ci
7308c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7318c2ecf20Sopenharmony_ci#define  DMA26_PTR2                0x1000E4	/* DMA Tab Ptr : Ch#26 */
7328c2ecf20Sopenharmony_ci
7338c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7348c2ecf20Sopenharmony_ci#define  DMA1_CNT1                 0x100100	/* DMA BuFFer Size : Ch#1 */
7358c2ecf20Sopenharmony_ci
7368c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7378c2ecf20Sopenharmony_ci#define  DMA2_CNT1                 0x100104	/* DMA BuFFer Size : Ch#2 */
7388c2ecf20Sopenharmony_ci
7398c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7408c2ecf20Sopenharmony_ci#define  DMA3_CNT1                 0x100108	/* DMA BuFFer Size : Ch#3 */
7418c2ecf20Sopenharmony_ci
7428c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7438c2ecf20Sopenharmony_ci#define  DMA4_CNT1                 0x10010C	/* DMA BuFFer Size : Ch#4 */
7448c2ecf20Sopenharmony_ci
7458c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7468c2ecf20Sopenharmony_ci#define  DMA5_CNT1                 0x100110	/* DMA BuFFer Size : Ch#5 */
7478c2ecf20Sopenharmony_ci
7488c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7498c2ecf20Sopenharmony_ci#define  DMA6_CNT1                 0x100114	/* DMA BuFFer Size : Ch#6 */
7508c2ecf20Sopenharmony_ci
7518c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7528c2ecf20Sopenharmony_ci#define  DMA7_CNT1                 0x100118	/* DMA BuFFer Size : Ch#7 */
7538c2ecf20Sopenharmony_ci
7548c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7558c2ecf20Sopenharmony_ci#define  DMA8_CNT1                 0x10011C	/* DMA BuFFer Size : Ch#8 */
7568c2ecf20Sopenharmony_ci
7578c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7588c2ecf20Sopenharmony_ci#define  DMA9_CNT1                 0x100120	/* DMA BuFFer Size : Ch#9 */
7598c2ecf20Sopenharmony_ci
7608c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7618c2ecf20Sopenharmony_ci#define  DMA10_CNT1                0x100124	/* DMA BuFFer Size : Ch#10 */
7628c2ecf20Sopenharmony_ci
7638c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7648c2ecf20Sopenharmony_ci#define  DMA11_CNT1                0x100128	/* DMA BuFFer Size : Ch#11 */
7658c2ecf20Sopenharmony_ci
7668c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7678c2ecf20Sopenharmony_ci#define  DMA12_CNT1                0x10012C	/* DMA BuFFer Size : Ch#12 */
7688c2ecf20Sopenharmony_ci
7698c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7708c2ecf20Sopenharmony_ci#define  DMA13_CNT1                0x100130	/* DMA BuFFer Size : Ch#13 */
7718c2ecf20Sopenharmony_ci
7728c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7738c2ecf20Sopenharmony_ci#define  DMA14_CNT1                0x100134	/* DMA BuFFer Size : Ch#14 */
7748c2ecf20Sopenharmony_ci
7758c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7768c2ecf20Sopenharmony_ci#define  DMA15_CNT1                0x100138	/* DMA BuFFer Size : Ch#15 */
7778c2ecf20Sopenharmony_ci
7788c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7798c2ecf20Sopenharmony_ci#define  DMA16_CNT1                0x10013C	/* DMA BuFFer Size : Ch#16 */
7808c2ecf20Sopenharmony_ci
7818c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7828c2ecf20Sopenharmony_ci#define  DMA17_CNT1                0x100140	/* DMA BuFFer Size : Ch#17 */
7838c2ecf20Sopenharmony_ci
7848c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7858c2ecf20Sopenharmony_ci#define  DMA18_CNT1                0x100144	/* DMA BuFFer Size : Ch#18 */
7868c2ecf20Sopenharmony_ci
7878c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7888c2ecf20Sopenharmony_ci#define  DMA19_CNT1                0x100148	/* DMA BuFFer Size : Ch#19 */
7898c2ecf20Sopenharmony_ci
7908c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7918c2ecf20Sopenharmony_ci#define  DMA20_CNT1                0x10014C	/* DMA BuFFer Size : Ch#20 */
7928c2ecf20Sopenharmony_ci
7938c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7948c2ecf20Sopenharmony_ci#define  DMA21_CNT1                0x100150	/* DMA BuFFer Size : Ch#21 */
7958c2ecf20Sopenharmony_ci
7968c2ecf20Sopenharmony_ci/* ***************************************************************************** */
7978c2ecf20Sopenharmony_ci#define  DMA22_CNT1                0x100154	/* DMA BuFFer Size : Ch#22 */
7988c2ecf20Sopenharmony_ci
7998c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8008c2ecf20Sopenharmony_ci#define  DMA23_CNT1                0x100158	/* DMA BuFFer Size : Ch#23 */
8018c2ecf20Sopenharmony_ci
8028c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8038c2ecf20Sopenharmony_ci#define  DMA24_CNT1                0x10015C	/* DMA BuFFer Size : Ch#24 */
8048c2ecf20Sopenharmony_ci
8058c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8068c2ecf20Sopenharmony_ci#define  DMA25_CNT1                0x100160	/* DMA BuFFer Size : Ch#25 */
8078c2ecf20Sopenharmony_ci
8088c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8098c2ecf20Sopenharmony_ci#define  DMA26_CNT1                0x100164	/* DMA BuFFer Size : Ch#26 */
8108c2ecf20Sopenharmony_ci
8118c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8128c2ecf20Sopenharmony_ci#define  DMA1_CNT2                 0x100180	/* DMA Table Size : Ch#1 */
8138c2ecf20Sopenharmony_ci
8148c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8158c2ecf20Sopenharmony_ci#define  DMA2_CNT2                 0x100184	/* DMA Table Size : Ch#2 */
8168c2ecf20Sopenharmony_ci
8178c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8188c2ecf20Sopenharmony_ci#define  DMA3_CNT2                 0x100188	/* DMA Table Size : Ch#3 */
8198c2ecf20Sopenharmony_ci
8208c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8218c2ecf20Sopenharmony_ci#define  DMA4_CNT2                 0x10018C	/* DMA Table Size : Ch#4 */
8228c2ecf20Sopenharmony_ci
8238c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8248c2ecf20Sopenharmony_ci#define  DMA5_CNT2                 0x100190	/* DMA Table Size : Ch#5 */
8258c2ecf20Sopenharmony_ci
8268c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8278c2ecf20Sopenharmony_ci#define  DMA6_CNT2                 0x100194	/* DMA Table Size : Ch#6 */
8288c2ecf20Sopenharmony_ci
8298c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8308c2ecf20Sopenharmony_ci#define  DMA7_CNT2                 0x100198	/* DMA Table Size : Ch#7 */
8318c2ecf20Sopenharmony_ci
8328c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8338c2ecf20Sopenharmony_ci#define  DMA8_CNT2                 0x10019C	/* DMA Table Size : Ch#8 */
8348c2ecf20Sopenharmony_ci
8358c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8368c2ecf20Sopenharmony_ci#define  DMA9_CNT2                 0x1001A0	/* DMA Table Size : Ch#9 */
8378c2ecf20Sopenharmony_ci
8388c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8398c2ecf20Sopenharmony_ci#define  DMA10_CNT2                0x1001A4	/* DMA Table Size : Ch#10 */
8408c2ecf20Sopenharmony_ci
8418c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8428c2ecf20Sopenharmony_ci#define  DMA11_CNT2                0x1001A8	/* DMA Table Size : Ch#11 */
8438c2ecf20Sopenharmony_ci
8448c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8458c2ecf20Sopenharmony_ci#define  DMA12_CNT2                0x1001AC	/* DMA Table Size : Ch#12 */
8468c2ecf20Sopenharmony_ci
8478c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8488c2ecf20Sopenharmony_ci#define  DMA13_CNT2                0x1001B0	/* DMA Table Size : Ch#13 */
8498c2ecf20Sopenharmony_ci
8508c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8518c2ecf20Sopenharmony_ci#define  DMA14_CNT2                0x1001B4	/* DMA Table Size : Ch#14 */
8528c2ecf20Sopenharmony_ci
8538c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8548c2ecf20Sopenharmony_ci#define  DMA15_CNT2                0x1001B8	/* DMA Table Size : Ch#15 */
8558c2ecf20Sopenharmony_ci
8568c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8578c2ecf20Sopenharmony_ci#define  DMA16_CNT2                0x1001BC	/* DMA Table Size : Ch#16 */
8588c2ecf20Sopenharmony_ci
8598c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8608c2ecf20Sopenharmony_ci#define  DMA17_CNT2                0x1001C0	/* DMA Table Size : Ch#17 */
8618c2ecf20Sopenharmony_ci
8628c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8638c2ecf20Sopenharmony_ci#define  DMA18_CNT2                0x1001C4	/* DMA Table Size : Ch#18 */
8648c2ecf20Sopenharmony_ci
8658c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8668c2ecf20Sopenharmony_ci#define  DMA19_CNT2                0x1001C8	/* DMA Table Size : Ch#19 */
8678c2ecf20Sopenharmony_ci
8688c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8698c2ecf20Sopenharmony_ci#define  DMA20_CNT2                0x1001CC	/* DMA Table Size : Ch#20 */
8708c2ecf20Sopenharmony_ci
8718c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8728c2ecf20Sopenharmony_ci#define  DMA21_CNT2                0x1001D0	/* DMA Table Size : Ch#21 */
8738c2ecf20Sopenharmony_ci
8748c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8758c2ecf20Sopenharmony_ci#define  DMA22_CNT2                0x1001D4	/* DMA Table Size : Ch#22 */
8768c2ecf20Sopenharmony_ci
8778c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8788c2ecf20Sopenharmony_ci#define  DMA23_CNT2                0x1001D8	/* DMA Table Size : Ch#23 */
8798c2ecf20Sopenharmony_ci
8808c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8818c2ecf20Sopenharmony_ci#define  DMA24_CNT2                0x1001DC	/* DMA Table Size : Ch#24 */
8828c2ecf20Sopenharmony_ci
8838c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8848c2ecf20Sopenharmony_ci#define  DMA25_CNT2                0x1001E0	/* DMA Table Size : Ch#25 */
8858c2ecf20Sopenharmony_ci
8868c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8878c2ecf20Sopenharmony_ci#define  DMA26_CNT2                0x1001E4	/* DMA Table Size : Ch#26 */
8888c2ecf20Sopenharmony_ci
8898c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8908c2ecf20Sopenharmony_ci /* ITG */
8918c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8928c2ecf20Sopenharmony_ci#define  TM_CNT_LDW                0x110000	/* Timer : Counter low */
8938c2ecf20Sopenharmony_ci
8948c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8958c2ecf20Sopenharmony_ci#define  TM_CNT_UW                 0x110004	/* Timer : Counter high word */
8968c2ecf20Sopenharmony_ci
8978c2ecf20Sopenharmony_ci/* ***************************************************************************** */
8988c2ecf20Sopenharmony_ci#define  TM_LMT_LDW                0x110008	/* Timer : Limit low */
8998c2ecf20Sopenharmony_ci
9008c2ecf20Sopenharmony_ci/* ***************************************************************************** */
9018c2ecf20Sopenharmony_ci#define  TM_LMT_UW                 0x11000C	/* Timer : Limit high word */
9028c2ecf20Sopenharmony_ci
9038c2ecf20Sopenharmony_ci/* ***************************************************************************** */
9048c2ecf20Sopenharmony_ci#define  GP0_IO                    0x110010	/* GPIO output enables data I/O */
9058c2ecf20Sopenharmony_ci#define  FLD_GP_OE                 0x00FF0000	/* GPIO: GP_OE output enable */
9068c2ecf20Sopenharmony_ci#define  FLD_GP_IN                 0x0000FF00	/* GPIO: GP_IN status */
9078c2ecf20Sopenharmony_ci#define  FLD_GP_OUT                0x000000FF	/* GPIO: GP_OUT control */
9088c2ecf20Sopenharmony_ci
9098c2ecf20Sopenharmony_ci/* ***************************************************************************** */
9108c2ecf20Sopenharmony_ci#define  GPIO_ISM                  0x110014	/* GPIO interrupt sensitivity mode */
9118c2ecf20Sopenharmony_ci#define  FLD_GP_ISM_SNS            0x00000070
9128c2ecf20Sopenharmony_ci#define  FLD_GP_ISM_POL            0x00000007
9138c2ecf20Sopenharmony_ci
9148c2ecf20Sopenharmony_ci/* ***************************************************************************** */
9158c2ecf20Sopenharmony_ci#define  SOFT_RESET                0x11001C	/* Output system reset reg */
9168c2ecf20Sopenharmony_ci#define  FLD_PECOS_SOFT_RESET      0x00000001
9178c2ecf20Sopenharmony_ci
9188c2ecf20Sopenharmony_ci/* ***************************************************************************** */
9198c2ecf20Sopenharmony_ci#define  MC416_RWD                 0x110020	/* MC416 GPIO[18:3] pin */
9208c2ecf20Sopenharmony_ci#define  MC416_OEN                 0x110024	/* Output enable of GPIO[18:3] */
9218c2ecf20Sopenharmony_ci#define  MC416_CTL                 0x110028
9228c2ecf20Sopenharmony_ci
9238c2ecf20Sopenharmony_ci/* ***************************************************************************** */
9248c2ecf20Sopenharmony_ci#define  ALT_PIN_OUT_SEL           0x11002C	/* Alternate GPIO output select */
9258c2ecf20Sopenharmony_ci
9268c2ecf20Sopenharmony_ci#define  FLD_ALT_GPIO_OUT_SEL      0xF0000000
9278c2ecf20Sopenharmony_ci/* 0          Disabled <-- default */
9288c2ecf20Sopenharmony_ci/* 1          GPIO[0] */
9298c2ecf20Sopenharmony_ci/* 2          GPIO[10] */
9308c2ecf20Sopenharmony_ci/* 3          VIP_656_DATA_VAL */
9318c2ecf20Sopenharmony_ci/* 4          VIP_656_DATA[0] */
9328c2ecf20Sopenharmony_ci/* 5          VIP_656_CLK */
9338c2ecf20Sopenharmony_ci/* 6          VIP_656_DATA_EXT[1] */
9348c2ecf20Sopenharmony_ci/* 7          VIP_656_DATA_EXT[0] */
9358c2ecf20Sopenharmony_ci/* 8          ATT_IF */
9368c2ecf20Sopenharmony_ci
9378c2ecf20Sopenharmony_ci#define  FLD_AUX_PLL_CLK_ALT_SEL   0x0F000000
9388c2ecf20Sopenharmony_ci/* 0          AUX_PLL_CLK<-- default */
9398c2ecf20Sopenharmony_ci/* 1          GPIO[2] */
9408c2ecf20Sopenharmony_ci/* 2          GPIO[10] */
9418c2ecf20Sopenharmony_ci/* 3          VIP_656_DATA_VAL */
9428c2ecf20Sopenharmony_ci/* 4          VIP_656_DATA[0] */
9438c2ecf20Sopenharmony_ci/* 5          VIP_656_CLK */
9448c2ecf20Sopenharmony_ci/* 6          VIP_656_DATA_EXT[1] */
9458c2ecf20Sopenharmony_ci/* 7          VIP_656_DATA_EXT[0] */
9468c2ecf20Sopenharmony_ci
9478c2ecf20Sopenharmony_ci#define  FLD_IR_TX_ALT_SEL         0x00F00000
9488c2ecf20Sopenharmony_ci/* 0          IR_TX <-- default */
9498c2ecf20Sopenharmony_ci/* 1          GPIO[1] */
9508c2ecf20Sopenharmony_ci/* 2          GPIO[10] */
9518c2ecf20Sopenharmony_ci/* 3          VIP_656_DATA_VAL */
9528c2ecf20Sopenharmony_ci/* 4          VIP_656_DATA[0] */
9538c2ecf20Sopenharmony_ci/* 5          VIP_656_CLK */
9548c2ecf20Sopenharmony_ci/* 6          VIP_656_DATA_EXT[1] */
9558c2ecf20Sopenharmony_ci/* 7          VIP_656_DATA_EXT[0] */
9568c2ecf20Sopenharmony_ci
9578c2ecf20Sopenharmony_ci#define  FLD_IR_RX_ALT_SEL         0x000F0000
9588c2ecf20Sopenharmony_ci/* 0          IR_RX <-- default */
9598c2ecf20Sopenharmony_ci/* 1          GPIO[0] */
9608c2ecf20Sopenharmony_ci/* 2          GPIO[10] */
9618c2ecf20Sopenharmony_ci/* 3          VIP_656_DATA_VAL */
9628c2ecf20Sopenharmony_ci/* 4          VIP_656_DATA[0] */
9638c2ecf20Sopenharmony_ci/* 5          VIP_656_CLK */
9648c2ecf20Sopenharmony_ci/* 6          VIP_656_DATA_EXT[1] */
9658c2ecf20Sopenharmony_ci/* 7          VIP_656_DATA_EXT[0] */
9668c2ecf20Sopenharmony_ci
9678c2ecf20Sopenharmony_ci#define  FLD_GPIO10_ALT_SEL        0x0000F000
9688c2ecf20Sopenharmony_ci/* 0          GPIO[10] <-- default */
9698c2ecf20Sopenharmony_ci/* 1          GPIO[0] */
9708c2ecf20Sopenharmony_ci/* 2          GPIO[10] */
9718c2ecf20Sopenharmony_ci/* 3          VIP_656_DATA_VAL */
9728c2ecf20Sopenharmony_ci/* 4          VIP_656_DATA[0] */
9738c2ecf20Sopenharmony_ci/* 5          VIP_656_CLK */
9748c2ecf20Sopenharmony_ci/* 6          VIP_656_DATA_EXT[1] */
9758c2ecf20Sopenharmony_ci/* 7          VIP_656_DATA_EXT[0] */
9768c2ecf20Sopenharmony_ci
9778c2ecf20Sopenharmony_ci#define  FLD_GPIO2_ALT_SEL         0x00000F00
9788c2ecf20Sopenharmony_ci/* 0          GPIO[2] <-- default */
9798c2ecf20Sopenharmony_ci/* 1          GPIO[1] */
9808c2ecf20Sopenharmony_ci/* 2          GPIO[10] */
9818c2ecf20Sopenharmony_ci/* 3          VIP_656_DATA_VAL */
9828c2ecf20Sopenharmony_ci/* 4          VIP_656_DATA[0] */
9838c2ecf20Sopenharmony_ci/* 5          VIP_656_CLK */
9848c2ecf20Sopenharmony_ci/* 6          VIP_656_DATA_EXT[1] */
9858c2ecf20Sopenharmony_ci/* 7          VIP_656_DATA_EXT[0] */
9868c2ecf20Sopenharmony_ci
9878c2ecf20Sopenharmony_ci#define  FLD_GPIO1_ALT_SEL         0x000000F0
9888c2ecf20Sopenharmony_ci/* 0          GPIO[1] <-- default */
9898c2ecf20Sopenharmony_ci/* 1          GPIO[0] */
9908c2ecf20Sopenharmony_ci/* 2          GPIO[10] */
9918c2ecf20Sopenharmony_ci/* 3          VIP_656_DATA_VAL */
9928c2ecf20Sopenharmony_ci/* 4          VIP_656_DATA[0] */
9938c2ecf20Sopenharmony_ci/* 5          VIP_656_CLK */
9948c2ecf20Sopenharmony_ci/* 6          VIP_656_DATA_EXT[1] */
9958c2ecf20Sopenharmony_ci/* 7          VIP_656_DATA_EXT[0] */
9968c2ecf20Sopenharmony_ci
9978c2ecf20Sopenharmony_ci#define  FLD_GPIO0_ALT_SEL         0x0000000F
9988c2ecf20Sopenharmony_ci/* 0          GPIO[0] <-- default */
9998c2ecf20Sopenharmony_ci/* 1          GPIO[1] */
10008c2ecf20Sopenharmony_ci/* 2          GPIO[10] */
10018c2ecf20Sopenharmony_ci/* 3          VIP_656_DATA_VAL */
10028c2ecf20Sopenharmony_ci/* 4          VIP_656_DATA[0] */
10038c2ecf20Sopenharmony_ci/* 5          VIP_656_CLK */
10048c2ecf20Sopenharmony_ci/* 6          VIP_656_DATA_EXT[1] */
10058c2ecf20Sopenharmony_ci/* 7          VIP_656_DATA_EXT[0] */
10068c2ecf20Sopenharmony_ci
10078c2ecf20Sopenharmony_ci#define  ALT_PIN_IN_SEL            0x110030	/* Alternate GPIO input select */
10088c2ecf20Sopenharmony_ci
10098c2ecf20Sopenharmony_ci#define  FLD_GPIO10_ALT_IN_SEL     0x0000F000
10108c2ecf20Sopenharmony_ci/* 0          GPIO[10] <-- default */
10118c2ecf20Sopenharmony_ci/* 1          IR_RX */
10128c2ecf20Sopenharmony_ci/* 2          IR_TX */
10138c2ecf20Sopenharmony_ci/* 3          AUX_PLL_CLK */
10148c2ecf20Sopenharmony_ci/* 4          IF_ATT_SEL */
10158c2ecf20Sopenharmony_ci/* 5          GPIO[0] */
10168c2ecf20Sopenharmony_ci/* 6          GPIO[1] */
10178c2ecf20Sopenharmony_ci/* 7          GPIO[2] */
10188c2ecf20Sopenharmony_ci
10198c2ecf20Sopenharmony_ci#define  FLD_GPIO2_ALT_IN_SEL      0x00000F00
10208c2ecf20Sopenharmony_ci/* 0          GPIO[2] <-- default */
10218c2ecf20Sopenharmony_ci/* 1          IR_RX */
10228c2ecf20Sopenharmony_ci/* 2          IR_TX */
10238c2ecf20Sopenharmony_ci/* 3          AUX_PLL_CLK */
10248c2ecf20Sopenharmony_ci/* 4          IF_ATT_SEL */
10258c2ecf20Sopenharmony_ci
10268c2ecf20Sopenharmony_ci#define  FLD_GPIO1_ALT_IN_SEL      0x000000F0
10278c2ecf20Sopenharmony_ci/* 0          GPIO[1] <-- default */
10288c2ecf20Sopenharmony_ci/* 1          IR_RX */
10298c2ecf20Sopenharmony_ci/* 2          IR_TX */
10308c2ecf20Sopenharmony_ci/* 3          AUX_PLL_CLK */
10318c2ecf20Sopenharmony_ci/* 4          IF_ATT_SEL */
10328c2ecf20Sopenharmony_ci
10338c2ecf20Sopenharmony_ci#define  FLD_GPIO0_ALT_IN_SEL      0x0000000F
10348c2ecf20Sopenharmony_ci/* 0          GPIO[0] <-- default */
10358c2ecf20Sopenharmony_ci/* 1          IR_RX */
10368c2ecf20Sopenharmony_ci/* 2          IR_TX */
10378c2ecf20Sopenharmony_ci/* 3          AUX_PLL_CLK */
10388c2ecf20Sopenharmony_ci/* 4          IF_ATT_SEL */
10398c2ecf20Sopenharmony_ci
10408c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10418c2ecf20Sopenharmony_ci#define  TEST_BUS_CTL1             0x110040	/* Test bus control register #1 */
10428c2ecf20Sopenharmony_ci
10438c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10448c2ecf20Sopenharmony_ci#define  TEST_BUS_CTL2             0x110044	/* Test bus control register #2 */
10458c2ecf20Sopenharmony_ci
10468c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10478c2ecf20Sopenharmony_ci#define  CLK_DELAY                 0x110048	/* Clock delay */
10488c2ecf20Sopenharmony_ci#define  FLD_MOE_CLK_DIS           0x80000000	/* Disable MoE clock */
10498c2ecf20Sopenharmony_ci
10508c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10518c2ecf20Sopenharmony_ci#define  PAD_CTRL                  0x110068	/* Pad drive strength control */
10528c2ecf20Sopenharmony_ci
10538c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10548c2ecf20Sopenharmony_ci#define  MBIST_CTRL                0x110050	/* SRAM memory built-in self test control */
10558c2ecf20Sopenharmony_ci
10568c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10578c2ecf20Sopenharmony_ci#define  MBIST_STAT                0x110054	/* SRAM memory built-in self test status */
10588c2ecf20Sopenharmony_ci
10598c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10608c2ecf20Sopenharmony_ci/* PLL registers */
10618c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10628c2ecf20Sopenharmony_ci#define  PLL_A_INT_FRAC            0x110088
10638c2ecf20Sopenharmony_ci#define  PLL_A_POST_STAT_BIST      0x11008C
10648c2ecf20Sopenharmony_ci#define  PLL_B_INT_FRAC            0x110090
10658c2ecf20Sopenharmony_ci#define  PLL_B_POST_STAT_BIST      0x110094
10668c2ecf20Sopenharmony_ci#define  PLL_C_INT_FRAC            0x110098
10678c2ecf20Sopenharmony_ci#define  PLL_C_POST_STAT_BIST      0x11009C
10688c2ecf20Sopenharmony_ci#define  PLL_D_INT_FRAC            0x1100A0
10698c2ecf20Sopenharmony_ci#define  PLL_D_POST_STAT_BIST      0x1100A4
10708c2ecf20Sopenharmony_ci
10718c2ecf20Sopenharmony_ci#define  CLK_RST                   0x11002C
10728c2ecf20Sopenharmony_ci#define  FLD_VID_I_CLK_NOE         0x00001000
10738c2ecf20Sopenharmony_ci#define  FLD_VID_J_CLK_NOE         0x00002000
10748c2ecf20Sopenharmony_ci#define  FLD_USE_ALT_PLL_REF       0x00004000
10758c2ecf20Sopenharmony_ci
10768c2ecf20Sopenharmony_ci#define  VID_CH_MODE_SEL           0x110078
10778c2ecf20Sopenharmony_ci#define  VID_CH_CLK_SEL            0x11007C
10788c2ecf20Sopenharmony_ci
10798c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10808c2ecf20Sopenharmony_ci#define  VBI_A_DMA                 0x130008	/* VBI A DMA data port */
10818c2ecf20Sopenharmony_ci
10828c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10838c2ecf20Sopenharmony_ci#define  VID_A_VIP_CTL             0x130080	/* Video A VIP format control */
10848c2ecf20Sopenharmony_ci#define  FLD_VIP_MODE              0x00000001
10858c2ecf20Sopenharmony_ci
10868c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10878c2ecf20Sopenharmony_ci#define  VID_A_PIXEL_FRMT          0x130084	/* Video A pixel format */
10888c2ecf20Sopenharmony_ci#define  FLD_VID_A_GAMMA_DIS       0x00000008
10898c2ecf20Sopenharmony_ci#define  FLD_VID_A_FORMAT          0x00000007
10908c2ecf20Sopenharmony_ci#define  FLD_VID_A_GAMMA_FACTOR    0x00000010
10918c2ecf20Sopenharmony_ci
10928c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10938c2ecf20Sopenharmony_ci#define  VID_A_VBI_CTL             0x130088	/* Video A VBI miscellaneous control */
10948c2ecf20Sopenharmony_ci#define  FLD_VID_A_VIP_EXT         0x00000003
10958c2ecf20Sopenharmony_ci
10968c2ecf20Sopenharmony_ci/* ***************************************************************************** */
10978c2ecf20Sopenharmony_ci#define  VID_B_DMA                 0x130100	/* Video B DMA data port */
10988c2ecf20Sopenharmony_ci
10998c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11008c2ecf20Sopenharmony_ci#define  VBI_B_DMA                 0x130108	/* VBI B DMA data port */
11018c2ecf20Sopenharmony_ci
11028c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11038c2ecf20Sopenharmony_ci#define  VID_B_SRC_SEL             0x130144	/* Video B source select */
11048c2ecf20Sopenharmony_ci#define  FLD_VID_B_SRC_SEL         0x00000000
11058c2ecf20Sopenharmony_ci
11068c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11078c2ecf20Sopenharmony_ci#define  VID_B_LNGTH               0x130150	/* Video B line length */
11088c2ecf20Sopenharmony_ci#define  FLD_VID_B_LN_LNGTH        0x00000FFF
11098c2ecf20Sopenharmony_ci
11108c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11118c2ecf20Sopenharmony_ci#define  VID_B_VIP_CTL             0x130180	/* Video B VIP format control */
11128c2ecf20Sopenharmony_ci
11138c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11148c2ecf20Sopenharmony_ci#define  VID_B_PIXEL_FRMT          0x130184	/* Video B pixel format */
11158c2ecf20Sopenharmony_ci#define  FLD_VID_B_GAMMA_DIS       0x00000008
11168c2ecf20Sopenharmony_ci#define  FLD_VID_B_FORMAT          0x00000007
11178c2ecf20Sopenharmony_ci#define  FLD_VID_B_GAMMA_FACTOR    0x00000010
11188c2ecf20Sopenharmony_ci
11198c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11208c2ecf20Sopenharmony_ci#define  VID_C_DMA                 0x130200	/* Video C DMA data port */
11218c2ecf20Sopenharmony_ci
11228c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11238c2ecf20Sopenharmony_ci#define  VID_C_LNGTH               0x130250	/* Video C line length */
11248c2ecf20Sopenharmony_ci#define  FLD_VID_C_LN_LNGTH        0x00000FFF
11258c2ecf20Sopenharmony_ci
11268c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11278c2ecf20Sopenharmony_ci/* Video Destination Channels */
11288c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11298c2ecf20Sopenharmony_ci
11308c2ecf20Sopenharmony_ci#define  VID_DST_A_GPCNT           0x130020	/* Video A general purpose counter */
11318c2ecf20Sopenharmony_ci#define  VID_DST_B_GPCNT           0x130120	/* Video B general purpose counter */
11328c2ecf20Sopenharmony_ci#define  VID_DST_C_GPCNT           0x130220	/* Video C general purpose counter */
11338c2ecf20Sopenharmony_ci#define  VID_DST_D_GPCNT           0x130320	/* Video D general purpose counter */
11348c2ecf20Sopenharmony_ci#define  VID_DST_E_GPCNT           0x130420	/* Video E general purpose counter */
11358c2ecf20Sopenharmony_ci#define  VID_DST_F_GPCNT           0x130520	/* Video F general purpose counter */
11368c2ecf20Sopenharmony_ci#define  VID_DST_G_GPCNT           0x130620	/* Video G general purpose counter */
11378c2ecf20Sopenharmony_ci#define  VID_DST_H_GPCNT           0x130720	/* Video H general purpose counter */
11388c2ecf20Sopenharmony_ci
11398c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11408c2ecf20Sopenharmony_ci
11418c2ecf20Sopenharmony_ci#define  VID_DST_A_GPCNT_CTL       0x130030	/* Video A general purpose control */
11428c2ecf20Sopenharmony_ci#define  VID_DST_B_GPCNT_CTL       0x130130	/* Video B general purpose control */
11438c2ecf20Sopenharmony_ci#define  VID_DST_C_GPCNT_CTL       0x130230	/* Video C general purpose control */
11448c2ecf20Sopenharmony_ci#define  VID_DST_D_GPCNT_CTL       0x130330	/* Video D general purpose control */
11458c2ecf20Sopenharmony_ci#define  VID_DST_E_GPCNT_CTL       0x130430	/* Video E general purpose control */
11468c2ecf20Sopenharmony_ci#define  VID_DST_F_GPCNT_CTL       0x130530	/* Video F general purpose control */
11478c2ecf20Sopenharmony_ci#define  VID_DST_G_GPCNT_CTL       0x130630	/* Video G general purpose control */
11488c2ecf20Sopenharmony_ci#define  VID_DST_H_GPCNT_CTL       0x130730	/* Video H general purpose control */
11498c2ecf20Sopenharmony_ci
11508c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11518c2ecf20Sopenharmony_ci
11528c2ecf20Sopenharmony_ci#define  VID_DST_A_DMA_CTL         0x130040	/* Video A DMA control */
11538c2ecf20Sopenharmony_ci#define  VID_DST_B_DMA_CTL         0x130140	/* Video B DMA control */
11548c2ecf20Sopenharmony_ci#define  VID_DST_C_DMA_CTL         0x130240	/* Video C DMA control */
11558c2ecf20Sopenharmony_ci#define  VID_DST_D_DMA_CTL         0x130340	/* Video D DMA control */
11568c2ecf20Sopenharmony_ci#define  VID_DST_E_DMA_CTL         0x130440	/* Video E DMA control */
11578c2ecf20Sopenharmony_ci#define  VID_DST_F_DMA_CTL         0x130540	/* Video F DMA control */
11588c2ecf20Sopenharmony_ci#define  VID_DST_G_DMA_CTL         0x130640	/* Video G DMA control */
11598c2ecf20Sopenharmony_ci#define  VID_DST_H_DMA_CTL         0x130740	/* Video H DMA control */
11608c2ecf20Sopenharmony_ci
11618c2ecf20Sopenharmony_ci#define  FLD_VID_RISC_EN           0x00000010
11628c2ecf20Sopenharmony_ci#define  FLD_VID_FIFO_EN           0x00000001
11638c2ecf20Sopenharmony_ci
11648c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11658c2ecf20Sopenharmony_ci
11668c2ecf20Sopenharmony_ci#define  VID_DST_A_VIP_CTL         0x130080	/* Video A VIP control */
11678c2ecf20Sopenharmony_ci#define  VID_DST_B_VIP_CTL         0x130180	/* Video B VIP control */
11688c2ecf20Sopenharmony_ci#define  VID_DST_C_VIP_CTL         0x130280	/* Video C VIP control */
11698c2ecf20Sopenharmony_ci#define  VID_DST_D_VIP_CTL         0x130380	/* Video D VIP control */
11708c2ecf20Sopenharmony_ci#define  VID_DST_E_VIP_CTL         0x130480	/* Video E VIP control */
11718c2ecf20Sopenharmony_ci#define  VID_DST_F_VIP_CTL         0x130580	/* Video F VIP control */
11728c2ecf20Sopenharmony_ci#define  VID_DST_G_VIP_CTL         0x130680	/* Video G VIP control */
11738c2ecf20Sopenharmony_ci#define  VID_DST_H_VIP_CTL         0x130780	/* Video H VIP control */
11748c2ecf20Sopenharmony_ci
11758c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11768c2ecf20Sopenharmony_ci
11778c2ecf20Sopenharmony_ci#define  VID_DST_A_PIX_FRMT        0x130084	/* Video A Pixel format */
11788c2ecf20Sopenharmony_ci#define  VID_DST_B_PIX_FRMT        0x130184	/* Video B Pixel format */
11798c2ecf20Sopenharmony_ci#define  VID_DST_C_PIX_FRMT        0x130284	/* Video C Pixel format */
11808c2ecf20Sopenharmony_ci#define  VID_DST_D_PIX_FRMT        0x130384	/* Video D Pixel format */
11818c2ecf20Sopenharmony_ci#define  VID_DST_E_PIX_FRMT        0x130484	/* Video E Pixel format */
11828c2ecf20Sopenharmony_ci#define  VID_DST_F_PIX_FRMT        0x130584	/* Video F Pixel format */
11838c2ecf20Sopenharmony_ci#define  VID_DST_G_PIX_FRMT        0x130684	/* Video G Pixel format */
11848c2ecf20Sopenharmony_ci#define  VID_DST_H_PIX_FRMT        0x130784	/* Video H Pixel format */
11858c2ecf20Sopenharmony_ci
11868c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11878c2ecf20Sopenharmony_ci/* Video Source Channels */
11888c2ecf20Sopenharmony_ci/* ***************************************************************************** */
11898c2ecf20Sopenharmony_ci
11908c2ecf20Sopenharmony_ci#define  VID_SRC_A_GPCNT_CTL       0x130804	/* Video A general purpose control */
11918c2ecf20Sopenharmony_ci#define  VID_SRC_B_GPCNT_CTL       0x130904	/* Video B general purpose control */
11928c2ecf20Sopenharmony_ci#define  VID_SRC_C_GPCNT_CTL       0x130A04	/* Video C general purpose control */
11938c2ecf20Sopenharmony_ci#define  VID_SRC_D_GPCNT_CTL       0x130B04	/* Video D general purpose control */
11948c2ecf20Sopenharmony_ci#define  VID_SRC_E_GPCNT_CTL       0x130C04	/* Video E general purpose control */
11958c2ecf20Sopenharmony_ci#define  VID_SRC_F_GPCNT_CTL       0x130D04	/* Video F general purpose control */
11968c2ecf20Sopenharmony_ci#define  VID_SRC_I_GPCNT_CTL       0x130E04	/* Video I general purpose control */
11978c2ecf20Sopenharmony_ci#define  VID_SRC_J_GPCNT_CTL       0x130F04	/* Video J general purpose control */
11988c2ecf20Sopenharmony_ci
11998c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12008c2ecf20Sopenharmony_ci
12018c2ecf20Sopenharmony_ci#define  VID_SRC_A_GPCNT           0x130808	/* Video A general purpose counter */
12028c2ecf20Sopenharmony_ci#define  VID_SRC_B_GPCNT           0x130908	/* Video B general purpose counter */
12038c2ecf20Sopenharmony_ci#define  VID_SRC_C_GPCNT           0x130A08	/* Video C general purpose counter */
12048c2ecf20Sopenharmony_ci#define  VID_SRC_D_GPCNT           0x130B08	/* Video D general purpose counter */
12058c2ecf20Sopenharmony_ci#define  VID_SRC_E_GPCNT           0x130C08	/* Video E general purpose counter */
12068c2ecf20Sopenharmony_ci#define  VID_SRC_F_GPCNT           0x130D08	/* Video F general purpose counter */
12078c2ecf20Sopenharmony_ci#define  VID_SRC_I_GPCNT           0x130E08	/* Video I general purpose counter */
12088c2ecf20Sopenharmony_ci#define  VID_SRC_J_GPCNT           0x130F08	/* Video J general purpose counter */
12098c2ecf20Sopenharmony_ci
12108c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12118c2ecf20Sopenharmony_ci
12128c2ecf20Sopenharmony_ci#define  VID_SRC_A_DMA_CTL         0x13080C	/* Video A DMA control */
12138c2ecf20Sopenharmony_ci#define  VID_SRC_B_DMA_CTL         0x13090C	/* Video B DMA control */
12148c2ecf20Sopenharmony_ci#define  VID_SRC_C_DMA_CTL         0x130A0C	/* Video C DMA control */
12158c2ecf20Sopenharmony_ci#define  VID_SRC_D_DMA_CTL         0x130B0C	/* Video D DMA control */
12168c2ecf20Sopenharmony_ci#define  VID_SRC_E_DMA_CTL         0x130C0C	/* Video E DMA control */
12178c2ecf20Sopenharmony_ci#define  VID_SRC_F_DMA_CTL         0x130D0C	/* Video F DMA control */
12188c2ecf20Sopenharmony_ci#define  VID_SRC_I_DMA_CTL         0x130E0C	/* Video I DMA control */
12198c2ecf20Sopenharmony_ci#define  VID_SRC_J_DMA_CTL         0x130F0C	/* Video J DMA control */
12208c2ecf20Sopenharmony_ci
12218c2ecf20Sopenharmony_ci#define  FLD_APB_RISC_EN           0x00000010
12228c2ecf20Sopenharmony_ci#define  FLD_APB_FIFO_EN           0x00000001
12238c2ecf20Sopenharmony_ci
12248c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12258c2ecf20Sopenharmony_ci
12268c2ecf20Sopenharmony_ci#define  VID_SRC_A_FMT_CTL         0x130810	/* Video A format control */
12278c2ecf20Sopenharmony_ci#define  VID_SRC_B_FMT_CTL         0x130910	/* Video B format control */
12288c2ecf20Sopenharmony_ci#define  VID_SRC_C_FMT_CTL         0x130A10	/* Video C format control */
12298c2ecf20Sopenharmony_ci#define  VID_SRC_D_FMT_CTL         0x130B10	/* Video D format control */
12308c2ecf20Sopenharmony_ci#define  VID_SRC_E_FMT_CTL         0x130C10	/* Video E format control */
12318c2ecf20Sopenharmony_ci#define  VID_SRC_F_FMT_CTL         0x130D10	/* Video F format control */
12328c2ecf20Sopenharmony_ci#define  VID_SRC_I_FMT_CTL         0x130E10	/* Video I format control */
12338c2ecf20Sopenharmony_ci#define  VID_SRC_J_FMT_CTL         0x130F10	/* Video J format control */
12348c2ecf20Sopenharmony_ci
12358c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12368c2ecf20Sopenharmony_ci
12378c2ecf20Sopenharmony_ci#define  VID_SRC_A_ACTIVE_CTL1     0x130814	/* Video A active control      1 */
12388c2ecf20Sopenharmony_ci#define  VID_SRC_B_ACTIVE_CTL1     0x130914	/* Video B active control      1 */
12398c2ecf20Sopenharmony_ci#define  VID_SRC_C_ACTIVE_CTL1     0x130A14	/* Video C active control      1 */
12408c2ecf20Sopenharmony_ci#define  VID_SRC_D_ACTIVE_CTL1     0x130B14	/* Video D active control      1 */
12418c2ecf20Sopenharmony_ci#define  VID_SRC_E_ACTIVE_CTL1     0x130C14	/* Video E active control      1 */
12428c2ecf20Sopenharmony_ci#define  VID_SRC_F_ACTIVE_CTL1     0x130D14	/* Video F active control      1 */
12438c2ecf20Sopenharmony_ci#define  VID_SRC_I_ACTIVE_CTL1     0x130E14	/* Video I active control      1 */
12448c2ecf20Sopenharmony_ci#define  VID_SRC_J_ACTIVE_CTL1     0x130F14	/* Video J active control      1 */
12458c2ecf20Sopenharmony_ci
12468c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12478c2ecf20Sopenharmony_ci
12488c2ecf20Sopenharmony_ci#define  VID_SRC_A_ACTIVE_CTL2     0x130818	/* Video A active control      2 */
12498c2ecf20Sopenharmony_ci#define  VID_SRC_B_ACTIVE_CTL2     0x130918	/* Video B active control      2 */
12508c2ecf20Sopenharmony_ci#define  VID_SRC_C_ACTIVE_CTL2     0x130A18	/* Video C active control      2 */
12518c2ecf20Sopenharmony_ci#define  VID_SRC_D_ACTIVE_CTL2     0x130B18	/* Video D active control      2 */
12528c2ecf20Sopenharmony_ci#define  VID_SRC_E_ACTIVE_CTL2     0x130C18	/* Video E active control      2 */
12538c2ecf20Sopenharmony_ci#define  VID_SRC_F_ACTIVE_CTL2     0x130D18	/* Video F active control      2 */
12548c2ecf20Sopenharmony_ci#define  VID_SRC_I_ACTIVE_CTL2     0x130E18	/* Video I active control      2 */
12558c2ecf20Sopenharmony_ci#define  VID_SRC_J_ACTIVE_CTL2     0x130F18	/* Video J active control      2 */
12568c2ecf20Sopenharmony_ci
12578c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12588c2ecf20Sopenharmony_ci
12598c2ecf20Sopenharmony_ci#define  VID_SRC_A_CDT_SZ          0x13081C	/* Video A CDT size */
12608c2ecf20Sopenharmony_ci#define  VID_SRC_B_CDT_SZ          0x13091C	/* Video B CDT size */
12618c2ecf20Sopenharmony_ci#define  VID_SRC_C_CDT_SZ          0x130A1C	/* Video C CDT size */
12628c2ecf20Sopenharmony_ci#define  VID_SRC_D_CDT_SZ          0x130B1C	/* Video D CDT size */
12638c2ecf20Sopenharmony_ci#define  VID_SRC_E_CDT_SZ          0x130C1C	/* Video E CDT size */
12648c2ecf20Sopenharmony_ci#define  VID_SRC_F_CDT_SZ          0x130D1C	/* Video F CDT size */
12658c2ecf20Sopenharmony_ci#define  VID_SRC_I_CDT_SZ          0x130E1C	/* Video I CDT size */
12668c2ecf20Sopenharmony_ci#define  VID_SRC_J_CDT_SZ          0x130F1C	/* Video J CDT size */
12678c2ecf20Sopenharmony_ci
12688c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12698c2ecf20Sopenharmony_ci/* Audio I/F */
12708c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12718c2ecf20Sopenharmony_ci#define  AUD_DST_A_DMA             0x140000	/* Audio Int A DMA data port */
12728c2ecf20Sopenharmony_ci#define  AUD_SRC_A_DMA             0x140008	/* Audio Int A DMA data port */
12738c2ecf20Sopenharmony_ci
12748c2ecf20Sopenharmony_ci#define  AUD_A_GPCNT               0x140010	/* Audio Int A gp counter */
12758c2ecf20Sopenharmony_ci#define  FLD_AUD_A_GP_CNT          0x0000FFFF
12768c2ecf20Sopenharmony_ci
12778c2ecf20Sopenharmony_ci#define  AUD_A_GPCNT_CTL           0x140014	/* Audio Int A gp control */
12788c2ecf20Sopenharmony_ci
12798c2ecf20Sopenharmony_ci#define  AUD_A_LNGTH               0x140018	/* Audio Int A line length */
12808c2ecf20Sopenharmony_ci
12818c2ecf20Sopenharmony_ci#define  AUD_A_CFG                 0x14001C	/* Audio Int A configuration */
12828c2ecf20Sopenharmony_ci
12838c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12848c2ecf20Sopenharmony_ci#define  AUD_DST_B_DMA             0x140100	/* Audio Int B DMA data port */
12858c2ecf20Sopenharmony_ci#define  AUD_SRC_B_DMA             0x140108	/* Audio Int B DMA data port */
12868c2ecf20Sopenharmony_ci
12878c2ecf20Sopenharmony_ci#define  AUD_B_GPCNT               0x140110	/* Audio Int B gp counter */
12888c2ecf20Sopenharmony_ci#define  FLD_AUD_B_GP_CNT          0x0000FFFF
12898c2ecf20Sopenharmony_ci
12908c2ecf20Sopenharmony_ci#define  AUD_B_GPCNT_CTL           0x140114	/* Audio Int B gp control */
12918c2ecf20Sopenharmony_ci
12928c2ecf20Sopenharmony_ci#define  AUD_B_LNGTH               0x140118	/* Audio Int B line length */
12938c2ecf20Sopenharmony_ci
12948c2ecf20Sopenharmony_ci#define  AUD_B_CFG                 0x14011C	/* Audio Int B configuration */
12958c2ecf20Sopenharmony_ci
12968c2ecf20Sopenharmony_ci/* ***************************************************************************** */
12978c2ecf20Sopenharmony_ci#define  AUD_DST_C_DMA             0x140200	/* Audio Int C DMA data port */
12988c2ecf20Sopenharmony_ci#define  AUD_SRC_C_DMA             0x140208	/* Audio Int C DMA data port */
12998c2ecf20Sopenharmony_ci
13008c2ecf20Sopenharmony_ci#define  AUD_C_GPCNT               0x140210	/* Audio Int C gp counter */
13018c2ecf20Sopenharmony_ci#define  FLD_AUD_C_GP_CNT          0x0000FFFF
13028c2ecf20Sopenharmony_ci
13038c2ecf20Sopenharmony_ci#define  AUD_C_GPCNT_CTL           0x140214	/* Audio Int C gp control */
13048c2ecf20Sopenharmony_ci
13058c2ecf20Sopenharmony_ci#define  AUD_C_LNGTH               0x140218	/* Audio Int C line length */
13068c2ecf20Sopenharmony_ci
13078c2ecf20Sopenharmony_ci#define  AUD_C_CFG                 0x14021C	/* Audio Int C configuration */
13088c2ecf20Sopenharmony_ci
13098c2ecf20Sopenharmony_ci/* ***************************************************************************** */
13108c2ecf20Sopenharmony_ci#define  AUD_DST_D_DMA             0x140300	/* Audio Int D DMA data port */
13118c2ecf20Sopenharmony_ci#define  AUD_SRC_D_DMA             0x140308	/* Audio Int D DMA data port */
13128c2ecf20Sopenharmony_ci
13138c2ecf20Sopenharmony_ci#define  AUD_D_GPCNT               0x140310	/* Audio Int D gp counter */
13148c2ecf20Sopenharmony_ci#define  FLD_AUD_D_GP_CNT          0x0000FFFF
13158c2ecf20Sopenharmony_ci
13168c2ecf20Sopenharmony_ci#define  AUD_D_GPCNT_CTL           0x140314	/* Audio Int D gp control */
13178c2ecf20Sopenharmony_ci
13188c2ecf20Sopenharmony_ci#define  AUD_D_LNGTH               0x140318	/* Audio Int D line length */
13198c2ecf20Sopenharmony_ci
13208c2ecf20Sopenharmony_ci#define  AUD_D_CFG                 0x14031C	/* Audio Int D configuration */
13218c2ecf20Sopenharmony_ci
13228c2ecf20Sopenharmony_ci/* ***************************************************************************** */
13238c2ecf20Sopenharmony_ci#define  AUD_SRC_E_DMA             0x140400	/* Audio Int E DMA data port */
13248c2ecf20Sopenharmony_ci
13258c2ecf20Sopenharmony_ci#define  AUD_E_GPCNT               0x140410	/* Audio Int E gp counter */
13268c2ecf20Sopenharmony_ci#define  FLD_AUD_E_GP_CNT          0x0000FFFF
13278c2ecf20Sopenharmony_ci
13288c2ecf20Sopenharmony_ci#define  AUD_E_GPCNT_CTL           0x140414	/* Audio Int E gp control */
13298c2ecf20Sopenharmony_ci
13308c2ecf20Sopenharmony_ci#define  AUD_E_CFG                 0x14041C	/* Audio Int E configuration */
13318c2ecf20Sopenharmony_ci
13328c2ecf20Sopenharmony_ci/* ***************************************************************************** */
13338c2ecf20Sopenharmony_ci
13348c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_LN_LNGTH      0x00000FFF
13358c2ecf20Sopenharmony_ci
13368c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_PK_MODE       0x00004000
13378c2ecf20Sopenharmony_ci
13388c2ecf20Sopenharmony_ci#define  FLD_AUD_CLK_ENABLE        0x00000200
13398c2ecf20Sopenharmony_ci
13408c2ecf20Sopenharmony_ci#define  FLD_AUD_MASTER_MODE       0x00000002
13418c2ecf20Sopenharmony_ci
13428c2ecf20Sopenharmony_ci#define  FLD_AUD_SONY_MODE         0x00000001
13438c2ecf20Sopenharmony_ci
13448c2ecf20Sopenharmony_ci#define  FLD_AUD_CLK_SELECT_PLL_D  0x00001800
13458c2ecf20Sopenharmony_ci
13468c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_ENABLE        0x00020000
13478c2ecf20Sopenharmony_ci
13488c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_ENABLE        0x00010000
13498c2ecf20Sopenharmony_ci
13508c2ecf20Sopenharmony_ci/* ***************************************************************************** */
13518c2ecf20Sopenharmony_ci#define  AUD_INT_DMA_CTL           0x140500	/* Audio Int DMA control */
13528c2ecf20Sopenharmony_ci
13538c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_E_RISC_EN     0x00008000
13548c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_C_RISC_EN     0x00004000
13558c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_B_RISC_EN     0x00002000
13568c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_A_RISC_EN     0x00001000
13578c2ecf20Sopenharmony_ci
13588c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_D_RISC_EN     0x00000800
13598c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_C_RISC_EN     0x00000400
13608c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_B_RISC_EN     0x00000200
13618c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_A_RISC_EN     0x00000100
13628c2ecf20Sopenharmony_ci
13638c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_E_FIFO_EN     0x00000080
13648c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_C_FIFO_EN     0x00000040
13658c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_B_FIFO_EN     0x00000020
13668c2ecf20Sopenharmony_ci#define  FLD_AUD_SRC_A_FIFO_EN     0x00000010
13678c2ecf20Sopenharmony_ci
13688c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_D_FIFO_EN     0x00000008
13698c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_C_FIFO_EN     0x00000004
13708c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_B_FIFO_EN     0x00000002
13718c2ecf20Sopenharmony_ci#define  FLD_AUD_DST_A_FIFO_EN     0x00000001
13728c2ecf20Sopenharmony_ci
13738c2ecf20Sopenharmony_ci/* ***************************************************************************** */
13748c2ecf20Sopenharmony_ci/*  */
13758c2ecf20Sopenharmony_ci/* Mobilygen Interface Registers */
13768c2ecf20Sopenharmony_ci/*  */
13778c2ecf20Sopenharmony_ci/* ***************************************************************************** */
13788c2ecf20Sopenharmony_ci/* Mobilygen Interface A */
13798c2ecf20Sopenharmony_ci/* ***************************************************************************** */
13808c2ecf20Sopenharmony_ci#define  MB_IF_A_DMA               0x150000	/* MBIF A DMA data port */
13818c2ecf20Sopenharmony_ci#define  MB_IF_A_GPCN              0x150008	/* MBIF A GP counter */
13828c2ecf20Sopenharmony_ci#define  MB_IF_A_GPCN_CTRL         0x15000C
13838c2ecf20Sopenharmony_ci#define  MB_IF_A_DMA_CTRL          0x150010
13848c2ecf20Sopenharmony_ci#define  MB_IF_A_LENGTH            0x150014
13858c2ecf20Sopenharmony_ci#define  MB_IF_A_HDMA_XFER_SZ      0x150018
13868c2ecf20Sopenharmony_ci#define  MB_IF_A_HCMD              0x15001C
13878c2ecf20Sopenharmony_ci#define  MB_IF_A_HCONFIG           0x150020
13888c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_0     0x150024
13898c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_1     0x150028
13908c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_2     0x15002C
13918c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_3     0x150030
13928c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_4     0x150034
13938c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_5     0x150038
13948c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_6     0x15003C
13958c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_7     0x150040
13968c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_8     0x150044
13978c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_9     0x150048
13988c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_A     0x15004C
13998c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_B     0x150050
14008c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_C     0x150054
14018c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_D     0x150058
14028c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_E     0x15005C
14038c2ecf20Sopenharmony_ci#define  MB_IF_A_DATA_STRUCT_F     0x150060
14048c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14058c2ecf20Sopenharmony_ci/* Mobilygen Interface B */
14068c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14078c2ecf20Sopenharmony_ci#define  MB_IF_B_DMA               0x160000	/* MBIF A DMA data port */
14088c2ecf20Sopenharmony_ci#define  MB_IF_B_GPCN              0x160008	/* MBIF A GP counter */
14098c2ecf20Sopenharmony_ci#define  MB_IF_B_GPCN_CTRL         0x16000C
14108c2ecf20Sopenharmony_ci#define  MB_IF_B_DMA_CTRL          0x160010
14118c2ecf20Sopenharmony_ci#define  MB_IF_B_LENGTH            0x160014
14128c2ecf20Sopenharmony_ci#define  MB_IF_B_HDMA_XFER_SZ      0x160018
14138c2ecf20Sopenharmony_ci#define  MB_IF_B_HCMD              0x16001C
14148c2ecf20Sopenharmony_ci#define  MB_IF_B_HCONFIG           0x160020
14158c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_0     0x160024
14168c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_1     0x160028
14178c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_2     0x16002C
14188c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_3     0x160030
14198c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_4     0x160034
14208c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_5     0x160038
14218c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_6     0x16003C
14228c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_7     0x160040
14238c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_8     0x160044
14248c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_9     0x160048
14258c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_A     0x16004C
14268c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_B     0x160050
14278c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_C     0x160054
14288c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_D     0x160058
14298c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_E     0x16005C
14308c2ecf20Sopenharmony_ci#define  MB_IF_B_DATA_STRUCT_F     0x160060
14318c2ecf20Sopenharmony_ci
14328c2ecf20Sopenharmony_ci/* MB_DMA_CTRL */
14338c2ecf20Sopenharmony_ci#define  FLD_MB_IF_RISC_EN         0x00000010
14348c2ecf20Sopenharmony_ci#define  FLD_MB_IF_FIFO_EN         0x00000001
14358c2ecf20Sopenharmony_ci
14368c2ecf20Sopenharmony_ci/* MB_LENGTH */
14378c2ecf20Sopenharmony_ci#define  FLD_MB_IF_LN_LNGTH        0x00000FFF
14388c2ecf20Sopenharmony_ci
14398c2ecf20Sopenharmony_ci/* MB_HCMD register */
14408c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_GO          0x80000000
14418c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_BUSY        0x40000000
14428c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_DMA_HOLD    0x10000000
14438c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_DMA_BUSY    0x08000000
14448c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_DMA_TYPE    0x04000000
14458c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_DMA_XACT    0x02000000
14468c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_RW_N        0x01000000
14478c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_ADDR        0x00FF0000
14488c2ecf20Sopenharmony_ci#define  FLD_MB_HCMD_H_DATA        0x0000FFFF
14498c2ecf20Sopenharmony_ci
14508c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14518c2ecf20Sopenharmony_ci/* I2C #1 */
14528c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14538c2ecf20Sopenharmony_ci#define  I2C1_ADDR                 0x180000	/* I2C #1 address */
14548c2ecf20Sopenharmony_ci#define  FLD_I2C_DADDR             0xfe000000	/* RW [31:25] I2C Device Address */
14558c2ecf20Sopenharmony_ci						 /* RO [24] reserved */
14568c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14578c2ecf20Sopenharmony_ci#define  FLD_I2C_SADDR             0x00FFFFFF	/* RW [23:0]  I2C Sub-address */
14588c2ecf20Sopenharmony_ci
14598c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14608c2ecf20Sopenharmony_ci#define  I2C1_WDATA                0x180004	/* I2C #1 write data */
14618c2ecf20Sopenharmony_ci#define  FLD_I2C_WDATA             0xFFFFFFFF	/* RW [31:0] */
14628c2ecf20Sopenharmony_ci
14638c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14648c2ecf20Sopenharmony_ci#define  I2C1_CTRL                 0x180008	/* I2C #1 control */
14658c2ecf20Sopenharmony_ci#define  FLD_I2C_PERIOD            0xFF000000	/* RW [31:24] */
14668c2ecf20Sopenharmony_ci#define  FLD_I2C_SCL_IN            0x00200000	/* RW [21] */
14678c2ecf20Sopenharmony_ci#define  FLD_I2C_SDA_IN            0x00100000	/* RW [20] */
14688c2ecf20Sopenharmony_ci						 /* RO [19:18] reserved */
14698c2ecf20Sopenharmony_ci#define  FLD_I2C_SCL_OUT           0x00020000	/* RW [17] */
14708c2ecf20Sopenharmony_ci#define  FLD_I2C_SDA_OUT           0x00010000	/* RW [16] */
14718c2ecf20Sopenharmony_ci						 /* RO [15] reserved */
14728c2ecf20Sopenharmony_ci#define  FLD_I2C_DATA_LEN          0x00007000	/* RW [14:12] */
14738c2ecf20Sopenharmony_ci#define  FLD_I2C_SADDR_INC         0x00000800	/* RW [11] */
14748c2ecf20Sopenharmony_ci						 /* RO [10:9] reserved */
14758c2ecf20Sopenharmony_ci#define  FLD_I2C_SADDR_LEN         0x00000300	/* RW [9:8] */
14768c2ecf20Sopenharmony_ci						 /* RO [7:6] reserved */
14778c2ecf20Sopenharmony_ci#define  FLD_I2C_SOFT              0x00000020	/* RW [5] */
14788c2ecf20Sopenharmony_ci#define  FLD_I2C_NOSTOP            0x00000010	/* RW [4] */
14798c2ecf20Sopenharmony_ci#define  FLD_I2C_EXTEND            0x00000008	/* RW [3] */
14808c2ecf20Sopenharmony_ci#define  FLD_I2C_SYNC              0x00000004	/* RW [2] */
14818c2ecf20Sopenharmony_ci#define  FLD_I2C_READ_SA           0x00000002	/* RW [1] */
14828c2ecf20Sopenharmony_ci#define  FLD_I2C_READ_WRN          0x00000001	/* RW [0] */
14838c2ecf20Sopenharmony_ci
14848c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14858c2ecf20Sopenharmony_ci#define  I2C1_RDATA                0x18000C	/* I2C #1 read data */
14868c2ecf20Sopenharmony_ci#define  FLD_I2C_RDATA             0xFFFFFFFF	/* RO [31:0] */
14878c2ecf20Sopenharmony_ci
14888c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14898c2ecf20Sopenharmony_ci#define  I2C1_STAT                 0x180010	/* I2C #1 status */
14908c2ecf20Sopenharmony_ci#define  FLD_I2C_XFER_IN_PROG      0x00000002	/* RO [1] */
14918c2ecf20Sopenharmony_ci#define  FLD_I2C_RACK              0x00000001	/* RO [0] */
14928c2ecf20Sopenharmony_ci
14938c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14948c2ecf20Sopenharmony_ci/* I2C #2 */
14958c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14968c2ecf20Sopenharmony_ci#define  I2C2_ADDR                 0x190000	/* I2C #2 address */
14978c2ecf20Sopenharmony_ci
14988c2ecf20Sopenharmony_ci/* ***************************************************************************** */
14998c2ecf20Sopenharmony_ci#define  I2C2_WDATA                0x190004	/* I2C #2 write data */
15008c2ecf20Sopenharmony_ci
15018c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15028c2ecf20Sopenharmony_ci#define  I2C2_CTRL                 0x190008	/* I2C #2 control */
15038c2ecf20Sopenharmony_ci
15048c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15058c2ecf20Sopenharmony_ci#define  I2C2_RDATA                0x19000C	/* I2C #2 read data */
15068c2ecf20Sopenharmony_ci
15078c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15088c2ecf20Sopenharmony_ci#define  I2C2_STAT                 0x190010	/* I2C #2 status */
15098c2ecf20Sopenharmony_ci
15108c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15118c2ecf20Sopenharmony_ci/* I2C #3 */
15128c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15138c2ecf20Sopenharmony_ci#define  I2C3_ADDR                 0x1A0000	/* I2C #3 address */
15148c2ecf20Sopenharmony_ci
15158c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15168c2ecf20Sopenharmony_ci#define  I2C3_WDATA                0x1A0004	/* I2C #3 write data */
15178c2ecf20Sopenharmony_ci
15188c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15198c2ecf20Sopenharmony_ci#define  I2C3_CTRL                 0x1A0008	/* I2C #3 control */
15208c2ecf20Sopenharmony_ci
15218c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15228c2ecf20Sopenharmony_ci#define  I2C3_RDATA                0x1A000C	/* I2C #3 read data */
15238c2ecf20Sopenharmony_ci
15248c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15258c2ecf20Sopenharmony_ci#define  I2C3_STAT                 0x1A0010	/* I2C #3 status */
15268c2ecf20Sopenharmony_ci
15278c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15288c2ecf20Sopenharmony_ci/* UART */
15298c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15308c2ecf20Sopenharmony_ci#define  UART_CTL                  0x1B0000	/* UART Control Register */
15318c2ecf20Sopenharmony_ci#define  FLD_LOOP_BACK_EN          (1 << 7)	/* RW field - default 0 */
15328c2ecf20Sopenharmony_ci#define  FLD_RX_TRG_SZ             (3 << 2)	/* RW field - default 0 */
15338c2ecf20Sopenharmony_ci#define  FLD_RX_EN                 (1 << 1)	/* RW field - default 0 */
15348c2ecf20Sopenharmony_ci#define  FLD_TX_EN                 (1 << 0)	/* RW field - default 0 */
15358c2ecf20Sopenharmony_ci
15368c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15378c2ecf20Sopenharmony_ci#define  UART_BRD                  0x1B0004	/* UART Baud Rate Divisor */
15388c2ecf20Sopenharmony_ci#define  FLD_BRD                   0x0000FFFF	/* RW field - default 0x197 */
15398c2ecf20Sopenharmony_ci
15408c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15418c2ecf20Sopenharmony_ci#define  UART_DBUF                 0x1B0008	/* UART Tx/Rx Data BuFFer */
15428c2ecf20Sopenharmony_ci#define  FLD_DB                    0xFFFFFFFF	/* RW field - default 0 */
15438c2ecf20Sopenharmony_ci
15448c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15458c2ecf20Sopenharmony_ci#define  UART_ISR                  0x1B000C	/* UART Interrupt Status */
15468c2ecf20Sopenharmony_ci#define  FLD_RXD_TIMEOUT_EN        (1 << 7)	/* RW field - default 0 */
15478c2ecf20Sopenharmony_ci#define  FLD_FRM_ERR_EN            (1 << 6)	/* RW field - default 0 */
15488c2ecf20Sopenharmony_ci#define  FLD_RXD_RDY_EN            (1 << 5)	/* RW field - default 0 */
15498c2ecf20Sopenharmony_ci#define  FLD_TXD_EMPTY_EN          (1 << 4)	/* RW field - default 0 */
15508c2ecf20Sopenharmony_ci#define  FLD_RXD_OVERFLOW          (1 << 3)	/* RW field - default 0 */
15518c2ecf20Sopenharmony_ci#define  FLD_FRM_ERR               (1 << 2)	/* RW field - default 0 */
15528c2ecf20Sopenharmony_ci#define  FLD_RXD_RDY               (1 << 1)	/* RW field - default 0 */
15538c2ecf20Sopenharmony_ci#define  FLD_TXD_EMPTY             (1 << 0)	/* RW field - default 0 */
15548c2ecf20Sopenharmony_ci
15558c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15568c2ecf20Sopenharmony_ci#define  UART_CNT                  0x1B0010	/* UART Tx/Rx FIFO Byte Count */
15578c2ecf20Sopenharmony_ci#define  FLD_TXD_CNT               (0x1F << 8)	/* RW field - default 0 */
15588c2ecf20Sopenharmony_ci#define  FLD_RXD_CNT               (0x1F << 0)	/* RW field - default 0 */
15598c2ecf20Sopenharmony_ci
15608c2ecf20Sopenharmony_ci/* ***************************************************************************** */
15618c2ecf20Sopenharmony_ci/* Motion Detection */
15628c2ecf20Sopenharmony_ci#define  MD_CH0_GRID_BLOCK_YCNT    0x170014
15638c2ecf20Sopenharmony_ci#define  MD_CH1_GRID_BLOCK_YCNT    0x170094
15648c2ecf20Sopenharmony_ci#define  MD_CH2_GRID_BLOCK_YCNT    0x170114
15658c2ecf20Sopenharmony_ci#define  MD_CH3_GRID_BLOCK_YCNT    0x170194
15668c2ecf20Sopenharmony_ci#define  MD_CH4_GRID_BLOCK_YCNT    0x170214
15678c2ecf20Sopenharmony_ci#define  MD_CH5_GRID_BLOCK_YCNT    0x170294
15688c2ecf20Sopenharmony_ci#define  MD_CH6_GRID_BLOCK_YCNT    0x170314
15698c2ecf20Sopenharmony_ci#define  MD_CH7_GRID_BLOCK_YCNT    0x170394
15708c2ecf20Sopenharmony_ci
15718c2ecf20Sopenharmony_ci#define PIXEL_FRMT_422    4
15728c2ecf20Sopenharmony_ci#define PIXEL_FRMT_411    5
15738c2ecf20Sopenharmony_ci#define PIXEL_FRMT_Y8     6
15748c2ecf20Sopenharmony_ci
15758c2ecf20Sopenharmony_ci#define PIXEL_ENGINE_VIP1 0
15768c2ecf20Sopenharmony_ci#define PIXEL_ENGINE_VIP2 1
15778c2ecf20Sopenharmony_ci
15788c2ecf20Sopenharmony_ci#endif /* Athena_REGISTERS */
1579