18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/****************************************************************************/
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci/*
58c2ecf20Sopenharmony_ci *	m53xxsim.h -- ColdFire 5329 registers
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/****************************************************************************/
98c2ecf20Sopenharmony_ci#ifndef	m53xxsim_h
108c2ecf20Sopenharmony_ci#define	m53xxsim_h
118c2ecf20Sopenharmony_ci/****************************************************************************/
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define	CPU_NAME		"COLDFIRE(m53xx)"
148c2ecf20Sopenharmony_ci#define	CPU_INSTR_PER_JIFFY	3
158c2ecf20Sopenharmony_ci#define	MCF_BUSCLK		(MCF_CLK / 3)
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#include <asm/m53xxacr.h>
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#define MCFINT_VECBASE      64
208c2ecf20Sopenharmony_ci#define MCFINT_UART0        26          /* Interrupt number for UART0 */
218c2ecf20Sopenharmony_ci#define MCFINT_UART1        27          /* Interrupt number for UART1 */
228c2ecf20Sopenharmony_ci#define MCFINT_UART2        28          /* Interrupt number for UART2 */
238c2ecf20Sopenharmony_ci#define MCFINT_I2C0         30		/* Interrupt number for I2C */
248c2ecf20Sopenharmony_ci#define MCFINT_QSPI         31          /* Interrupt number for QSPI */
258c2ecf20Sopenharmony_ci#define MCFINT_FECRX0	    36		/* Interrupt number for FEC */
268c2ecf20Sopenharmony_ci#define MCFINT_FECTX0	    40		/* Interrupt number for FEC */
278c2ecf20Sopenharmony_ci#define MCFINT_FECENTC0	    42		/* Interrupt number for FEC */
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define MCF_IRQ_UART0       (MCFINT_VECBASE + MCFINT_UART0)
308c2ecf20Sopenharmony_ci#define MCF_IRQ_UART1       (MCFINT_VECBASE + MCFINT_UART1)
318c2ecf20Sopenharmony_ci#define MCF_IRQ_UART2       (MCFINT_VECBASE + MCFINT_UART2)
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#define MCF_IRQ_FECRX0	    (MCFINT_VECBASE + MCFINT_FECRX0)
348c2ecf20Sopenharmony_ci#define MCF_IRQ_FECTX0	    (MCFINT_VECBASE + MCFINT_FECTX0)
358c2ecf20Sopenharmony_ci#define MCF_IRQ_FECENTC0    (MCFINT_VECBASE + MCFINT_FECENTC0)
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#define	MCF_IRQ_I2C0	    (MCFINT_VECBASE + MCFINT_I2C0)
388c2ecf20Sopenharmony_ci#define	MCF_IRQ_QSPI	    (MCFINT_VECBASE + MCFINT_QSPI)
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#define MCF_WTM_WCR		0xFC098000
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*
438c2ecf20Sopenharmony_ci *	Define the 532x SIM register set addresses.
448c2ecf20Sopenharmony_ci */
458c2ecf20Sopenharmony_ci#define	MCFSIM_IPRL		0xFC048004
468c2ecf20Sopenharmony_ci#define	MCFSIM_IPRH		0xFC048000
478c2ecf20Sopenharmony_ci#define	MCFSIM_IPR		MCFSIM_IPRL
488c2ecf20Sopenharmony_ci#define	MCFSIM_IMRL		0xFC04800C
498c2ecf20Sopenharmony_ci#define	MCFSIM_IMRH		0xFC048008
508c2ecf20Sopenharmony_ci#define	MCFSIM_IMR		MCFSIM_IMRL
518c2ecf20Sopenharmony_ci#define	MCFSIM_ICR0		0xFC048040
528c2ecf20Sopenharmony_ci#define	MCFSIM_ICR1		0xFC048041
538c2ecf20Sopenharmony_ci#define	MCFSIM_ICR2		0xFC048042
548c2ecf20Sopenharmony_ci#define	MCFSIM_ICR3		0xFC048043
558c2ecf20Sopenharmony_ci#define	MCFSIM_ICR4		0xFC048044
568c2ecf20Sopenharmony_ci#define	MCFSIM_ICR5		0xFC048045
578c2ecf20Sopenharmony_ci#define	MCFSIM_ICR6		0xFC048046
588c2ecf20Sopenharmony_ci#define	MCFSIM_ICR7		0xFC048047
598c2ecf20Sopenharmony_ci#define	MCFSIM_ICR8		0xFC048048
608c2ecf20Sopenharmony_ci#define	MCFSIM_ICR9		0xFC048049
618c2ecf20Sopenharmony_ci#define	MCFSIM_ICR10		0xFC04804A
628c2ecf20Sopenharmony_ci#define	MCFSIM_ICR11		0xFC04804B
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci/*
658c2ecf20Sopenharmony_ci *	Some symbol defines for the above...
668c2ecf20Sopenharmony_ci */
678c2ecf20Sopenharmony_ci#define	MCFSIM_SWDICR		MCFSIM_ICR0	/* Watchdog timer ICR */
688c2ecf20Sopenharmony_ci#define	MCFSIM_TIMER1ICR	MCFSIM_ICR1	/* Timer 1 ICR */
698c2ecf20Sopenharmony_ci#define	MCFSIM_TIMER2ICR	MCFSIM_ICR2	/* Timer 2 ICR */
708c2ecf20Sopenharmony_ci#define	MCFSIM_UART1ICR		MCFSIM_ICR4	/* UART 1 ICR */
718c2ecf20Sopenharmony_ci#define	MCFSIM_UART2ICR		MCFSIM_ICR5	/* UART 2 ICR */
728c2ecf20Sopenharmony_ci#define	MCFSIM_DMA0ICR		MCFSIM_ICR6	/* DMA 0 ICR */
738c2ecf20Sopenharmony_ci#define	MCFSIM_DMA1ICR		MCFSIM_ICR7	/* DMA 1 ICR */
748c2ecf20Sopenharmony_ci#define	MCFSIM_DMA2ICR		MCFSIM_ICR8	/* DMA 2 ICR */
758c2ecf20Sopenharmony_ci#define	MCFSIM_DMA3ICR		MCFSIM_ICR9	/* DMA 3 ICR */
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci#define	MCFINTC0_SIMR		0xFC04801C
798c2ecf20Sopenharmony_ci#define	MCFINTC0_CIMR		0xFC04801D
808c2ecf20Sopenharmony_ci#define	MCFINTC0_ICR0		0xFC048040
818c2ecf20Sopenharmony_ci#define	MCFINTC1_SIMR		0xFC04C01C
828c2ecf20Sopenharmony_ci#define	MCFINTC1_CIMR		0xFC04C01D
838c2ecf20Sopenharmony_ci#define	MCFINTC1_ICR0		0xFC04C040
848c2ecf20Sopenharmony_ci#define MCFINTC2_SIMR		(0)
858c2ecf20Sopenharmony_ci#define MCFINTC2_CIMR		(0)
868c2ecf20Sopenharmony_ci#define MCFINTC2_ICR0		(0)
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci#define MCFSIM_ICR_TIMER1	(0xFC048040+32)
898c2ecf20Sopenharmony_ci#define MCFSIM_ICR_TIMER2	(0xFC048040+33)
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci/*
928c2ecf20Sopenharmony_ci *	Define system peripheral IRQ usage.
938c2ecf20Sopenharmony_ci */
948c2ecf20Sopenharmony_ci#define	MCF_IRQ_TIMER		(64 + 32)	/* Timer0 */
958c2ecf20Sopenharmony_ci#define	MCF_IRQ_PROFILER	(64 + 33)	/* Timer1 */
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci/*
988c2ecf20Sopenharmony_ci *  UART module.
998c2ecf20Sopenharmony_ci */
1008c2ecf20Sopenharmony_ci#define MCFUART_BASE0		0xFC060000	/* Base address of UART1 */
1018c2ecf20Sopenharmony_ci#define MCFUART_BASE1		0xFC064000	/* Base address of UART2 */
1028c2ecf20Sopenharmony_ci#define MCFUART_BASE2		0xFC068000	/* Base address of UART3 */
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ci/*
1058c2ecf20Sopenharmony_ci *  FEC module.
1068c2ecf20Sopenharmony_ci */
1078c2ecf20Sopenharmony_ci#define	MCFFEC_BASE0		0xFC030000	/* Base address of FEC0 */
1088c2ecf20Sopenharmony_ci#define	MCFFEC_SIZE0		0x800		/* Size of FEC0 region */
1098c2ecf20Sopenharmony_ci
1108c2ecf20Sopenharmony_ci/*
1118c2ecf20Sopenharmony_ci *  QSPI module.
1128c2ecf20Sopenharmony_ci */
1138c2ecf20Sopenharmony_ci#define	MCFQSPI_BASE		0xFC05C000	/* Base address of QSPI */
1148c2ecf20Sopenharmony_ci#define	MCFQSPI_SIZE		0x40		/* Size of QSPI region */
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ci#define	MCFQSPI_CS0		84
1178c2ecf20Sopenharmony_ci#define	MCFQSPI_CS1		85
1188c2ecf20Sopenharmony_ci#define	MCFQSPI_CS2		86
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci/*
1218c2ecf20Sopenharmony_ci *  Timer module.
1228c2ecf20Sopenharmony_ci */
1238c2ecf20Sopenharmony_ci#define MCFTIMER_BASE1		0xFC070000	/* Base address of TIMER1 */
1248c2ecf20Sopenharmony_ci#define MCFTIMER_BASE2		0xFC074000	/* Base address of TIMER2 */
1258c2ecf20Sopenharmony_ci#define MCFTIMER_BASE3		0xFC078000	/* Base address of TIMER3 */
1268c2ecf20Sopenharmony_ci#define MCFTIMER_BASE4		0xFC07C000	/* Base address of TIMER4 */
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci/*********************************************************************
1298c2ecf20Sopenharmony_ci *
1308c2ecf20Sopenharmony_ci * Reset Controller Module
1318c2ecf20Sopenharmony_ci *
1328c2ecf20Sopenharmony_ci *********************************************************************/
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ci#define	MCF_RCR			0xFC0A0000
1358c2ecf20Sopenharmony_ci#define	MCF_RSR			0xFC0A0001
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci#define	MCF_RCR_SWRESET		0x80		/* Software reset bit */
1388c2ecf20Sopenharmony_ci#define	MCF_RCR_FRCSTOUT	0x40		/* Force external reset */
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_ci
1418c2ecf20Sopenharmony_ci/*
1428c2ecf20Sopenharmony_ci * Power Management
1438c2ecf20Sopenharmony_ci */
1448c2ecf20Sopenharmony_ci#define MCFPM_WCR		0xfc040013
1458c2ecf20Sopenharmony_ci#define MCFPM_PPMSR0		0xfc04002c
1468c2ecf20Sopenharmony_ci#define MCFPM_PPMCR0		0xfc04002d
1478c2ecf20Sopenharmony_ci#define MCFPM_PPMSR1		0xfc04002e
1488c2ecf20Sopenharmony_ci#define MCFPM_PPMCR1		0xfc04002f
1498c2ecf20Sopenharmony_ci#define MCFPM_PPMHR0		0xfc040030
1508c2ecf20Sopenharmony_ci#define MCFPM_PPMLR0		0xfc040034
1518c2ecf20Sopenharmony_ci#define MCFPM_PPMHR1		0xfc040038
1528c2ecf20Sopenharmony_ci#define MCFPM_LPCR		0xec090007
1538c2ecf20Sopenharmony_ci
1548c2ecf20Sopenharmony_ci/*
1558c2ecf20Sopenharmony_ci *	The M5329EVB board needs a help getting its devices initialized
1568c2ecf20Sopenharmony_ci *	at kernel start time if dBUG doesn't set it up (for example
1578c2ecf20Sopenharmony_ci *	it is not used), so we need to do it manually.
1588c2ecf20Sopenharmony_ci */
1598c2ecf20Sopenharmony_ci#ifdef __ASSEMBLER__
1608c2ecf20Sopenharmony_ci.macro m5329EVB_setup
1618c2ecf20Sopenharmony_ci	movel	#0xFC098000, %a7
1628c2ecf20Sopenharmony_ci	movel	#0x0, (%a7)
1638c2ecf20Sopenharmony_ci#define CORE_SRAM	0x80000000
1648c2ecf20Sopenharmony_ci#define CORE_SRAM_SIZE	0x8000
1658c2ecf20Sopenharmony_ci	movel	#CORE_SRAM, %d0
1668c2ecf20Sopenharmony_ci	addl	#0x221, %d0
1678c2ecf20Sopenharmony_ci	movec	%d0,%RAMBAR1
1688c2ecf20Sopenharmony_ci	movel	#CORE_SRAM, %sp
1698c2ecf20Sopenharmony_ci	addl	#CORE_SRAM_SIZE, %sp
1708c2ecf20Sopenharmony_ci	jsr	sysinit
1718c2ecf20Sopenharmony_ci.endm
1728c2ecf20Sopenharmony_ci#define	PLATFORM_SETUP	m5329EVB_setup
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ci#endif /* __ASSEMBLER__ */
1758c2ecf20Sopenharmony_ci
1768c2ecf20Sopenharmony_ci/*********************************************************************
1778c2ecf20Sopenharmony_ci *
1788c2ecf20Sopenharmony_ci * Chip Configuration Module (CCM)
1798c2ecf20Sopenharmony_ci *
1808c2ecf20Sopenharmony_ci *********************************************************************/
1818c2ecf20Sopenharmony_ci
1828c2ecf20Sopenharmony_ci/* Register read/write macros */
1838c2ecf20Sopenharmony_ci#define MCF_CCM_CCR               0xFC0A0004
1848c2ecf20Sopenharmony_ci#define MCF_CCM_RCON              0xFC0A0008
1858c2ecf20Sopenharmony_ci#define MCF_CCM_CIR               0xFC0A000A
1868c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR            0xFC0A0010
1878c2ecf20Sopenharmony_ci#define MCF_CCM_CDR               0xFC0A0012
1888c2ecf20Sopenharmony_ci#define MCF_CCM_UHCSR             0xFC0A0014
1898c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR             0xFC0A0016
1908c2ecf20Sopenharmony_ci
1918c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_CCR */
1928c2ecf20Sopenharmony_ci#define MCF_CCM_CCR_RESERVED      (0x0001)
1938c2ecf20Sopenharmony_ci#define MCF_CCM_CCR_PLL_MODE      (0x0003)
1948c2ecf20Sopenharmony_ci#define MCF_CCM_CCR_OSC_MODE      (0x0005)
1958c2ecf20Sopenharmony_ci#define MCF_CCM_CCR_BOOTPS(x)     (((x)&0x0003)<<3|0x0001)
1968c2ecf20Sopenharmony_ci#define MCF_CCM_CCR_LOAD          (0x0021)
1978c2ecf20Sopenharmony_ci#define MCF_CCM_CCR_LIMP          (0x0041)
1988c2ecf20Sopenharmony_ci#define MCF_CCM_CCR_CSC(x)        (((x)&0x0003)<<8|0x0001)
1998c2ecf20Sopenharmony_ci
2008c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_RCON */
2018c2ecf20Sopenharmony_ci#define MCF_CCM_RCON_RESERVED     (0x0001)
2028c2ecf20Sopenharmony_ci#define MCF_CCM_RCON_PLL_MODE     (0x0003)
2038c2ecf20Sopenharmony_ci#define MCF_CCM_RCON_OSC_MODE     (0x0005)
2048c2ecf20Sopenharmony_ci#define MCF_CCM_RCON_BOOTPS(x)    (((x)&0x0003)<<3|0x0001)
2058c2ecf20Sopenharmony_ci#define MCF_CCM_RCON_LOAD         (0x0021)
2068c2ecf20Sopenharmony_ci#define MCF_CCM_RCON_LIMP         (0x0041)
2078c2ecf20Sopenharmony_ci#define MCF_CCM_RCON_CSC(x)       (((x)&0x0003)<<8|0x0001)
2088c2ecf20Sopenharmony_ci
2098c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_CIR */
2108c2ecf20Sopenharmony_ci#define MCF_CCM_CIR_PRN(x)        (((x)&0x003F)<<0)
2118c2ecf20Sopenharmony_ci#define MCF_CCM_CIR_PIN(x)        (((x)&0x03FF)<<6)
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_MISCCR */
2148c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_USBSRC     (0x0001)
2158c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_USBDIV     (0x0002)
2168c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_SSI_SRC    (0x0010)
2178c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_TIM_DMA   (0x0020)
2188c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_SSI_PUS    (0x0040)
2198c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_SSI_PUE    (0x0080)
2208c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_LCD_CHEN   (0x0100)
2218c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_LIMP       (0x1000)
2228c2ecf20Sopenharmony_ci#define MCF_CCM_MISCCR_PLL_LOCK   (0x2000)
2238c2ecf20Sopenharmony_ci
2248c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_CDR */
2258c2ecf20Sopenharmony_ci#define MCF_CCM_CDR_SSIDIV(x)     (((x)&0x000F)<<0)
2268c2ecf20Sopenharmony_ci#define MCF_CCM_CDR_LPDIV(x)      (((x)&0x000F)<<8)
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_UHCSR */
2298c2ecf20Sopenharmony_ci#define MCF_CCM_UHCSR_XPDE        (0x0001)
2308c2ecf20Sopenharmony_ci#define MCF_CCM_UHCSR_UHMIE       (0x0002)
2318c2ecf20Sopenharmony_ci#define MCF_CCM_UHCSR_WKUP        (0x0004)
2328c2ecf20Sopenharmony_ci#define MCF_CCM_UHCSR_PORTIND(x)  (((x)&0x0003)<<14)
2338c2ecf20Sopenharmony_ci
2348c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_UOCSR */
2358c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_XPDE        (0x0001)
2368c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_UOMIE       (0x0002)
2378c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_WKUP        (0x0004)
2388c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_PWRFLT      (0x0008)
2398c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_SEND        (0x0010)
2408c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_VVLD        (0x0020)
2418c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_BVLD        (0x0040)
2428c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_AVLD        (0x0080)
2438c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_DPPU        (0x0100)
2448c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_DCR_VBUS    (0x0200)
2458c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_CRG_VBUS    (0x0400)
2468c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_DRV_VBUS    (0x0800)
2478c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_DMPD        (0x1000)
2488c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_DPPD        (0x2000)
2498c2ecf20Sopenharmony_ci#define MCF_CCM_UOCSR_PORTIND(x)  (((x)&0x0003)<<14)
2508c2ecf20Sopenharmony_ci
2518c2ecf20Sopenharmony_ci/*********************************************************************
2528c2ecf20Sopenharmony_ci *
2538c2ecf20Sopenharmony_ci * FlexBus Chip Selects (FBCS)
2548c2ecf20Sopenharmony_ci *
2558c2ecf20Sopenharmony_ci *********************************************************************/
2568c2ecf20Sopenharmony_ci
2578c2ecf20Sopenharmony_ci/* Register read/write macros */
2588c2ecf20Sopenharmony_ci#define MCF_FBCS0_CSAR		0xFC008000
2598c2ecf20Sopenharmony_ci#define MCF_FBCS0_CSMR		0xFC008004
2608c2ecf20Sopenharmony_ci#define MCF_FBCS0_CSCR		0xFC008008
2618c2ecf20Sopenharmony_ci#define MCF_FBCS1_CSAR		0xFC00800C
2628c2ecf20Sopenharmony_ci#define MCF_FBCS1_CSMR		0xFC008010
2638c2ecf20Sopenharmony_ci#define MCF_FBCS1_CSCR		0xFC008014
2648c2ecf20Sopenharmony_ci#define MCF_FBCS2_CSAR		0xFC008018
2658c2ecf20Sopenharmony_ci#define MCF_FBCS2_CSMR		0xFC00801C
2668c2ecf20Sopenharmony_ci#define MCF_FBCS2_CSCR		0xFC008020
2678c2ecf20Sopenharmony_ci#define MCF_FBCS3_CSAR		0xFC008024
2688c2ecf20Sopenharmony_ci#define MCF_FBCS3_CSMR		0xFC008028
2698c2ecf20Sopenharmony_ci#define MCF_FBCS3_CSCR		0xFC00802C
2708c2ecf20Sopenharmony_ci#define MCF_FBCS4_CSAR		0xFC008030
2718c2ecf20Sopenharmony_ci#define MCF_FBCS4_CSMR		0xFC008034
2728c2ecf20Sopenharmony_ci#define MCF_FBCS4_CSCR		0xFC008038
2738c2ecf20Sopenharmony_ci#define MCF_FBCS5_CSAR		0xFC00803C
2748c2ecf20Sopenharmony_ci#define MCF_FBCS5_CSMR		0xFC008040
2758c2ecf20Sopenharmony_ci#define MCF_FBCS5_CSCR		0xFC008044
2768c2ecf20Sopenharmony_ci
2778c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_FBCS_CSAR */
2788c2ecf20Sopenharmony_ci#define MCF_FBCS_CSAR_BA(x)	((x)&0xFFFF0000)
2798c2ecf20Sopenharmony_ci
2808c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_FBCS_CSMR */
2818c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_V		(0x00000001)
2828c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_WP	(0x00000100)
2838c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM(x)	(((x)&0x0000FFFF)<<16)
2848c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_4G	(0xFFFF0000)
2858c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_2G	(0x7FFF0000)
2868c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_1G	(0x3FFF0000)
2878c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_1024M	(0x3FFF0000)
2888c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_512M	(0x1FFF0000)
2898c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_256M	(0x0FFF0000)
2908c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_128M	(0x07FF0000)
2918c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_64M	(0x03FF0000)
2928c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_32M	(0x01FF0000)
2938c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_16M	(0x00FF0000)
2948c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_8M	(0x007F0000)
2958c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_4M	(0x003F0000)
2968c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_2M	(0x001F0000)
2978c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_1M	(0x000F0000)
2988c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_1024K	(0x000F0000)
2998c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_512K	(0x00070000)
3008c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_256K	(0x00030000)
3018c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_128K	(0x00010000)
3028c2ecf20Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_64K	(0x00000000)
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_FBCS_CSCR */
3058c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_BSTW	(0x00000008)
3068c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_BSTR	(0x00000010)
3078c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_BEM	(0x00000020)
3088c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_PS(x)	(((x)&0x00000003)<<6)
3098c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_AA	(0x00000100)
3108c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_SBM	(0x00000200)
3118c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_WS(x)	(((x)&0x0000003F)<<10)
3128c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_WRAH(x)	(((x)&0x00000003)<<16)
3138c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_RDAH(x)	(((x)&0x00000003)<<18)
3148c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_ASET(x)	(((x)&0x00000003)<<20)
3158c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_SWSEN	(0x00800000)
3168c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_SWS(x)	(((x)&0x0000003F)<<26)
3178c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_PS_8	(0x0040)
3188c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_PS_16	(0x0080)
3198c2ecf20Sopenharmony_ci#define MCF_FBCS_CSCR_PS_32	(0x0000)
3208c2ecf20Sopenharmony_ci
3218c2ecf20Sopenharmony_ci/*********************************************************************
3228c2ecf20Sopenharmony_ci *
3238c2ecf20Sopenharmony_ci * General Purpose I/O (GPIO)
3248c2ecf20Sopenharmony_ci *
3258c2ecf20Sopenharmony_ci *********************************************************************/
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_ci/* Register read/write macros */
3288c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_FECH		(0xFC0A4000)
3298c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_FECL		(0xFC0A4001)
3308c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_SSI		(0xFC0A4002)
3318c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_BUSCTL		(0xFC0A4003)
3328c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_BE			(0xFC0A4004)
3338c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_CS			(0xFC0A4005)
3348c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_PWM		(0xFC0A4006)
3358c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_FECI2C		(0xFC0A4007)
3368c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_UART		(0xFC0A4009)
3378c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_QSPI		(0xFC0A400A)
3388c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_TIMER		(0xFC0A400B)
3398c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_LCDDATAH		(0xFC0A400D)
3408c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_LCDDATAM		(0xFC0A400E)
3418c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_LCDDATAL		(0xFC0A400F)
3428c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_LCDCTLH		(0xFC0A4010)
3438c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_LCDCTLL		(0xFC0A4011)
3448c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_FECH		(0xFC0A4014)
3458c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_FECL		(0xFC0A4015)
3468c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_SSI		(0xFC0A4016)
3478c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_BUSCTL		(0xFC0A4017)
3488c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_BE			(0xFC0A4018)
3498c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_CS			(0xFC0A4019)
3508c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_PWM		(0xFC0A401A)
3518c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_FECI2C		(0xFC0A401B)
3528c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_UART		(0xFC0A401C)
3538c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_QSPI		(0xFC0A401E)
3548c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_TIMER		(0xFC0A401F)
3558c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_LCDDATAH		(0xFC0A4021)
3568c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_LCDDATAM		(0xFC0A4022)
3578c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_LCDDATAL		(0xFC0A4023)
3588c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_LCDCTLH		(0xFC0A4024)
3598c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_LCDCTLL		(0xFC0A4025)
3608c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_FECH		(0xFC0A4028)
3618c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_FECL		(0xFC0A4029)
3628c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_SSI		(0xFC0A402A)
3638c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_BUSCTL		(0xFC0A402B)
3648c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_BE		(0xFC0A402C)
3658c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_CS		(0xFC0A402D)
3668c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_PWM		(0xFC0A402E)
3678c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_FECI2C		(0xFC0A402F)
3688c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_UART		(0xFC0A4031)
3698c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_QSPI		(0xFC0A4032)
3708c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_TIMER		(0xFC0A4033)
3718c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDDATAH		(0xFC0A4035)
3728c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDDATAM		(0xFC0A4036)
3738c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDDATAL		(0xFC0A4037)
3748c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDCTLH		(0xFC0A4038)
3758c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDCTLL		(0xFC0A4039)
3768c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_FECH		(0xFC0A403C)
3778c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_FECL		(0xFC0A403D)
3788c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_SSI		(0xFC0A403E)
3798c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_BUSCTL		(0xFC0A403F)
3808c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_BE		(0xFC0A4040)
3818c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_CS		(0xFC0A4041)
3828c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_PWM		(0xFC0A4042)
3838c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_FECI2C		(0xFC0A4043)
3848c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_UART		(0xFC0A4045)
3858c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_QSPI		(0xFC0A4046)
3868c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_TIMER		(0xFC0A4047)
3878c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_LCDDATAH		(0xFC0A4049)
3888c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_LCDDATAM		(0xFC0A404A)
3898c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_LCDDATAL		(0xFC0A404B)
3908c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_LCDCTLH		(0xFC0A404C)
3918c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_LCDCTLL		(0xFC0A404D)
3928c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_FEC			(0xFC0A4050)
3938c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_PWM			(0xFC0A4051)
3948c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_BUSCTL		(0xFC0A4052)
3958c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_FECI2C		(0xFC0A4053)
3968c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_BE			(0xFC0A4054)
3978c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_CS			(0xFC0A4055)
3988c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_SSI			(0xFC0A4056)
3998c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_UART		(0xFC0A4058)
4008c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_QSPI		(0xFC0A405A)
4018c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_TIMER		(0xFC0A405C)
4028c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_LCDDATA		(0xFC0A405D)
4038c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_LCDCTL		(0xFC0A405E)
4048c2ecf20Sopenharmony_ci#define MCFGPIO_PAR_IRQ			(0xFC0A4060)
4058c2ecf20Sopenharmony_ci#define MCFGPIO_MSCR_FLEXBUS		(0xFC0A4064)
4068c2ecf20Sopenharmony_ci#define MCFGPIO_MSCR_SDRAM		(0xFC0A4065)
4078c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_I2C		(0xFC0A4068)
4088c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_PWM		(0xFC0A4069)
4098c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_FEC		(0xFC0A406A)
4108c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_UART		(0xFC0A406B)
4118c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_QSPI		(0xFC0A406C)
4128c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_TIMER		(0xFC0A406D)
4138c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_SSI		(0xFC0A406E)
4148c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_LCD		(0xFC0A406F)
4158c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_DEBUG		(0xFC0A4070)
4168c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_CLKRST		(0xFC0A4071)
4178c2ecf20Sopenharmony_ci#define MCFGPIO_DSCR_IRQ		(0xFC0A4072)
4188c2ecf20Sopenharmony_ci
4198c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_FECH */
4208c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH0              (0x01)
4218c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH1              (0x02)
4228c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH2              (0x04)
4238c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH3              (0x08)
4248c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH4              (0x10)
4258c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH5              (0x20)
4268c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH6              (0x40)
4278c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH7              (0x80)
4288c2ecf20Sopenharmony_ci
4298c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_FECL */
4308c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL0              (0x01)
4318c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL1              (0x02)
4328c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL2              (0x04)
4338c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL3              (0x08)
4348c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL4              (0x10)
4358c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL5              (0x20)
4368c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL6              (0x40)
4378c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL7              (0x80)
4388c2ecf20Sopenharmony_ci
4398c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_SSI */
4408c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI0                (0x01)
4418c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI1                (0x02)
4428c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI2                (0x04)
4438c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI3                (0x08)
4448c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI4                (0x10)
4458c2ecf20Sopenharmony_ci
4468c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_BUSCTL */
4478c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_BUSCTL_POSDR_BUSCTL0         (0x01)
4488c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL1          (0x02)
4498c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL2          (0x04)
4508c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL3          (0x08)
4518c2ecf20Sopenharmony_ci
4528c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_BE */
4538c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_BE_PODR_BE0                  (0x01)
4548c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_BE_PODR_BE1                  (0x02)
4558c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_BE_PODR_BE2                  (0x04)
4568c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_BE_PODR_BE3                  (0x08)
4578c2ecf20Sopenharmony_ci
4588c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_CS */
4598c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS1                  (0x02)
4608c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS2                  (0x04)
4618c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS3                  (0x08)
4628c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS4                  (0x10)
4638c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS5                  (0x20)
4648c2ecf20Sopenharmony_ci
4658c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_PWM */
4668c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_PWM_PODR_PWM2                (0x04)
4678c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_PWM_PODR_PWM3                (0x08)
4688c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_PWM_PODR_PWM4                (0x10)
4698c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_PWM_PODR_PWM5                (0x20)
4708c2ecf20Sopenharmony_ci
4718c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_FECI2C */
4728c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C0          (0x01)
4738c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C1          (0x02)
4748c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C2          (0x04)
4758c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C3          (0x08)
4768c2ecf20Sopenharmony_ci
4778c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_UART */
4788c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART0              (0x01)
4798c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART1              (0x02)
4808c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART2              (0x04)
4818c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART3              (0x08)
4828c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART4              (0x10)
4838c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART5              (0x20)
4848c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART6              (0x40)
4858c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART7              (0x80)
4868c2ecf20Sopenharmony_ci
4878c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_QSPI */
4888c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI0              (0x01)
4898c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI1              (0x02)
4908c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI2              (0x04)
4918c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI3              (0x08)
4928c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI4              (0x10)
4938c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI5              (0x20)
4948c2ecf20Sopenharmony_ci
4958c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_TIMER */
4968c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_TIMER_PODR_TIMER0            (0x01)
4978c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_TIMER_PODR_TIMER1            (0x02)
4988c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_TIMER_PODR_TIMER2            (0x04)
4998c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_TIMER_PODR_TIMER3            (0x08)
5008c2ecf20Sopenharmony_ci
5018c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAH */
5028c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH0      (0x01)
5038c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH1      (0x02)
5048c2ecf20Sopenharmony_ci
5058c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAM */
5068c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM0      (0x01)
5078c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM1      (0x02)
5088c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM2      (0x04)
5098c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM3      (0x08)
5108c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM4      (0x10)
5118c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM5      (0x20)
5128c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM6      (0x40)
5138c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM7      (0x80)
5148c2ecf20Sopenharmony_ci
5158c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAL */
5168c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL0      (0x01)
5178c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL1      (0x02)
5188c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL2      (0x04)
5198c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL3      (0x08)
5208c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL4      (0x10)
5218c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL5      (0x20)
5228c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL6      (0x40)
5238c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL7      (0x80)
5248c2ecf20Sopenharmony_ci
5258c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLH */
5268c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLH_PODR_LCDCTLH0        (0x01)
5278c2ecf20Sopenharmony_ci
5288c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLL */
5298c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL0        (0x01)
5308c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL1        (0x02)
5318c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL2        (0x04)
5328c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL3        (0x08)
5338c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL4        (0x10)
5348c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL5        (0x20)
5358c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL6        (0x40)
5368c2ecf20Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL7        (0x80)
5378c2ecf20Sopenharmony_ci
5388c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_FECH */
5398c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH0              (0x01)
5408c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH1              (0x02)
5418c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH2              (0x04)
5428c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH3              (0x08)
5438c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH4              (0x10)
5448c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH5              (0x20)
5458c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH6              (0x40)
5468c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH7              (0x80)
5478c2ecf20Sopenharmony_ci
5488c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_FECL */
5498c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL0              (0x01)
5508c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL1              (0x02)
5518c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL2              (0x04)
5528c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL3              (0x08)
5538c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL4              (0x10)
5548c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL5              (0x20)
5558c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL6              (0x40)
5568c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL7              (0x80)
5578c2ecf20Sopenharmony_ci
5588c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_SSI */
5598c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI0                (0x01)
5608c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI1                (0x02)
5618c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI2                (0x04)
5628c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI3                (0x08)
5638c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI4                (0x10)
5648c2ecf20Sopenharmony_ci
5658c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_BUSCTL */
5668c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_BUSCTL_POSDR_BUSCTL0         (0x01)
5678c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL1          (0x02)
5688c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL2          (0x04)
5698c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL3          (0x08)
5708c2ecf20Sopenharmony_ci
5718c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_BE */
5728c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_BE_PDDR_BE0                  (0x01)
5738c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_BE_PDDR_BE1                  (0x02)
5748c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_BE_PDDR_BE2                  (0x04)
5758c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_BE_PDDR_BE3                  (0x08)
5768c2ecf20Sopenharmony_ci
5778c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_CS */
5788c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS1                  (0x02)
5798c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS2                  (0x04)
5808c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS3                  (0x08)
5818c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS4                  (0x10)
5828c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS5                  (0x20)
5838c2ecf20Sopenharmony_ci
5848c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_PWM */
5858c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_PWM_PDDR_PWM2                (0x04)
5868c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_PWM_PDDR_PWM3                (0x08)
5878c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_PWM_PDDR_PWM4                (0x10)
5888c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_PWM_PDDR_PWM5                (0x20)
5898c2ecf20Sopenharmony_ci
5908c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_FECI2C */
5918c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C0          (0x01)
5928c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C1          (0x02)
5938c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C2          (0x04)
5948c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C3          (0x08)
5958c2ecf20Sopenharmony_ci
5968c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_UART */
5978c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART0              (0x01)
5988c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART1              (0x02)
5998c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART2              (0x04)
6008c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART3              (0x08)
6018c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART4              (0x10)
6028c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART5              (0x20)
6038c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART6              (0x40)
6048c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART7              (0x80)
6058c2ecf20Sopenharmony_ci
6068c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_QSPI */
6078c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI0              (0x01)
6088c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI1              (0x02)
6098c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI2              (0x04)
6108c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI3              (0x08)
6118c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI4              (0x10)
6128c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI5              (0x20)
6138c2ecf20Sopenharmony_ci
6148c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_TIMER */
6158c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER0            (0x01)
6168c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER1            (0x02)
6178c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER2            (0x04)
6188c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER3            (0x08)
6198c2ecf20Sopenharmony_ci
6208c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAH */
6218c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH0      (0x01)
6228c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH1      (0x02)
6238c2ecf20Sopenharmony_ci
6248c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAM */
6258c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM0      (0x01)
6268c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM1      (0x02)
6278c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM2      (0x04)
6288c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM3      (0x08)
6298c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM4      (0x10)
6308c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM5      (0x20)
6318c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM6      (0x40)
6328c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM7      (0x80)
6338c2ecf20Sopenharmony_ci
6348c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAL */
6358c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL0      (0x01)
6368c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL1      (0x02)
6378c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL2      (0x04)
6388c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL3      (0x08)
6398c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL4      (0x10)
6408c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL5      (0x20)
6418c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL6      (0x40)
6428c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL7      (0x80)
6438c2ecf20Sopenharmony_ci
6448c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLH */
6458c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLH_PDDR_LCDCTLH0        (0x01)
6468c2ecf20Sopenharmony_ci
6478c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLL */
6488c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL0        (0x01)
6498c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL1        (0x02)
6508c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL2        (0x04)
6518c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL3        (0x08)
6528c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL4        (0x10)
6538c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL5        (0x20)
6548c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL6        (0x40)
6558c2ecf20Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL7        (0x80)
6568c2ecf20Sopenharmony_ci
6578c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECH */
6588c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH0          (0x01)
6598c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH1          (0x02)
6608c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH2          (0x04)
6618c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH3          (0x08)
6628c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH4          (0x10)
6638c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH5          (0x20)
6648c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH6          (0x40)
6658c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH7          (0x80)
6668c2ecf20Sopenharmony_ci
6678c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECL */
6688c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL0          (0x01)
6698c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL1          (0x02)
6708c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL2          (0x04)
6718c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL3          (0x08)
6728c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL4          (0x10)
6738c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL5          (0x20)
6748c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL6          (0x40)
6758c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL7          (0x80)
6768c2ecf20Sopenharmony_ci
6778c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_SSI */
6788c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI0            (0x01)
6798c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI1            (0x02)
6808c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI2            (0x04)
6818c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI3            (0x08)
6828c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI4            (0x10)
6838c2ecf20Sopenharmony_ci
6848c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_BUSCTL */
6858c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_BUSCTL_POSDR_BUSCTL0       (0x01)
6868c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL1      (0x02)
6878c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL2      (0x04)
6888c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL3      (0x08)
6898c2ecf20Sopenharmony_ci
6908c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_BE */
6918c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE0              (0x01)
6928c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE1              (0x02)
6938c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE2              (0x04)
6948c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE3              (0x08)
6958c2ecf20Sopenharmony_ci
6968c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_CS */
6978c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS1              (0x02)
6988c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS2              (0x04)
6998c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS3              (0x08)
7008c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS4              (0x10)
7018c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS5              (0x20)
7028c2ecf20Sopenharmony_ci
7038c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_PWM */
7048c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM2            (0x04)
7058c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM3            (0x08)
7068c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM4            (0x10)
7078c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM5            (0x20)
7088c2ecf20Sopenharmony_ci
7098c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECI2C */
7108c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C0      (0x01)
7118c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C1      (0x02)
7128c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C2      (0x04)
7138c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C3      (0x08)
7148c2ecf20Sopenharmony_ci
7158c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_UART */
7168c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART0          (0x01)
7178c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART1          (0x02)
7188c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART2          (0x04)
7198c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART3          (0x08)
7208c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART4          (0x10)
7218c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART5          (0x20)
7228c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART6          (0x40)
7238c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART7          (0x80)
7248c2ecf20Sopenharmony_ci
7258c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_QSPI */
7268c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI0          (0x01)
7278c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI1          (0x02)
7288c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI2          (0x04)
7298c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI3          (0x08)
7308c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI4          (0x10)
7318c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI5          (0x20)
7328c2ecf20Sopenharmony_ci
7338c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_TIMER */
7348c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER0        (0x01)
7358c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER1        (0x02)
7368c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER2        (0x04)
7378c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER3        (0x08)
7388c2ecf20Sopenharmony_ci
7398c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAH */
7408c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH0  (0x01)
7418c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH1  (0x02)
7428c2ecf20Sopenharmony_ci
7438c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAM */
7448c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM0  (0x01)
7458c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM1  (0x02)
7468c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM2  (0x04)
7478c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM3  (0x08)
7488c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM4  (0x10)
7498c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM5  (0x20)
7508c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM6  (0x40)
7518c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM7  (0x80)
7528c2ecf20Sopenharmony_ci
7538c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAL */
7548c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL0  (0x01)
7558c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL1  (0x02)
7568c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL2  (0x04)
7578c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL3  (0x08)
7588c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL4  (0x10)
7598c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL5  (0x20)
7608c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL6  (0x40)
7618c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL7  (0x80)
7628c2ecf20Sopenharmony_ci
7638c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLH */
7648c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLH_PPDSDR_LCDCTLH0    (0x01)
7658c2ecf20Sopenharmony_ci
7668c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLL */
7678c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL0    (0x01)
7688c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL1    (0x02)
7698c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL2    (0x04)
7708c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL3    (0x08)
7718c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL4    (0x10)
7728c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL5    (0x20)
7738c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL6    (0x40)
7748c2ecf20Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL7    (0x80)
7758c2ecf20Sopenharmony_ci
7768c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_FECH */
7778c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH0            (0x01)
7788c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH1            (0x02)
7798c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH2            (0x04)
7808c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH3            (0x08)
7818c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH4            (0x10)
7828c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH5            (0x20)
7838c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH6            (0x40)
7848c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH7            (0x80)
7858c2ecf20Sopenharmony_ci
7868c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_FECL */
7878c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL0            (0x01)
7888c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL1            (0x02)
7898c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL2            (0x04)
7908c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL3            (0x08)
7918c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL4            (0x10)
7928c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL5            (0x20)
7938c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL6            (0x40)
7948c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL7            (0x80)
7958c2ecf20Sopenharmony_ci
7968c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_SSI */
7978c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI0              (0x01)
7988c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI1              (0x02)
7998c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI2              (0x04)
8008c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI3              (0x08)
8018c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI4              (0x10)
8028c2ecf20Sopenharmony_ci
8038c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_BUSCTL */
8048c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_BUSCTL_POSDR_BUSCTL0        (0x01)
8058c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL1        (0x02)
8068c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL2        (0x04)
8078c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL3        (0x08)
8088c2ecf20Sopenharmony_ci
8098c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_BE */
8108c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_BE_PCLRR_BE0                (0x01)
8118c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_BE_PCLRR_BE1                (0x02)
8128c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_BE_PCLRR_BE2                (0x04)
8138c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_BE_PCLRR_BE3                (0x08)
8148c2ecf20Sopenharmony_ci
8158c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_CS */
8168c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS1                (0x02)
8178c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS2                (0x04)
8188c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS3                (0x08)
8198c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS4                (0x10)
8208c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS5                (0x20)
8218c2ecf20Sopenharmony_ci
8228c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_PWM */
8238c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM2              (0x04)
8248c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM3              (0x08)
8258c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM4              (0x10)
8268c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM5              (0x20)
8278c2ecf20Sopenharmony_ci
8288c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_FECI2C */
8298c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C0        (0x01)
8308c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C1        (0x02)
8318c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C2        (0x04)
8328c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C3        (0x08)
8338c2ecf20Sopenharmony_ci
8348c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_UART */
8358c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART0            (0x01)
8368c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART1            (0x02)
8378c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART2            (0x04)
8388c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART3            (0x08)
8398c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART4            (0x10)
8408c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART5            (0x20)
8418c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART6            (0x40)
8428c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART7            (0x80)
8438c2ecf20Sopenharmony_ci
8448c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_QSPI */
8458c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI0            (0x01)
8468c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI1            (0x02)
8478c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI2            (0x04)
8488c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI3            (0x08)
8498c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI4            (0x10)
8508c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI5            (0x20)
8518c2ecf20Sopenharmony_ci
8528c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_TIMER */
8538c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER0          (0x01)
8548c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER1          (0x02)
8558c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER2          (0x04)
8568c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER3          (0x08)
8578c2ecf20Sopenharmony_ci
8588c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAH */
8598c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH0    (0x01)
8608c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH1    (0x02)
8618c2ecf20Sopenharmony_ci
8628c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAM */
8638c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM0    (0x01)
8648c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM1    (0x02)
8658c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM2    (0x04)
8668c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM3    (0x08)
8678c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM4    (0x10)
8688c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM5    (0x20)
8698c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM6    (0x40)
8708c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM7    (0x80)
8718c2ecf20Sopenharmony_ci
8728c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAL */
8738c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL0    (0x01)
8748c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL1    (0x02)
8758c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL2    (0x04)
8768c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL3    (0x08)
8778c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL4    (0x10)
8788c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL5    (0x20)
8798c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL6    (0x40)
8808c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL7    (0x80)
8818c2ecf20Sopenharmony_ci
8828c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLH */
8838c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLH_PCLRR_LCDCTLH0      (0x01)
8848c2ecf20Sopenharmony_ci
8858c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLL */
8868c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL0      (0x01)
8878c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL1      (0x02)
8888c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL2      (0x04)
8898c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL3      (0x08)
8908c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL4      (0x10)
8918c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL5      (0x20)
8928c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL6      (0x40)
8938c2ecf20Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL7      (0x80)
8948c2ecf20Sopenharmony_ci
8958c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_FEC */
8968c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_MII(x)            (((x)&0x03)<<0)
8978c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_7W(x)             (((x)&0x03)<<2)
8988c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_GPIO           (0x00)
8998c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_URTS1          (0x04)
9008c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_FEC            (0x0C)
9018c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_GPIO          (0x00)
9028c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_UART          (0x01)
9038c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_FEC           (0x03)
9048c2ecf20Sopenharmony_ci
9058c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_PWM */
9068c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_PWM_PAR_PWM1(x)               (((x)&0x03)<<0)
9078c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_PWM_PAR_PWM3(x)               (((x)&0x03)<<2)
9088c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_PWM_PAR_PWM5                  (0x10)
9098c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_PWM_PAR_PWM7                  (0x20)
9108c2ecf20Sopenharmony_ci
9118c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_BUSCTL */
9128c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TS(x)              (((x)&0x03)<<3)
9138c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_RWB                (0x20)
9148c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TA                 (0x40)
9158c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_OE                 (0x80)
9168c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_OE_GPIO            (0x00)
9178c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_OE_OE              (0x80)
9188c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TA_GPIO            (0x00)
9198c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TA_TA              (0x40)
9208c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_RWB_GPIO           (0x00)
9218c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_RWB_RWB            (0x20)
9228c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TS_GPIO            (0x00)
9238c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TS_DACK0           (0x10)
9248c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TS_TS              (0x18)
9258c2ecf20Sopenharmony_ci
9268c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_FECI2C */
9278c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SDA(x)             (((x)&0x03)<<0)
9288c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SCL(x)             (((x)&0x03)<<2)
9298c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO(x)            (((x)&0x03)<<4)
9308c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC(x)             (((x)&0x03)<<6)
9318c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC_GPIO           (0x00)
9328c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC_UTXD2          (0x40)
9338c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC_SCL            (0x80)
9348c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC_EMDC           (0xC0)
9358c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_GPIO          (0x00)
9368c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_URXD2         (0x10)
9378c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_SDA           (0x20)
9388c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_EMDIO         (0x30)
9398c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SCL_GPIO           (0x00)
9408c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SCL_UTXD2          (0x04)
9418c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SCL_SCL            (0x0C)
9428c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SDA_GPIO           (0x00)
9438c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SDA_URXD2          (0x02)
9448c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SDA_SDA            (0x03)
9458c2ecf20Sopenharmony_ci
9468c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_BE */
9478c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BE_PAR_BE0                    (0x01)
9488c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BE_PAR_BE1                    (0x02)
9498c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BE_PAR_BE2                    (0x04)
9508c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_BE_PAR_BE3                    (0x08)
9518c2ecf20Sopenharmony_ci
9528c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_CS */
9538c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS1                    (0x02)
9548c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS2                    (0x04)
9558c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS3                    (0x08)
9568c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS4                    (0x10)
9578c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS5                    (0x20)
9588c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS_CS1_GPIO            (0x00)
9598c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS_CS1_SDCS1           (0x01)
9608c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS_CS1_CS1             (0x03)
9618c2ecf20Sopenharmony_ci
9628c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_SSI */
9638c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_MCLK                  (0x0080)
9648c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_TXD(x)                (((x)&0x0003)<<8)
9658c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_RXD(x)                (((x)&0x0003)<<10)
9668c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_FS(x)                 (((x)&0x0003)<<12)
9678c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_BCLK(x)               (((x)&0x0003)<<14)
9688c2ecf20Sopenharmony_ci
9698c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_UART */
9708c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD0                (0x0001)
9718c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD0                (0x0002)
9728c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS0                (0x0004)
9738c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS0                (0x0008)
9748c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1(x)             (((x)&0x0003)<<4)
9758c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1(x)             (((x)&0x0003)<<6)
9768c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1(x)             (((x)&0x0003)<<8)
9778c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1(x)             (((x)&0x0003)<<10)
9788c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1_GPIO           (0x0000)
9798c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1_SSI_BCLK       (0x0800)
9808c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1_ULPI_D7        (0x0400)
9818c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1_UCTS1          (0x0C00)
9828c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1_GPIO           (0x0000)
9838c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1_SSI_FS         (0x0200)
9848c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1_ULPI_D6        (0x0100)
9858c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1_URTS1          (0x0300)
9868c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1_GPIO           (0x0000)
9878c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1_SSI_RXD        (0x0080)
9888c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1_ULPI_D5        (0x0040)
9898c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1_URXD1          (0x00C0)
9908c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1_GPIO           (0x0000)
9918c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1_SSI_TXD        (0x0020)
9928c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1_ULPI_D4        (0x0010)
9938c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1_UTXD1          (0x0030)
9948c2ecf20Sopenharmony_ci
9958c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_QSPI */
9968c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_SCK(x)               (((x)&0x0003)<<4)
9978c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_DOUT(x)              (((x)&0x0003)<<6)
9988c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_DIN(x)               (((x)&0x0003)<<8)
9998c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_PCS0(x)              (((x)&0x0003)<<10)
10008c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_PCS1(x)              (((x)&0x0003)<<12)
10018c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_PCS2(x)              (((x)&0x0003)<<14)
10028c2ecf20Sopenharmony_ci
10038c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_TIMER */
10048c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0(x)             (((x)&0x03)<<0)
10058c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1(x)             (((x)&0x03)<<2)
10068c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2(x)             (((x)&0x03)<<4)
10078c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3(x)             (((x)&0x03)<<6)
10088c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3_GPIO           (0x00)
10098c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3_TOUT3          (0x80)
10108c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3_URXD2          (0x40)
10118c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3_TIN3           (0xC0)
10128c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2_GPIO           (0x00)
10138c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2_TOUT2          (0x20)
10148c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2_UTXD2          (0x10)
10158c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2_TIN2           (0x30)
10168c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1_GPIO           (0x00)
10178c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1_TOUT1          (0x08)
10188c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1_DACK1          (0x04)
10198c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1_TIN1           (0x0C)
10208c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0_GPIO           (0x00)
10218c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0_TOUT0          (0x02)
10228c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0_DREQ0          (0x01)
10238c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0_TIN0           (0x03)
10248c2ecf20Sopenharmony_ci
10258c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_LCDDATA */
10268c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDDATA_PAR_LD7_0(x)          (((x)&0x03)<<0)
10278c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDDATA_PAR_LD15_8(x)         (((x)&0x03)<<2)
10288c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDDATA_PAR_LD16(x)           (((x)&0x03)<<4)
10298c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDDATA_PAR_LD17(x)           (((x)&0x03)<<6)
10308c2ecf20Sopenharmony_ci
10318c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_LCDCTL */
10328c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_CLS                (0x0001)
10338c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_PS                 (0x0002)
10348c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_REV                (0x0004)
10358c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_SPL_SPR            (0x0008)
10368c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_CONTRAST           (0x0010)
10378c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_LSCLK              (0x0020)
10388c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_LP_HSYNC           (0x0040)
10398c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_FLM_VSYNC          (0x0080)
10408c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_ACD_OE             (0x0100)
10418c2ecf20Sopenharmony_ci
10428c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_IRQ */
10438c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ1(x)               (((x)&0x0003)<<4)
10448c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ2(x)               (((x)&0x0003)<<6)
10458c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ4(x)               (((x)&0x0003)<<8)
10468c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ5(x)               (((x)&0x0003)<<10)
10478c2ecf20Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ6(x)               (((x)&0x0003)<<12)
10488c2ecf20Sopenharmony_ci
10498c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_MSCR_FLEXBUS */
10508c2ecf20Sopenharmony_ci#define MCF_GPIO_MSCR_FLEXBUS_MSCR_ADDRCTL(x)      (((x)&0x03)<<0)
10518c2ecf20Sopenharmony_ci#define MCF_GPIO_MSCR_FLEXBUS_MSCR_DLOWER(x)       (((x)&0x03)<<2)
10528c2ecf20Sopenharmony_ci#define MCF_GPIO_MSCR_FLEXBUS_MSCR_DUPPER(x)       (((x)&0x03)<<4)
10538c2ecf20Sopenharmony_ci
10548c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_MSCR_SDRAM */
10558c2ecf20Sopenharmony_ci#define MCF_GPIO_MSCR_SDRAM_MSCR_SDRAM(x)          (((x)&0x03)<<0)
10568c2ecf20Sopenharmony_ci#define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLK(x)          (((x)&0x03)<<2)
10578c2ecf20Sopenharmony_ci#define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLKB(x)         (((x)&0x03)<<4)
10588c2ecf20Sopenharmony_ci
10598c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_I2C */
10608c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_I2C_I2C_DSE(x)               (((x)&0x03)<<0)
10618c2ecf20Sopenharmony_ci
10628c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_PWM */
10638c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_PWM_PWM_DSE(x)               (((x)&0x03)<<0)
10648c2ecf20Sopenharmony_ci
10658c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_FEC */
10668c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_FEC_FEC_DSE(x)               (((x)&0x03)<<0)
10678c2ecf20Sopenharmony_ci
10688c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_UART */
10698c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_UART_UART0_DSE(x)            (((x)&0x03)<<0)
10708c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_UART_UART1_DSE(x)            (((x)&0x03)<<2)
10718c2ecf20Sopenharmony_ci
10728c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_QSPI */
10738c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_QSPI_QSPI_DSE(x)             (((x)&0x03)<<0)
10748c2ecf20Sopenharmony_ci
10758c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_TIMER */
10768c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_TIMER_TIMER_DSE(x)           (((x)&0x03)<<0)
10778c2ecf20Sopenharmony_ci
10788c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_SSI */
10798c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_SSI_SSI_DSE(x)               (((x)&0x03)<<0)
10808c2ecf20Sopenharmony_ci
10818c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_LCD */
10828c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_LCD_LCD_DSE(x)               (((x)&0x03)<<0)
10838c2ecf20Sopenharmony_ci
10848c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_DEBUG */
10858c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_DEBUG_DEBUG_DSE(x)           (((x)&0x03)<<0)
10868c2ecf20Sopenharmony_ci
10878c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_CLKRST */
10888c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_CLKRST_CLKRST_DSE(x)         (((x)&0x03)<<0)
10898c2ecf20Sopenharmony_ci
10908c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_IRQ */
10918c2ecf20Sopenharmony_ci#define MCF_GPIO_DSCR_IRQ_IRQ_DSE(x)               (((x)&0x03)<<0)
10928c2ecf20Sopenharmony_ci
10938c2ecf20Sopenharmony_ci/*
10948c2ecf20Sopenharmony_ci * Generic GPIO support
10958c2ecf20Sopenharmony_ci */
10968c2ecf20Sopenharmony_ci#define MCFGPIO_PODR			MCFGPIO_PODR_FECH
10978c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR			MCFGPIO_PDDR_FECH
10988c2ecf20Sopenharmony_ci#define MCFGPIO_PPDR			MCFGPIO_PPDSDR_FECH
10998c2ecf20Sopenharmony_ci#define MCFGPIO_SETR			MCFGPIO_PPDSDR_FECH
11008c2ecf20Sopenharmony_ci#define MCFGPIO_CLRR			MCFGPIO_PCLRR_FECH
11018c2ecf20Sopenharmony_ci
11028c2ecf20Sopenharmony_ci#define MCFGPIO_PIN_MAX			136
11038c2ecf20Sopenharmony_ci#define MCFGPIO_IRQ_MAX			8
11048c2ecf20Sopenharmony_ci#define MCFGPIO_IRQ_VECBASE		MCFINT_VECBASE
11058c2ecf20Sopenharmony_ci
11068c2ecf20Sopenharmony_ci/*********************************************************************
11078c2ecf20Sopenharmony_ci *
11088c2ecf20Sopenharmony_ci * Phase Locked Loop (PLL)
11098c2ecf20Sopenharmony_ci *
11108c2ecf20Sopenharmony_ci *********************************************************************/
11118c2ecf20Sopenharmony_ci
11128c2ecf20Sopenharmony_ci/* Register read/write macros */
11138c2ecf20Sopenharmony_ci#define MCF_PLL_PODR              0xFC0C0000
11148c2ecf20Sopenharmony_ci#define MCF_PLL_PLLCR             0xFC0C0004
11158c2ecf20Sopenharmony_ci#define MCF_PLL_PMDR              0xFC0C0008
11168c2ecf20Sopenharmony_ci#define MCF_PLL_PFDR              0xFC0C000C
11178c2ecf20Sopenharmony_ci
11188c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_PLL_PODR */
11198c2ecf20Sopenharmony_ci#define MCF_PLL_PODR_BUSDIV(x)    (((x)&0x0F)<<0)
11208c2ecf20Sopenharmony_ci#define MCF_PLL_PODR_CPUDIV(x)    (((x)&0x0F)<<4)
11218c2ecf20Sopenharmony_ci
11228c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_PLL_PLLCR */
11238c2ecf20Sopenharmony_ci#define MCF_PLL_PLLCR_DITHDEV(x)  (((x)&0x07)<<0)
11248c2ecf20Sopenharmony_ci#define MCF_PLL_PLLCR_DITHEN      (0x80)
11258c2ecf20Sopenharmony_ci
11268c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_PLL_PMDR */
11278c2ecf20Sopenharmony_ci#define MCF_PLL_PMDR_MODDIV(x)    (((x)&0xFF)<<0)
11288c2ecf20Sopenharmony_ci
11298c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_PLL_PFDR */
11308c2ecf20Sopenharmony_ci#define MCF_PLL_PFDR_MFD(x)       (((x)&0xFF)<<0)
11318c2ecf20Sopenharmony_ci
11328c2ecf20Sopenharmony_ci/*********************************************************************
11338c2ecf20Sopenharmony_ci *
11348c2ecf20Sopenharmony_ci * System Control Module Registers (SCM)
11358c2ecf20Sopenharmony_ci *
11368c2ecf20Sopenharmony_ci *********************************************************************/
11378c2ecf20Sopenharmony_ci
11388c2ecf20Sopenharmony_ci/* Register read/write macros */
11398c2ecf20Sopenharmony_ci#define MCF_SCM_MPR			0xFC000000
11408c2ecf20Sopenharmony_ci#define MCF_SCM_PACRA			0xFC000020
11418c2ecf20Sopenharmony_ci#define MCF_SCM_PACRB			0xFC000024
11428c2ecf20Sopenharmony_ci#define MCF_SCM_PACRC			0xFC000028
11438c2ecf20Sopenharmony_ci#define MCF_SCM_PACRD			0xFC00002C
11448c2ecf20Sopenharmony_ci#define MCF_SCM_PACRE			0xFC000040
11458c2ecf20Sopenharmony_ci#define MCF_SCM_PACRF			0xFC000044
11468c2ecf20Sopenharmony_ci
11478c2ecf20Sopenharmony_ci#define MCF_SCM_BCR			0xFC040024
11488c2ecf20Sopenharmony_ci
11498c2ecf20Sopenharmony_ci/*********************************************************************
11508c2ecf20Sopenharmony_ci *
11518c2ecf20Sopenharmony_ci * SDRAM Controller (SDRAMC)
11528c2ecf20Sopenharmony_ci *
11538c2ecf20Sopenharmony_ci *********************************************************************/
11548c2ecf20Sopenharmony_ci
11558c2ecf20Sopenharmony_ci/* Register read/write macros */
11568c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDMR			0xFC0B8000
11578c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR			0xFC0B8004
11588c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG1		0xFC0B8008
11598c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG2		0xFC0B800C
11608c2ecf20Sopenharmony_ci#define MCF_SDRAMC_LIMP_FIX		0xFC0B8080
11618c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDDS			0xFC0B8100
11628c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS0		0xFC0B8110
11638c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS1		0xFC0B8114
11648c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS2		0xFC0B8118
11658c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS3		0xFC0B811C
11668c2ecf20Sopenharmony_ci
11678c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDMR */
11688c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDMR_CMD		(0x00010000)
11698c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDMR_AD(x)		(((x)&0x00000FFF)<<18)
11708c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDMR_BNKAD(x)	(((x)&0x00000003)<<30)
11718c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDMR_BNKAD_LMR	(0x00000000)
11728c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDMR_BNKAD_LEMR	(0x40000000)
11738c2ecf20Sopenharmony_ci
11748c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDCR */
11758c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_IPALL		(0x00000002)
11768c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_IREF		(0x00000004)
11778c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_DQS_OE(x)	(((x)&0x0000000F)<<8)
11788c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_PS(x)		(((x)&0x00000003)<<12)
11798c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_RCNT(x)		(((x)&0x0000003F)<<16)
11808c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_OE_RULE		(0x00400000)
11818c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_MUX(x)		(((x)&0x00000003)<<24)
11828c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_REF		(0x10000000)
11838c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_DDR		(0x20000000)
11848c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_CKE		(0x40000000)
11858c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_MODE_EN		(0x80000000)
11868c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_PS_16		(0x00002000)
11878c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCR_PS_32		(0x00000000)
11888c2ecf20Sopenharmony_ci
11898c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDCFG1 */
11908c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_WTLAT(x)	(((x)&0x00000007)<<4)
11918c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_REF2ACT(x)	(((x)&0x0000000F)<<8)
11928c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_PRE2ACT(x)	(((x)&0x00000007)<<12)
11938c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_ACT2RW(x)	(((x)&0x00000007)<<16)
11948c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_RDLAT(x)	(((x)&0x0000000F)<<20)
11958c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_SWT2RD(x)	(((x)&0x00000007)<<24)
11968c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_SRD2RW(x)	(((x)&0x0000000F)<<28)
11978c2ecf20Sopenharmony_ci
11988c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDCFG2 */
11998c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG2_BL(x)		(((x)&0x0000000F)<<16)
12008c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG2_BRD2WT(x)	(((x)&0x0000000F)<<20)
12018c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG2_BWT2RW(x)	(((x)&0x0000000F)<<24)
12028c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCFG2_BRD2PRE(x)	(((x)&0x0000000F)<<28)
12038c2ecf20Sopenharmony_ci
12048c2ecf20Sopenharmony_ci/* Device Errata - LIMP mode work around */
12058c2ecf20Sopenharmony_ci#define MCF_SDRAMC_REFRESH		(0x40000000)
12068c2ecf20Sopenharmony_ci
12078c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDDS */
12088c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_D(x)		(((x)&0x00000003)<<0)
12098c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_S(x)		(((x)&0x00000003)<<2)
12108c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_A(x)		(((x)&0x00000003)<<4)
12118c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_C(x)		(((x)&0x00000003)<<6)
12128c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_E(x)		(((x)&0x00000003)<<8)
12138c2ecf20Sopenharmony_ci
12148c2ecf20Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDCS */
12158c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ(x)		(((x)&0x0000001F)<<0)
12168c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_BASE(x)		(((x)&0x00000FFF)<<20)
12178c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_BA(x)		((x)&0xFFF00000)
12188c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_DIABLE	(0x00000000)
12198c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_1MBYTE	(0x00000013)
12208c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_2MBYTE	(0x00000014)
12218c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_4MBYTE	(0x00000015)
12228c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_8MBYTE	(0x00000016)
12238c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_16MBYTE	(0x00000017)
12248c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_32MBYTE	(0x00000018)
12258c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_64MBYTE	(0x00000019)
12268c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_128MBYTE	(0x0000001A)
12278c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_256MBYTE	(0x0000001B)
12288c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_512MBYTE	(0x0000001C)
12298c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_1GBYTE	(0x0000001D)
12308c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_2GBYTE	(0x0000001E)
12318c2ecf20Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_4GBYTE	(0x0000001F)
12328c2ecf20Sopenharmony_ci
12338c2ecf20Sopenharmony_ci/*
12348c2ecf20Sopenharmony_ci * Edge Port Module (EPORT)
12358c2ecf20Sopenharmony_ci */
12368c2ecf20Sopenharmony_ci#define MCFEPORT_EPPAR                (0xFC094000)
12378c2ecf20Sopenharmony_ci#define MCFEPORT_EPDDR                (0xFC094002)
12388c2ecf20Sopenharmony_ci#define MCFEPORT_EPIER                (0xFC094003)
12398c2ecf20Sopenharmony_ci#define MCFEPORT_EPDR                 (0xFC094004)
12408c2ecf20Sopenharmony_ci#define MCFEPORT_EPPDR                (0xFC094005)
12418c2ecf20Sopenharmony_ci#define MCFEPORT_EPFR                 (0xFC094006)
12428c2ecf20Sopenharmony_ci
12438c2ecf20Sopenharmony_ci/*
12448c2ecf20Sopenharmony_ci * I2C Module
12458c2ecf20Sopenharmony_ci */
12468c2ecf20Sopenharmony_ci#define	MCFI2C_BASE0			(0xFc058000)
12478c2ecf20Sopenharmony_ci#define	MCFI2C_SIZE0			0x40
12488c2ecf20Sopenharmony_ci
12498c2ecf20Sopenharmony_ci/********************************************************************/
12508c2ecf20Sopenharmony_ci#endif	/* m53xxsim_h */
1251