18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Ralink RT3662/RT3883 SoC register definitions
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _RT3883_REGS_H_
98c2ecf20Sopenharmony_ci#define _RT3883_REGS_H_
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <linux/bitops.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define RT3883_SDRAM_BASE	0x00000000
148c2ecf20Sopenharmony_ci#define RT3883_SYSC_BASE	0x10000000
158c2ecf20Sopenharmony_ci#define RT3883_TIMER_BASE	0x10000100
168c2ecf20Sopenharmony_ci#define RT3883_INTC_BASE	0x10000200
178c2ecf20Sopenharmony_ci#define RT3883_MEMC_BASE	0x10000300
188c2ecf20Sopenharmony_ci#define RT3883_UART0_BASE	0x10000500
198c2ecf20Sopenharmony_ci#define RT3883_PIO_BASE		0x10000600
208c2ecf20Sopenharmony_ci#define RT3883_FSCC_BASE	0x10000700
218c2ecf20Sopenharmony_ci#define RT3883_NANDC_BASE	0x10000810
228c2ecf20Sopenharmony_ci#define RT3883_I2C_BASE		0x10000900
238c2ecf20Sopenharmony_ci#define RT3883_I2S_BASE		0x10000a00
248c2ecf20Sopenharmony_ci#define RT3883_SPI_BASE		0x10000b00
258c2ecf20Sopenharmony_ci#define RT3883_UART1_BASE	0x10000c00
268c2ecf20Sopenharmony_ci#define RT3883_PCM_BASE		0x10002000
278c2ecf20Sopenharmony_ci#define RT3883_GDMA_BASE	0x10002800
288c2ecf20Sopenharmony_ci#define RT3883_CODEC1_BASE	0x10003000
298c2ecf20Sopenharmony_ci#define RT3883_CODEC2_BASE	0x10003800
308c2ecf20Sopenharmony_ci#define RT3883_FE_BASE		0x10100000
318c2ecf20Sopenharmony_ci#define RT3883_ROM_BASE		0x10118000
328c2ecf20Sopenharmony_ci#define RT3883_USBDEV_BASE	0x10112000
338c2ecf20Sopenharmony_ci#define RT3883_PCI_BASE		0x10140000
348c2ecf20Sopenharmony_ci#define RT3883_WLAN_BASE	0x10180000
358c2ecf20Sopenharmony_ci#define RT3883_USBHOST_BASE	0x101c0000
368c2ecf20Sopenharmony_ci#define RT3883_BOOT_BASE	0x1c000000
378c2ecf20Sopenharmony_ci#define RT3883_SRAM_BASE	0x1e000000
388c2ecf20Sopenharmony_ci#define RT3883_PCIMEM_BASE	0x20000000
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#define RT3883_EHCI_BASE	(RT3883_USBHOST_BASE)
418c2ecf20Sopenharmony_ci#define RT3883_OHCI_BASE	(RT3883_USBHOST_BASE + 0x1000)
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci#define RT3883_SYSC_SIZE	0x100
448c2ecf20Sopenharmony_ci#define RT3883_TIMER_SIZE	0x100
458c2ecf20Sopenharmony_ci#define RT3883_INTC_SIZE	0x100
468c2ecf20Sopenharmony_ci#define RT3883_MEMC_SIZE	0x100
478c2ecf20Sopenharmony_ci#define RT3883_UART0_SIZE	0x100
488c2ecf20Sopenharmony_ci#define RT3883_UART1_SIZE	0x100
498c2ecf20Sopenharmony_ci#define RT3883_PIO_SIZE		0x100
508c2ecf20Sopenharmony_ci#define RT3883_FSCC_SIZE	0x100
518c2ecf20Sopenharmony_ci#define RT3883_NANDC_SIZE	0x0f0
528c2ecf20Sopenharmony_ci#define RT3883_I2C_SIZE		0x100
538c2ecf20Sopenharmony_ci#define RT3883_I2S_SIZE		0x100
548c2ecf20Sopenharmony_ci#define RT3883_SPI_SIZE		0x100
558c2ecf20Sopenharmony_ci#define RT3883_PCM_SIZE		0x800
568c2ecf20Sopenharmony_ci#define RT3883_GDMA_SIZE	0x800
578c2ecf20Sopenharmony_ci#define RT3883_CODEC1_SIZE	0x800
588c2ecf20Sopenharmony_ci#define RT3883_CODEC2_SIZE	0x800
598c2ecf20Sopenharmony_ci#define RT3883_FE_SIZE		0x10000
608c2ecf20Sopenharmony_ci#define RT3883_ROM_SIZE		0x4000
618c2ecf20Sopenharmony_ci#define RT3883_USBDEV_SIZE	0x4000
628c2ecf20Sopenharmony_ci#define RT3883_PCI_SIZE		0x40000
638c2ecf20Sopenharmony_ci#define RT3883_WLAN_SIZE	0x40000
648c2ecf20Sopenharmony_ci#define RT3883_USBHOST_SIZE	0x40000
658c2ecf20Sopenharmony_ci#define RT3883_BOOT_SIZE	(32 * 1024 * 1024)
668c2ecf20Sopenharmony_ci#define RT3883_SRAM_SIZE	(32 * 1024 * 1024)
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci/* SYSC registers */
698c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_CHIPID0_3	0x00	/* Chip ID 0 */
708c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_CHIPID4_7	0x04	/* Chip ID 1 */
718c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_REVID		0x0c	/* Chip Revision Identification */
728c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_SYSCFG0		0x10	/* System Configuration 0 */
738c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_SYSCFG1		0x14	/* System Configuration 1 */
748c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_CLKCFG0		0x2c	/* Clock Configuration 0 */
758c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_CLKCFG1		0x30	/* Clock Configuration 1 */
768c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_RSTCTRL		0x34	/* Reset Control*/
778c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_RSTSTAT		0x38	/* Reset Status*/
788c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_USB_PS		0x5c	/* USB Power saving control */
798c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_GPIO_MODE	0x60	/* GPIO Purpose Select */
808c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_PCIE_CLK_GEN0	0x7c
818c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_PCIE_CLK_GEN1	0x80
828c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_PCIE_CLK_GEN2	0x84
838c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_PMU		0x88
848c2ecf20Sopenharmony_ci#define RT3883_SYSC_REG_PMU1		0x8c
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci#define RT3883_CHIP_NAME0		0x38335452
878c2ecf20Sopenharmony_ci#define RT3883_CHIP_NAME1		0x20203338
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci#define RT3883_REVID_VER_ID_MASK	0x0f
908c2ecf20Sopenharmony_ci#define RT3883_REVID_VER_ID_SHIFT	8
918c2ecf20Sopenharmony_ci#define RT3883_REVID_ECO_ID_MASK	0x0f
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci#define RT3883_SYSCFG0_DRAM_TYPE_DDR2	BIT(17)
948c2ecf20Sopenharmony_ci#define RT3883_SYSCFG0_CPUCLK_SHIFT	8
958c2ecf20Sopenharmony_ci#define RT3883_SYSCFG0_CPUCLK_MASK	0x3
968c2ecf20Sopenharmony_ci#define RT3883_SYSCFG0_CPUCLK_250	0x0
978c2ecf20Sopenharmony_ci#define RT3883_SYSCFG0_CPUCLK_384	0x1
988c2ecf20Sopenharmony_ci#define RT3883_SYSCFG0_CPUCLK_480	0x2
998c2ecf20Sopenharmony_ci#define RT3883_SYSCFG0_CPUCLK_500	0x3
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci#define RT3883_SYSCFG1_USB0_HOST_MODE	BIT(10)
1028c2ecf20Sopenharmony_ci#define RT3883_SYSCFG1_PCIE_RC_MODE	BIT(8)
1038c2ecf20Sopenharmony_ci#define RT3883_SYSCFG1_PCI_HOST_MODE	BIT(7)
1048c2ecf20Sopenharmony_ci#define RT3883_SYSCFG1_PCI_66M_MODE	BIT(6)
1058c2ecf20Sopenharmony_ci#define RT3883_SYSCFG1_GPIO2_AS_WDT_OUT	BIT(2)
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci#define RT3883_CLKCFG1_PCIE_CLK_EN	BIT(21)
1088c2ecf20Sopenharmony_ci#define RT3883_CLKCFG1_UPHY1_CLK_EN	BIT(20)
1098c2ecf20Sopenharmony_ci#define RT3883_CLKCFG1_PCI_CLK_EN	BIT(19)
1108c2ecf20Sopenharmony_ci#define RT3883_CLKCFG1_UPHY0_CLK_EN	BIT(18)
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_UART0_SHIFT	2
1138c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_UART0_MASK	0x7
1148c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_UART0(x)	((x) << RT3883_GPIO_MODE_UART0_SHIFT)
1158c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_UARTF		0x0
1168c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_PCM_UARTF	0x1
1178c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_PCM_I2S	0x2
1188c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_I2S_UARTF	0x3
1198c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_PCM_GPIO	0x4
1208c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_GPIO_UARTF	0x5
1218c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_GPIO_I2S	0x6
1228c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_GPIO		0x7
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_I2C		0
1258c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_SPI		1
1268c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_UART1		5
1278c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_JTAG		6
1288c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_MDIO		7
1298c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_GE1		9
1308c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_GE2		10
1318c2ecf20Sopenharmony_ci
1328c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_PCI_SHIFT	11
1338c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_PCI_MASK	0x7
1348c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_PCI		(RT3883_GPIO_MODE_PCI_MASK << RT3883_GPIO_MODE_PCI_SHIFT)
1358c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_LNA_A_SHIFT	16
1368c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_LNA_A_MASK	0x3
1378c2ecf20Sopenharmony_ci#define _RT3883_GPIO_MODE_LNA_A(_x)	((_x) << RT3883_GPIO_MODE_LNA_A_SHIFT)
1388c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_LNA_A_GPIO	0x3
1398c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_LNA_A		_RT3883_GPIO_MODE_LNA_A(RT3883_GPIO_MODE_LNA_A_MASK)
1408c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_LNA_G_SHIFT	18
1418c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_LNA_G_MASK	0x3
1428c2ecf20Sopenharmony_ci#define _RT3883_GPIO_MODE_LNA_G(_x)	((_x) << RT3883_GPIO_MODE_LNA_G_SHIFT)
1438c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_LNA_G_GPIO	0x3
1448c2ecf20Sopenharmony_ci#define RT3883_GPIO_MODE_LNA_G		_RT3883_GPIO_MODE_LNA_G(RT3883_GPIO_MODE_LNA_G_MASK)
1458c2ecf20Sopenharmony_ci
1468c2ecf20Sopenharmony_ci#define RT3883_GPIO_I2C_SD		1
1478c2ecf20Sopenharmony_ci#define RT3883_GPIO_I2C_SCLK		2
1488c2ecf20Sopenharmony_ci#define RT3883_GPIO_SPI_CS0		3
1498c2ecf20Sopenharmony_ci#define RT3883_GPIO_SPI_CLK		4
1508c2ecf20Sopenharmony_ci#define RT3883_GPIO_SPI_MOSI		5
1518c2ecf20Sopenharmony_ci#define RT3883_GPIO_SPI_MISO		6
1528c2ecf20Sopenharmony_ci#define RT3883_GPIO_7			7
1538c2ecf20Sopenharmony_ci#define RT3883_GPIO_10			10
1548c2ecf20Sopenharmony_ci#define RT3883_GPIO_11			11
1558c2ecf20Sopenharmony_ci#define RT3883_GPIO_14			14
1568c2ecf20Sopenharmony_ci#define RT3883_GPIO_UART1_TXD		15
1578c2ecf20Sopenharmony_ci#define RT3883_GPIO_UART1_RXD		16
1588c2ecf20Sopenharmony_ci#define RT3883_GPIO_JTAG_TDO		17
1598c2ecf20Sopenharmony_ci#define RT3883_GPIO_JTAG_TDI		18
1608c2ecf20Sopenharmony_ci#define RT3883_GPIO_JTAG_TMS		19
1618c2ecf20Sopenharmony_ci#define RT3883_GPIO_JTAG_TCLK		20
1628c2ecf20Sopenharmony_ci#define RT3883_GPIO_JTAG_TRST_N		21
1638c2ecf20Sopenharmony_ci#define RT3883_GPIO_MDIO_MDC		22
1648c2ecf20Sopenharmony_ci#define RT3883_GPIO_MDIO_MDIO		23
1658c2ecf20Sopenharmony_ci#define RT3883_GPIO_LNA_PE_A0		32
1668c2ecf20Sopenharmony_ci#define RT3883_GPIO_LNA_PE_A1		33
1678c2ecf20Sopenharmony_ci#define RT3883_GPIO_LNA_PE_A2		34
1688c2ecf20Sopenharmony_ci#define RT3883_GPIO_LNA_PE_G0		35
1698c2ecf20Sopenharmony_ci#define RT3883_GPIO_LNA_PE_G1		36
1708c2ecf20Sopenharmony_ci#define RT3883_GPIO_LNA_PE_G2		37
1718c2ecf20Sopenharmony_ci#define RT3883_GPIO_PCI_AD0		40
1728c2ecf20Sopenharmony_ci#define RT3883_GPIO_PCI_AD31		71
1738c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_TXD0		72
1748c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_TXD1		73
1758c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_TXD2		74
1768c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_TXD3		75
1778c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_TXEN		76
1788c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_TXCLK		77
1798c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_RXD0		78
1808c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_RXD1		79
1818c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_RXD2		80
1828c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_RXD3		81
1838c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_RXDV		82
1848c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE2_RXCLK		83
1858c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_TXD0		84
1868c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_TXD1		85
1878c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_TXD2		86
1888c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_TXD3		87
1898c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_TXEN		88
1908c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_TXCLK		89
1918c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_RXD0		90
1928c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_RXD1		91
1938c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_RXD2		92
1948c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_RXD3		93
1958c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_RXDV		94
1968c2ecf20Sopenharmony_ci#define RT3883_GPIO_GE1_RXCLK	95
1978c2ecf20Sopenharmony_ci
1988c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_PCIE_PCI_PDM	BIT(27)
1998c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_FLASH		BIT(26)
2008c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_UDEV		BIT(25)
2018c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_PCI		BIT(24)
2028c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_PCIE		BIT(23)
2038c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_UHST		BIT(22)
2048c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_FE		BIT(21)
2058c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_WLAN		BIT(20)
2068c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_UART1		BIT(29)
2078c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_SPI		BIT(18)
2088c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_I2S		BIT(17)
2098c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_I2C		BIT(16)
2108c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_NAND		BIT(15)
2118c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_DMA		BIT(14)
2128c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_PIO		BIT(13)
2138c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_UART		BIT(12)
2148c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_PCM		BIT(11)
2158c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_MC		BIT(10)
2168c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_INTC		BIT(9)
2178c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_TIMER		BIT(8)
2188c2ecf20Sopenharmony_ci#define RT3883_RSTCTRL_SYS		BIT(0)
2198c2ecf20Sopenharmony_ci
2208c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_SYSCTL	BIT(0)
2218c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_TIMER0	BIT(1)
2228c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_TIMER1	BIT(2)
2238c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_IA	BIT(3)
2248c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_PCM	BIT(4)
2258c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_UART0	BIT(5)
2268c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_PIO	BIT(6)
2278c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_DMA	BIT(7)
2288c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_NAND	BIT(8)
2298c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_PERFC	BIT(9)
2308c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_I2S	BIT(10)
2318c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_UART1	BIT(12)
2328c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_UHST	BIT(18)
2338c2ecf20Sopenharmony_ci#define RT3883_INTC_INT_UDEV	BIT(19)
2348c2ecf20Sopenharmony_ci
2358c2ecf20Sopenharmony_ci/* FLASH/SRAM/Codec Controller registers */
2368c2ecf20Sopenharmony_ci#define RT3883_FSCC_REG_FLASH_CFG0	0x00
2378c2ecf20Sopenharmony_ci#define RT3883_FSCC_REG_FLASH_CFG1	0x04
2388c2ecf20Sopenharmony_ci#define RT3883_FSCC_REG_CODEC_CFG0	0x40
2398c2ecf20Sopenharmony_ci#define RT3883_FSCC_REG_CODEC_CFG1	0x44
2408c2ecf20Sopenharmony_ci
2418c2ecf20Sopenharmony_ci#define RT3883_FLASH_CFG_WIDTH_SHIFT	26
2428c2ecf20Sopenharmony_ci#define RT3883_FLASH_CFG_WIDTH_MASK	0x3
2438c2ecf20Sopenharmony_ci#define RT3883_FLASH_CFG_WIDTH_8BIT	0x0
2448c2ecf20Sopenharmony_ci#define RT3883_FLASH_CFG_WIDTH_16BIT	0x1
2458c2ecf20Sopenharmony_ci#define RT3883_FLASH_CFG_WIDTH_32BIT	0x2
2468c2ecf20Sopenharmony_ci
2478c2ecf20Sopenharmony_ci#define RT3883_SDRAM_BASE		0x00000000
2488c2ecf20Sopenharmony_ci#define RT3883_MEM_SIZE_MIN		2
2498c2ecf20Sopenharmony_ci#define RT3883_MEM_SIZE_MAX		256
2508c2ecf20Sopenharmony_ci
2518c2ecf20Sopenharmony_ci#endif /* _RT3883_REGS_H_ */
252