162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/****************************************************************************/
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci/*
562306a36Sopenharmony_ci *	m53xxsim.h -- ColdFire 5329 registers
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci/****************************************************************************/
962306a36Sopenharmony_ci#ifndef	m53xxsim_h
1062306a36Sopenharmony_ci#define	m53xxsim_h
1162306a36Sopenharmony_ci/****************************************************************************/
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define	CPU_NAME		"COLDFIRE(m53xx)"
1462306a36Sopenharmony_ci#define	CPU_INSTR_PER_JIFFY	3
1562306a36Sopenharmony_ci#define	MCF_BUSCLK		(MCF_CLK / 3)
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#include <asm/m53xxacr.h>
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#define MCFINT_VECBASE      64
2062306a36Sopenharmony_ci#define MCFINT_UART0        26          /* Interrupt number for UART0 */
2162306a36Sopenharmony_ci#define MCFINT_UART1        27          /* Interrupt number for UART1 */
2262306a36Sopenharmony_ci#define MCFINT_UART2        28          /* Interrupt number for UART2 */
2362306a36Sopenharmony_ci#define MCFINT_I2C0         30		/* Interrupt number for I2C */
2462306a36Sopenharmony_ci#define MCFINT_QSPI         31          /* Interrupt number for QSPI */
2562306a36Sopenharmony_ci#define MCFINT_FECRX0	    36		/* Interrupt number for FEC */
2662306a36Sopenharmony_ci#define MCFINT_FECTX0	    40		/* Interrupt number for FEC */
2762306a36Sopenharmony_ci#define MCFINT_FECENTC0	    42		/* Interrupt number for FEC */
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci#define MCF_IRQ_UART0       (MCFINT_VECBASE + MCFINT_UART0)
3062306a36Sopenharmony_ci#define MCF_IRQ_UART1       (MCFINT_VECBASE + MCFINT_UART1)
3162306a36Sopenharmony_ci#define MCF_IRQ_UART2       (MCFINT_VECBASE + MCFINT_UART2)
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci#define MCF_IRQ_FECRX0	    (MCFINT_VECBASE + MCFINT_FECRX0)
3462306a36Sopenharmony_ci#define MCF_IRQ_FECTX0	    (MCFINT_VECBASE + MCFINT_FECTX0)
3562306a36Sopenharmony_ci#define MCF_IRQ_FECENTC0    (MCFINT_VECBASE + MCFINT_FECENTC0)
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci#define	MCF_IRQ_I2C0	    (MCFINT_VECBASE + MCFINT_I2C0)
3862306a36Sopenharmony_ci#define	MCF_IRQ_QSPI	    (MCFINT_VECBASE + MCFINT_QSPI)
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci#define MCF_WTM_WCR		0xFC098000
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci/*
4362306a36Sopenharmony_ci *	Define the 532x SIM register set addresses.
4462306a36Sopenharmony_ci */
4562306a36Sopenharmony_ci#define	MCFSIM_IPRL		0xFC048004
4662306a36Sopenharmony_ci#define	MCFSIM_IPRH		0xFC048000
4762306a36Sopenharmony_ci#define	MCFSIM_IPR		MCFSIM_IPRL
4862306a36Sopenharmony_ci#define	MCFSIM_IMRL		0xFC04800C
4962306a36Sopenharmony_ci#define	MCFSIM_IMRH		0xFC048008
5062306a36Sopenharmony_ci#define	MCFSIM_IMR		MCFSIM_IMRL
5162306a36Sopenharmony_ci#define	MCFSIM_ICR0		0xFC048040
5262306a36Sopenharmony_ci#define	MCFSIM_ICR1		0xFC048041
5362306a36Sopenharmony_ci#define	MCFSIM_ICR2		0xFC048042
5462306a36Sopenharmony_ci#define	MCFSIM_ICR3		0xFC048043
5562306a36Sopenharmony_ci#define	MCFSIM_ICR4		0xFC048044
5662306a36Sopenharmony_ci#define	MCFSIM_ICR5		0xFC048045
5762306a36Sopenharmony_ci#define	MCFSIM_ICR6		0xFC048046
5862306a36Sopenharmony_ci#define	MCFSIM_ICR7		0xFC048047
5962306a36Sopenharmony_ci#define	MCFSIM_ICR8		0xFC048048
6062306a36Sopenharmony_ci#define	MCFSIM_ICR9		0xFC048049
6162306a36Sopenharmony_ci#define	MCFSIM_ICR10		0xFC04804A
6262306a36Sopenharmony_ci#define	MCFSIM_ICR11		0xFC04804B
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci/*
6562306a36Sopenharmony_ci *	Some symbol defines for the above...
6662306a36Sopenharmony_ci */
6762306a36Sopenharmony_ci#define	MCFSIM_SWDICR		MCFSIM_ICR0	/* Watchdog timer ICR */
6862306a36Sopenharmony_ci#define	MCFSIM_TIMER1ICR	MCFSIM_ICR1	/* Timer 1 ICR */
6962306a36Sopenharmony_ci#define	MCFSIM_TIMER2ICR	MCFSIM_ICR2	/* Timer 2 ICR */
7062306a36Sopenharmony_ci#define	MCFSIM_UART1ICR		MCFSIM_ICR4	/* UART 1 ICR */
7162306a36Sopenharmony_ci#define	MCFSIM_UART2ICR		MCFSIM_ICR5	/* UART 2 ICR */
7262306a36Sopenharmony_ci#define	MCFSIM_DMA0ICR		MCFSIM_ICR6	/* DMA 0 ICR */
7362306a36Sopenharmony_ci#define	MCFSIM_DMA1ICR		MCFSIM_ICR7	/* DMA 1 ICR */
7462306a36Sopenharmony_ci#define	MCFSIM_DMA2ICR		MCFSIM_ICR8	/* DMA 2 ICR */
7562306a36Sopenharmony_ci#define	MCFSIM_DMA3ICR		MCFSIM_ICR9	/* DMA 3 ICR */
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ci#define	MCFINTC0_SIMR		0xFC04801C
7962306a36Sopenharmony_ci#define	MCFINTC0_CIMR		0xFC04801D
8062306a36Sopenharmony_ci#define	MCFINTC0_ICR0		0xFC048040
8162306a36Sopenharmony_ci#define	MCFINTC1_SIMR		0xFC04C01C
8262306a36Sopenharmony_ci#define	MCFINTC1_CIMR		0xFC04C01D
8362306a36Sopenharmony_ci#define	MCFINTC1_ICR0		0xFC04C040
8462306a36Sopenharmony_ci#define MCFINTC2_SIMR		(0)
8562306a36Sopenharmony_ci#define MCFINTC2_CIMR		(0)
8662306a36Sopenharmony_ci#define MCFINTC2_ICR0		(0)
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ci#define MCFSIM_ICR_TIMER1	(0xFC048040+32)
8962306a36Sopenharmony_ci#define MCFSIM_ICR_TIMER2	(0xFC048040+33)
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ci/*
9262306a36Sopenharmony_ci *	Define system peripheral IRQ usage.
9362306a36Sopenharmony_ci */
9462306a36Sopenharmony_ci#define	MCF_IRQ_TIMER		(64 + 32)	/* Timer0 */
9562306a36Sopenharmony_ci#define	MCF_IRQ_PROFILER	(64 + 33)	/* Timer1 */
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ci/*
9862306a36Sopenharmony_ci *  UART module.
9962306a36Sopenharmony_ci */
10062306a36Sopenharmony_ci#define MCFUART_BASE0		0xFC060000	/* Base address of UART1 */
10162306a36Sopenharmony_ci#define MCFUART_BASE1		0xFC064000	/* Base address of UART2 */
10262306a36Sopenharmony_ci#define MCFUART_BASE2		0xFC068000	/* Base address of UART3 */
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_ci/*
10562306a36Sopenharmony_ci *  FEC module.
10662306a36Sopenharmony_ci */
10762306a36Sopenharmony_ci#define	MCFFEC_BASE0		0xFC030000	/* Base address of FEC0 */
10862306a36Sopenharmony_ci#define	MCFFEC_SIZE0		0x800		/* Size of FEC0 region */
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ci/*
11162306a36Sopenharmony_ci *  QSPI module.
11262306a36Sopenharmony_ci */
11362306a36Sopenharmony_ci#define	MCFQSPI_BASE		0xFC05C000	/* Base address of QSPI */
11462306a36Sopenharmony_ci#define	MCFQSPI_SIZE		0x40		/* Size of QSPI region */
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ci#define	MCFQSPI_CS0		84
11762306a36Sopenharmony_ci#define	MCFQSPI_CS1		85
11862306a36Sopenharmony_ci#define	MCFQSPI_CS2		86
11962306a36Sopenharmony_ci
12062306a36Sopenharmony_ci/*
12162306a36Sopenharmony_ci *  Timer module.
12262306a36Sopenharmony_ci */
12362306a36Sopenharmony_ci#define MCFTIMER_BASE1		0xFC070000	/* Base address of TIMER1 */
12462306a36Sopenharmony_ci#define MCFTIMER_BASE2		0xFC074000	/* Base address of TIMER2 */
12562306a36Sopenharmony_ci#define MCFTIMER_BASE3		0xFC078000	/* Base address of TIMER3 */
12662306a36Sopenharmony_ci#define MCFTIMER_BASE4		0xFC07C000	/* Base address of TIMER4 */
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ci/*********************************************************************
12962306a36Sopenharmony_ci *
13062306a36Sopenharmony_ci * Reset Controller Module
13162306a36Sopenharmony_ci *
13262306a36Sopenharmony_ci *********************************************************************/
13362306a36Sopenharmony_ci
13462306a36Sopenharmony_ci#define	MCF_RCR			0xFC0A0000
13562306a36Sopenharmony_ci#define	MCF_RSR			0xFC0A0001
13662306a36Sopenharmony_ci
13762306a36Sopenharmony_ci#define	MCF_RCR_SWRESET		0x80		/* Software reset bit */
13862306a36Sopenharmony_ci#define	MCF_RCR_FRCSTOUT	0x40		/* Force external reset */
13962306a36Sopenharmony_ci
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ci/*
14262306a36Sopenharmony_ci * Power Management
14362306a36Sopenharmony_ci */
14462306a36Sopenharmony_ci#define MCFPM_WCR		0xfc040013
14562306a36Sopenharmony_ci#define MCFPM_PPMSR0		0xfc04002c
14662306a36Sopenharmony_ci#define MCFPM_PPMCR0		0xfc04002d
14762306a36Sopenharmony_ci#define MCFPM_PPMSR1		0xfc04002e
14862306a36Sopenharmony_ci#define MCFPM_PPMCR1		0xfc04002f
14962306a36Sopenharmony_ci#define MCFPM_PPMHR0		0xfc040030
15062306a36Sopenharmony_ci#define MCFPM_PPMLR0		0xfc040034
15162306a36Sopenharmony_ci#define MCFPM_PPMHR1		0xfc040038
15262306a36Sopenharmony_ci#define MCFPM_LPCR		0xec090007
15362306a36Sopenharmony_ci
15462306a36Sopenharmony_ci/*
15562306a36Sopenharmony_ci *	The M5329EVB board needs a help getting its devices initialized
15662306a36Sopenharmony_ci *	at kernel start time if dBUG doesn't set it up (for example
15762306a36Sopenharmony_ci *	it is not used), so we need to do it manually.
15862306a36Sopenharmony_ci */
15962306a36Sopenharmony_ci#ifdef __ASSEMBLER__
16062306a36Sopenharmony_ci.macro m5329EVB_setup
16162306a36Sopenharmony_ci	movel	#0xFC098000, %a7
16262306a36Sopenharmony_ci	movel	#0x0, (%a7)
16362306a36Sopenharmony_ci#define CORE_SRAM	0x80000000
16462306a36Sopenharmony_ci#define CORE_SRAM_SIZE	0x8000
16562306a36Sopenharmony_ci	movel	#CORE_SRAM, %d0
16662306a36Sopenharmony_ci	addl	#0x221, %d0
16762306a36Sopenharmony_ci	movec	%d0,%RAMBAR1
16862306a36Sopenharmony_ci	movel	#CORE_SRAM, %sp
16962306a36Sopenharmony_ci	addl	#CORE_SRAM_SIZE, %sp
17062306a36Sopenharmony_ci	jsr	sysinit
17162306a36Sopenharmony_ci.endm
17262306a36Sopenharmony_ci#define	PLATFORM_SETUP	m5329EVB_setup
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ci#endif /* __ASSEMBLER__ */
17562306a36Sopenharmony_ci
17662306a36Sopenharmony_ci/*********************************************************************
17762306a36Sopenharmony_ci *
17862306a36Sopenharmony_ci * Chip Configuration Module (CCM)
17962306a36Sopenharmony_ci *
18062306a36Sopenharmony_ci *********************************************************************/
18162306a36Sopenharmony_ci
18262306a36Sopenharmony_ci/* Register read/write macros */
18362306a36Sopenharmony_ci#define MCF_CCM_CCR               0xFC0A0004
18462306a36Sopenharmony_ci#define MCF_CCM_RCON              0xFC0A0008
18562306a36Sopenharmony_ci#define MCF_CCM_CIR               0xFC0A000A
18662306a36Sopenharmony_ci#define MCF_CCM_MISCCR            0xFC0A0010
18762306a36Sopenharmony_ci#define MCF_CCM_CDR               0xFC0A0012
18862306a36Sopenharmony_ci#define MCF_CCM_UHCSR             0xFC0A0014
18962306a36Sopenharmony_ci#define MCF_CCM_UOCSR             0xFC0A0016
19062306a36Sopenharmony_ci
19162306a36Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_CCR */
19262306a36Sopenharmony_ci#define MCF_CCM_CCR_RESERVED      (0x0001)
19362306a36Sopenharmony_ci#define MCF_CCM_CCR_PLL_MODE      (0x0003)
19462306a36Sopenharmony_ci#define MCF_CCM_CCR_OSC_MODE      (0x0005)
19562306a36Sopenharmony_ci#define MCF_CCM_CCR_BOOTPS(x)     (((x)&0x0003)<<3|0x0001)
19662306a36Sopenharmony_ci#define MCF_CCM_CCR_LOAD          (0x0021)
19762306a36Sopenharmony_ci#define MCF_CCM_CCR_LIMP          (0x0041)
19862306a36Sopenharmony_ci#define MCF_CCM_CCR_CSC(x)        (((x)&0x0003)<<8|0x0001)
19962306a36Sopenharmony_ci
20062306a36Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_RCON */
20162306a36Sopenharmony_ci#define MCF_CCM_RCON_RESERVED     (0x0001)
20262306a36Sopenharmony_ci#define MCF_CCM_RCON_PLL_MODE     (0x0003)
20362306a36Sopenharmony_ci#define MCF_CCM_RCON_OSC_MODE     (0x0005)
20462306a36Sopenharmony_ci#define MCF_CCM_RCON_BOOTPS(x)    (((x)&0x0003)<<3|0x0001)
20562306a36Sopenharmony_ci#define MCF_CCM_RCON_LOAD         (0x0021)
20662306a36Sopenharmony_ci#define MCF_CCM_RCON_LIMP         (0x0041)
20762306a36Sopenharmony_ci#define MCF_CCM_RCON_CSC(x)       (((x)&0x0003)<<8|0x0001)
20862306a36Sopenharmony_ci
20962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_CIR */
21062306a36Sopenharmony_ci#define MCF_CCM_CIR_PRN(x)        (((x)&0x003F)<<0)
21162306a36Sopenharmony_ci#define MCF_CCM_CIR_PIN(x)        (((x)&0x03FF)<<6)
21262306a36Sopenharmony_ci
21362306a36Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_MISCCR */
21462306a36Sopenharmony_ci#define MCF_CCM_MISCCR_USBSRC     (0x0001)
21562306a36Sopenharmony_ci#define MCF_CCM_MISCCR_USBDIV     (0x0002)
21662306a36Sopenharmony_ci#define MCF_CCM_MISCCR_SSI_SRC    (0x0010)
21762306a36Sopenharmony_ci#define MCF_CCM_MISCCR_TIM_DMA   (0x0020)
21862306a36Sopenharmony_ci#define MCF_CCM_MISCCR_SSI_PUS    (0x0040)
21962306a36Sopenharmony_ci#define MCF_CCM_MISCCR_SSI_PUE    (0x0080)
22062306a36Sopenharmony_ci#define MCF_CCM_MISCCR_LCD_CHEN   (0x0100)
22162306a36Sopenharmony_ci#define MCF_CCM_MISCCR_LIMP       (0x1000)
22262306a36Sopenharmony_ci#define MCF_CCM_MISCCR_PLL_LOCK   (0x2000)
22362306a36Sopenharmony_ci
22462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_CDR */
22562306a36Sopenharmony_ci#define MCF_CCM_CDR_SSIDIV(x)     (((x)&0x000F)<<0)
22662306a36Sopenharmony_ci#define MCF_CCM_CDR_LPDIV(x)      (((x)&0x000F)<<8)
22762306a36Sopenharmony_ci
22862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_UHCSR */
22962306a36Sopenharmony_ci#define MCF_CCM_UHCSR_XPDE        (0x0001)
23062306a36Sopenharmony_ci#define MCF_CCM_UHCSR_UHMIE       (0x0002)
23162306a36Sopenharmony_ci#define MCF_CCM_UHCSR_WKUP        (0x0004)
23262306a36Sopenharmony_ci#define MCF_CCM_UHCSR_PORTIND(x)  (((x)&0x0003)<<14)
23362306a36Sopenharmony_ci
23462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_CCM_UOCSR */
23562306a36Sopenharmony_ci#define MCF_CCM_UOCSR_XPDE        (0x0001)
23662306a36Sopenharmony_ci#define MCF_CCM_UOCSR_UOMIE       (0x0002)
23762306a36Sopenharmony_ci#define MCF_CCM_UOCSR_WKUP        (0x0004)
23862306a36Sopenharmony_ci#define MCF_CCM_UOCSR_PWRFLT      (0x0008)
23962306a36Sopenharmony_ci#define MCF_CCM_UOCSR_SEND        (0x0010)
24062306a36Sopenharmony_ci#define MCF_CCM_UOCSR_VVLD        (0x0020)
24162306a36Sopenharmony_ci#define MCF_CCM_UOCSR_BVLD        (0x0040)
24262306a36Sopenharmony_ci#define MCF_CCM_UOCSR_AVLD        (0x0080)
24362306a36Sopenharmony_ci#define MCF_CCM_UOCSR_DPPU        (0x0100)
24462306a36Sopenharmony_ci#define MCF_CCM_UOCSR_DCR_VBUS    (0x0200)
24562306a36Sopenharmony_ci#define MCF_CCM_UOCSR_CRG_VBUS    (0x0400)
24662306a36Sopenharmony_ci#define MCF_CCM_UOCSR_DRV_VBUS    (0x0800)
24762306a36Sopenharmony_ci#define MCF_CCM_UOCSR_DMPD        (0x1000)
24862306a36Sopenharmony_ci#define MCF_CCM_UOCSR_DPPD        (0x2000)
24962306a36Sopenharmony_ci#define MCF_CCM_UOCSR_PORTIND(x)  (((x)&0x0003)<<14)
25062306a36Sopenharmony_ci
25162306a36Sopenharmony_ci/*********************************************************************
25262306a36Sopenharmony_ci *
25362306a36Sopenharmony_ci * FlexBus Chip Selects (FBCS)
25462306a36Sopenharmony_ci *
25562306a36Sopenharmony_ci *********************************************************************/
25662306a36Sopenharmony_ci
25762306a36Sopenharmony_ci/* Register read/write macros */
25862306a36Sopenharmony_ci#define MCF_FBCS0_CSAR		0xFC008000
25962306a36Sopenharmony_ci#define MCF_FBCS0_CSMR		0xFC008004
26062306a36Sopenharmony_ci#define MCF_FBCS0_CSCR		0xFC008008
26162306a36Sopenharmony_ci#define MCF_FBCS1_CSAR		0xFC00800C
26262306a36Sopenharmony_ci#define MCF_FBCS1_CSMR		0xFC008010
26362306a36Sopenharmony_ci#define MCF_FBCS1_CSCR		0xFC008014
26462306a36Sopenharmony_ci#define MCF_FBCS2_CSAR		0xFC008018
26562306a36Sopenharmony_ci#define MCF_FBCS2_CSMR		0xFC00801C
26662306a36Sopenharmony_ci#define MCF_FBCS2_CSCR		0xFC008020
26762306a36Sopenharmony_ci#define MCF_FBCS3_CSAR		0xFC008024
26862306a36Sopenharmony_ci#define MCF_FBCS3_CSMR		0xFC008028
26962306a36Sopenharmony_ci#define MCF_FBCS3_CSCR		0xFC00802C
27062306a36Sopenharmony_ci#define MCF_FBCS4_CSAR		0xFC008030
27162306a36Sopenharmony_ci#define MCF_FBCS4_CSMR		0xFC008034
27262306a36Sopenharmony_ci#define MCF_FBCS4_CSCR		0xFC008038
27362306a36Sopenharmony_ci#define MCF_FBCS5_CSAR		0xFC00803C
27462306a36Sopenharmony_ci#define MCF_FBCS5_CSMR		0xFC008040
27562306a36Sopenharmony_ci#define MCF_FBCS5_CSCR		0xFC008044
27662306a36Sopenharmony_ci
27762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_FBCS_CSAR */
27862306a36Sopenharmony_ci#define MCF_FBCS_CSAR_BA(x)	((x)&0xFFFF0000)
27962306a36Sopenharmony_ci
28062306a36Sopenharmony_ci/* Bit definitions and macros for MCF_FBCS_CSMR */
28162306a36Sopenharmony_ci#define MCF_FBCS_CSMR_V		(0x00000001)
28262306a36Sopenharmony_ci#define MCF_FBCS_CSMR_WP	(0x00000100)
28362306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM(x)	(((x)&0x0000FFFF)<<16)
28462306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_4G	(0xFFFF0000)
28562306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_2G	(0x7FFF0000)
28662306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_1G	(0x3FFF0000)
28762306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_1024M	(0x3FFF0000)
28862306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_512M	(0x1FFF0000)
28962306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_256M	(0x0FFF0000)
29062306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_128M	(0x07FF0000)
29162306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_64M	(0x03FF0000)
29262306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_32M	(0x01FF0000)
29362306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_16M	(0x00FF0000)
29462306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_8M	(0x007F0000)
29562306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_4M	(0x003F0000)
29662306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_2M	(0x001F0000)
29762306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_1M	(0x000F0000)
29862306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_1024K	(0x000F0000)
29962306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_512K	(0x00070000)
30062306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_256K	(0x00030000)
30162306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_128K	(0x00010000)
30262306a36Sopenharmony_ci#define MCF_FBCS_CSMR_BAM_64K	(0x00000000)
30362306a36Sopenharmony_ci
30462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_FBCS_CSCR */
30562306a36Sopenharmony_ci#define MCF_FBCS_CSCR_BSTW	(0x00000008)
30662306a36Sopenharmony_ci#define MCF_FBCS_CSCR_BSTR	(0x00000010)
30762306a36Sopenharmony_ci#define MCF_FBCS_CSCR_BEM	(0x00000020)
30862306a36Sopenharmony_ci#define MCF_FBCS_CSCR_PS(x)	(((x)&0x00000003)<<6)
30962306a36Sopenharmony_ci#define MCF_FBCS_CSCR_AA	(0x00000100)
31062306a36Sopenharmony_ci#define MCF_FBCS_CSCR_SBM	(0x00000200)
31162306a36Sopenharmony_ci#define MCF_FBCS_CSCR_WS(x)	(((x)&0x0000003F)<<10)
31262306a36Sopenharmony_ci#define MCF_FBCS_CSCR_WRAH(x)	(((x)&0x00000003)<<16)
31362306a36Sopenharmony_ci#define MCF_FBCS_CSCR_RDAH(x)	(((x)&0x00000003)<<18)
31462306a36Sopenharmony_ci#define MCF_FBCS_CSCR_ASET(x)	(((x)&0x00000003)<<20)
31562306a36Sopenharmony_ci#define MCF_FBCS_CSCR_SWSEN	(0x00800000)
31662306a36Sopenharmony_ci#define MCF_FBCS_CSCR_SWS(x)	(((x)&0x0000003F)<<26)
31762306a36Sopenharmony_ci#define MCF_FBCS_CSCR_PS_8	(0x0040)
31862306a36Sopenharmony_ci#define MCF_FBCS_CSCR_PS_16	(0x0080)
31962306a36Sopenharmony_ci#define MCF_FBCS_CSCR_PS_32	(0x0000)
32062306a36Sopenharmony_ci
32162306a36Sopenharmony_ci/*********************************************************************
32262306a36Sopenharmony_ci *
32362306a36Sopenharmony_ci * General Purpose I/O (GPIO)
32462306a36Sopenharmony_ci *
32562306a36Sopenharmony_ci *********************************************************************/
32662306a36Sopenharmony_ci
32762306a36Sopenharmony_ci/* Register read/write macros */
32862306a36Sopenharmony_ci#define MCFGPIO_PODR_FECH		(0xFC0A4000)
32962306a36Sopenharmony_ci#define MCFGPIO_PODR_FECL		(0xFC0A4001)
33062306a36Sopenharmony_ci#define MCFGPIO_PODR_SSI		(0xFC0A4002)
33162306a36Sopenharmony_ci#define MCFGPIO_PODR_BUSCTL		(0xFC0A4003)
33262306a36Sopenharmony_ci#define MCFGPIO_PODR_BE			(0xFC0A4004)
33362306a36Sopenharmony_ci#define MCFGPIO_PODR_CS			(0xFC0A4005)
33462306a36Sopenharmony_ci#define MCFGPIO_PODR_PWM		(0xFC0A4006)
33562306a36Sopenharmony_ci#define MCFGPIO_PODR_FECI2C		(0xFC0A4007)
33662306a36Sopenharmony_ci#define MCFGPIO_PODR_UART		(0xFC0A4009)
33762306a36Sopenharmony_ci#define MCFGPIO_PODR_QSPI		(0xFC0A400A)
33862306a36Sopenharmony_ci#define MCFGPIO_PODR_TIMER		(0xFC0A400B)
33962306a36Sopenharmony_ci#define MCFGPIO_PODR_LCDDATAH		(0xFC0A400D)
34062306a36Sopenharmony_ci#define MCFGPIO_PODR_LCDDATAM		(0xFC0A400E)
34162306a36Sopenharmony_ci#define MCFGPIO_PODR_LCDDATAL		(0xFC0A400F)
34262306a36Sopenharmony_ci#define MCFGPIO_PODR_LCDCTLH		(0xFC0A4010)
34362306a36Sopenharmony_ci#define MCFGPIO_PODR_LCDCTLL		(0xFC0A4011)
34462306a36Sopenharmony_ci#define MCFGPIO_PDDR_FECH		(0xFC0A4014)
34562306a36Sopenharmony_ci#define MCFGPIO_PDDR_FECL		(0xFC0A4015)
34662306a36Sopenharmony_ci#define MCFGPIO_PDDR_SSI		(0xFC0A4016)
34762306a36Sopenharmony_ci#define MCFGPIO_PDDR_BUSCTL		(0xFC0A4017)
34862306a36Sopenharmony_ci#define MCFGPIO_PDDR_BE			(0xFC0A4018)
34962306a36Sopenharmony_ci#define MCFGPIO_PDDR_CS			(0xFC0A4019)
35062306a36Sopenharmony_ci#define MCFGPIO_PDDR_PWM		(0xFC0A401A)
35162306a36Sopenharmony_ci#define MCFGPIO_PDDR_FECI2C		(0xFC0A401B)
35262306a36Sopenharmony_ci#define MCFGPIO_PDDR_UART		(0xFC0A401C)
35362306a36Sopenharmony_ci#define MCFGPIO_PDDR_QSPI		(0xFC0A401E)
35462306a36Sopenharmony_ci#define MCFGPIO_PDDR_TIMER		(0xFC0A401F)
35562306a36Sopenharmony_ci#define MCFGPIO_PDDR_LCDDATAH		(0xFC0A4021)
35662306a36Sopenharmony_ci#define MCFGPIO_PDDR_LCDDATAM		(0xFC0A4022)
35762306a36Sopenharmony_ci#define MCFGPIO_PDDR_LCDDATAL		(0xFC0A4023)
35862306a36Sopenharmony_ci#define MCFGPIO_PDDR_LCDCTLH		(0xFC0A4024)
35962306a36Sopenharmony_ci#define MCFGPIO_PDDR_LCDCTLL		(0xFC0A4025)
36062306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_FECH		(0xFC0A4028)
36162306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_FECL		(0xFC0A4029)
36262306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_SSI		(0xFC0A402A)
36362306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_BUSCTL		(0xFC0A402B)
36462306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_BE		(0xFC0A402C)
36562306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_CS		(0xFC0A402D)
36662306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_PWM		(0xFC0A402E)
36762306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_FECI2C		(0xFC0A402F)
36862306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_UART		(0xFC0A4031)
36962306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_QSPI		(0xFC0A4032)
37062306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_TIMER		(0xFC0A4033)
37162306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDDATAH		(0xFC0A4035)
37262306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDDATAM		(0xFC0A4036)
37362306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDDATAL		(0xFC0A4037)
37462306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDCTLH		(0xFC0A4038)
37562306a36Sopenharmony_ci#define MCFGPIO_PPDSDR_LCDCTLL		(0xFC0A4039)
37662306a36Sopenharmony_ci#define MCFGPIO_PCLRR_FECH		(0xFC0A403C)
37762306a36Sopenharmony_ci#define MCFGPIO_PCLRR_FECL		(0xFC0A403D)
37862306a36Sopenharmony_ci#define MCFGPIO_PCLRR_SSI		(0xFC0A403E)
37962306a36Sopenharmony_ci#define MCFGPIO_PCLRR_BUSCTL		(0xFC0A403F)
38062306a36Sopenharmony_ci#define MCFGPIO_PCLRR_BE		(0xFC0A4040)
38162306a36Sopenharmony_ci#define MCFGPIO_PCLRR_CS		(0xFC0A4041)
38262306a36Sopenharmony_ci#define MCFGPIO_PCLRR_PWM		(0xFC0A4042)
38362306a36Sopenharmony_ci#define MCFGPIO_PCLRR_FECI2C		(0xFC0A4043)
38462306a36Sopenharmony_ci#define MCFGPIO_PCLRR_UART		(0xFC0A4045)
38562306a36Sopenharmony_ci#define MCFGPIO_PCLRR_QSPI		(0xFC0A4046)
38662306a36Sopenharmony_ci#define MCFGPIO_PCLRR_TIMER		(0xFC0A4047)
38762306a36Sopenharmony_ci#define MCFGPIO_PCLRR_LCDDATAH		(0xFC0A4049)
38862306a36Sopenharmony_ci#define MCFGPIO_PCLRR_LCDDATAM		(0xFC0A404A)
38962306a36Sopenharmony_ci#define MCFGPIO_PCLRR_LCDDATAL		(0xFC0A404B)
39062306a36Sopenharmony_ci#define MCFGPIO_PCLRR_LCDCTLH		(0xFC0A404C)
39162306a36Sopenharmony_ci#define MCFGPIO_PCLRR_LCDCTLL		(0xFC0A404D)
39262306a36Sopenharmony_ci#define MCFGPIO_PAR_FEC			(0xFC0A4050)
39362306a36Sopenharmony_ci#define MCFGPIO_PAR_PWM			(0xFC0A4051)
39462306a36Sopenharmony_ci#define MCFGPIO_PAR_BUSCTL		(0xFC0A4052)
39562306a36Sopenharmony_ci#define MCFGPIO_PAR_FECI2C		(0xFC0A4053)
39662306a36Sopenharmony_ci#define MCFGPIO_PAR_BE			(0xFC0A4054)
39762306a36Sopenharmony_ci#define MCFGPIO_PAR_CS			(0xFC0A4055)
39862306a36Sopenharmony_ci#define MCFGPIO_PAR_SSI			(0xFC0A4056)
39962306a36Sopenharmony_ci#define MCFGPIO_PAR_UART		(0xFC0A4058)
40062306a36Sopenharmony_ci#define MCFGPIO_PAR_QSPI		(0xFC0A405A)
40162306a36Sopenharmony_ci#define MCFGPIO_PAR_TIMER		(0xFC0A405C)
40262306a36Sopenharmony_ci#define MCFGPIO_PAR_LCDDATA		(0xFC0A405D)
40362306a36Sopenharmony_ci#define MCFGPIO_PAR_LCDCTL		(0xFC0A405E)
40462306a36Sopenharmony_ci#define MCFGPIO_PAR_IRQ			(0xFC0A4060)
40562306a36Sopenharmony_ci#define MCFGPIO_MSCR_FLEXBUS		(0xFC0A4064)
40662306a36Sopenharmony_ci#define MCFGPIO_MSCR_SDRAM		(0xFC0A4065)
40762306a36Sopenharmony_ci#define MCFGPIO_DSCR_I2C		(0xFC0A4068)
40862306a36Sopenharmony_ci#define MCFGPIO_DSCR_PWM		(0xFC0A4069)
40962306a36Sopenharmony_ci#define MCFGPIO_DSCR_FEC		(0xFC0A406A)
41062306a36Sopenharmony_ci#define MCFGPIO_DSCR_UART		(0xFC0A406B)
41162306a36Sopenharmony_ci#define MCFGPIO_DSCR_QSPI		(0xFC0A406C)
41262306a36Sopenharmony_ci#define MCFGPIO_DSCR_TIMER		(0xFC0A406D)
41362306a36Sopenharmony_ci#define MCFGPIO_DSCR_SSI		(0xFC0A406E)
41462306a36Sopenharmony_ci#define MCFGPIO_DSCR_LCD		(0xFC0A406F)
41562306a36Sopenharmony_ci#define MCFGPIO_DSCR_DEBUG		(0xFC0A4070)
41662306a36Sopenharmony_ci#define MCFGPIO_DSCR_CLKRST		(0xFC0A4071)
41762306a36Sopenharmony_ci#define MCFGPIO_DSCR_IRQ		(0xFC0A4072)
41862306a36Sopenharmony_ci
41962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_FECH */
42062306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH0              (0x01)
42162306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH1              (0x02)
42262306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH2              (0x04)
42362306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH3              (0x08)
42462306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH4              (0x10)
42562306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH5              (0x20)
42662306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH6              (0x40)
42762306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECH_PODR_FECH7              (0x80)
42862306a36Sopenharmony_ci
42962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_FECL */
43062306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL0              (0x01)
43162306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL1              (0x02)
43262306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL2              (0x04)
43362306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL3              (0x08)
43462306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL4              (0x10)
43562306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL5              (0x20)
43662306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL6              (0x40)
43762306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECL_PODR_FECL7              (0x80)
43862306a36Sopenharmony_ci
43962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_SSI */
44062306a36Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI0                (0x01)
44162306a36Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI1                (0x02)
44262306a36Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI2                (0x04)
44362306a36Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI3                (0x08)
44462306a36Sopenharmony_ci#define MCF_GPIO_PODR_SSI_PODR_SSI4                (0x10)
44562306a36Sopenharmony_ci
44662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_BUSCTL */
44762306a36Sopenharmony_ci#define MCF_GPIO_PODR_BUSCTL_POSDR_BUSCTL0         (0x01)
44862306a36Sopenharmony_ci#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL1          (0x02)
44962306a36Sopenharmony_ci#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL2          (0x04)
45062306a36Sopenharmony_ci#define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL3          (0x08)
45162306a36Sopenharmony_ci
45262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_BE */
45362306a36Sopenharmony_ci#define MCF_GPIO_PODR_BE_PODR_BE0                  (0x01)
45462306a36Sopenharmony_ci#define MCF_GPIO_PODR_BE_PODR_BE1                  (0x02)
45562306a36Sopenharmony_ci#define MCF_GPIO_PODR_BE_PODR_BE2                  (0x04)
45662306a36Sopenharmony_ci#define MCF_GPIO_PODR_BE_PODR_BE3                  (0x08)
45762306a36Sopenharmony_ci
45862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_CS */
45962306a36Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS1                  (0x02)
46062306a36Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS2                  (0x04)
46162306a36Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS3                  (0x08)
46262306a36Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS4                  (0x10)
46362306a36Sopenharmony_ci#define MCF_GPIO_PODR_CS_PODR_CS5                  (0x20)
46462306a36Sopenharmony_ci
46562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_PWM */
46662306a36Sopenharmony_ci#define MCF_GPIO_PODR_PWM_PODR_PWM2                (0x04)
46762306a36Sopenharmony_ci#define MCF_GPIO_PODR_PWM_PODR_PWM3                (0x08)
46862306a36Sopenharmony_ci#define MCF_GPIO_PODR_PWM_PODR_PWM4                (0x10)
46962306a36Sopenharmony_ci#define MCF_GPIO_PODR_PWM_PODR_PWM5                (0x20)
47062306a36Sopenharmony_ci
47162306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_FECI2C */
47262306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C0          (0x01)
47362306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C1          (0x02)
47462306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C2          (0x04)
47562306a36Sopenharmony_ci#define MCF_GPIO_PODR_FECI2C_PODR_FECI2C3          (0x08)
47662306a36Sopenharmony_ci
47762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_UART */
47862306a36Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART0              (0x01)
47962306a36Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART1              (0x02)
48062306a36Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART2              (0x04)
48162306a36Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART3              (0x08)
48262306a36Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART4              (0x10)
48362306a36Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART5              (0x20)
48462306a36Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART6              (0x40)
48562306a36Sopenharmony_ci#define MCF_GPIO_PODR_UART_PODR_UART7              (0x80)
48662306a36Sopenharmony_ci
48762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_QSPI */
48862306a36Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI0              (0x01)
48962306a36Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI1              (0x02)
49062306a36Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI2              (0x04)
49162306a36Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI3              (0x08)
49262306a36Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI4              (0x10)
49362306a36Sopenharmony_ci#define MCF_GPIO_PODR_QSPI_PODR_QSPI5              (0x20)
49462306a36Sopenharmony_ci
49562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_TIMER */
49662306a36Sopenharmony_ci#define MCF_GPIO_PODR_TIMER_PODR_TIMER0            (0x01)
49762306a36Sopenharmony_ci#define MCF_GPIO_PODR_TIMER_PODR_TIMER1            (0x02)
49862306a36Sopenharmony_ci#define MCF_GPIO_PODR_TIMER_PODR_TIMER2            (0x04)
49962306a36Sopenharmony_ci#define MCF_GPIO_PODR_TIMER_PODR_TIMER3            (0x08)
50062306a36Sopenharmony_ci
50162306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAH */
50262306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH0      (0x01)
50362306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH1      (0x02)
50462306a36Sopenharmony_ci
50562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAM */
50662306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM0      (0x01)
50762306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM1      (0x02)
50862306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM2      (0x04)
50962306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM3      (0x08)
51062306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM4      (0x10)
51162306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM5      (0x20)
51262306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM6      (0x40)
51362306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM7      (0x80)
51462306a36Sopenharmony_ci
51562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAL */
51662306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL0      (0x01)
51762306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL1      (0x02)
51862306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL2      (0x04)
51962306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL3      (0x08)
52062306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL4      (0x10)
52162306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL5      (0x20)
52262306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL6      (0x40)
52362306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL7      (0x80)
52462306a36Sopenharmony_ci
52562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLH */
52662306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLH_PODR_LCDCTLH0        (0x01)
52762306a36Sopenharmony_ci
52862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLL */
52962306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL0        (0x01)
53062306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL1        (0x02)
53162306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL2        (0x04)
53262306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL3        (0x08)
53362306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL4        (0x10)
53462306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL5        (0x20)
53562306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL6        (0x40)
53662306a36Sopenharmony_ci#define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL7        (0x80)
53762306a36Sopenharmony_ci
53862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_FECH */
53962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH0              (0x01)
54062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH1              (0x02)
54162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH2              (0x04)
54262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH3              (0x08)
54362306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH4              (0x10)
54462306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH5              (0x20)
54562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH6              (0x40)
54662306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECH_PDDR_FECH7              (0x80)
54762306a36Sopenharmony_ci
54862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_FECL */
54962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL0              (0x01)
55062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL1              (0x02)
55162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL2              (0x04)
55262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL3              (0x08)
55362306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL4              (0x10)
55462306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL5              (0x20)
55562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL6              (0x40)
55662306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECL_PDDR_FECL7              (0x80)
55762306a36Sopenharmony_ci
55862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_SSI */
55962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI0                (0x01)
56062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI1                (0x02)
56162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI2                (0x04)
56262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI3                (0x08)
56362306a36Sopenharmony_ci#define MCF_GPIO_PDDR_SSI_PDDR_SSI4                (0x10)
56462306a36Sopenharmony_ci
56562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_BUSCTL */
56662306a36Sopenharmony_ci#define MCF_GPIO_PDDR_BUSCTL_POSDR_BUSCTL0         (0x01)
56762306a36Sopenharmony_ci#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL1          (0x02)
56862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL2          (0x04)
56962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL3          (0x08)
57062306a36Sopenharmony_ci
57162306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_BE */
57262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_BE_PDDR_BE0                  (0x01)
57362306a36Sopenharmony_ci#define MCF_GPIO_PDDR_BE_PDDR_BE1                  (0x02)
57462306a36Sopenharmony_ci#define MCF_GPIO_PDDR_BE_PDDR_BE2                  (0x04)
57562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_BE_PDDR_BE3                  (0x08)
57662306a36Sopenharmony_ci
57762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_CS */
57862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS1                  (0x02)
57962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS2                  (0x04)
58062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS3                  (0x08)
58162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS4                  (0x10)
58262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_CS_PDDR_CS5                  (0x20)
58362306a36Sopenharmony_ci
58462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_PWM */
58562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_PWM_PDDR_PWM2                (0x04)
58662306a36Sopenharmony_ci#define MCF_GPIO_PDDR_PWM_PDDR_PWM3                (0x08)
58762306a36Sopenharmony_ci#define MCF_GPIO_PDDR_PWM_PDDR_PWM4                (0x10)
58862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_PWM_PDDR_PWM5                (0x20)
58962306a36Sopenharmony_ci
59062306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_FECI2C */
59162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C0          (0x01)
59262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C1          (0x02)
59362306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C2          (0x04)
59462306a36Sopenharmony_ci#define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C3          (0x08)
59562306a36Sopenharmony_ci
59662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_UART */
59762306a36Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART0              (0x01)
59862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART1              (0x02)
59962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART2              (0x04)
60062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART3              (0x08)
60162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART4              (0x10)
60262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART5              (0x20)
60362306a36Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART6              (0x40)
60462306a36Sopenharmony_ci#define MCF_GPIO_PDDR_UART_PDDR_UART7              (0x80)
60562306a36Sopenharmony_ci
60662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_QSPI */
60762306a36Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI0              (0x01)
60862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI1              (0x02)
60962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI2              (0x04)
61062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI3              (0x08)
61162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI4              (0x10)
61262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_QSPI_PDDR_QSPI5              (0x20)
61362306a36Sopenharmony_ci
61462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_TIMER */
61562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER0            (0x01)
61662306a36Sopenharmony_ci#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER1            (0x02)
61762306a36Sopenharmony_ci#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER2            (0x04)
61862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_TIMER_PDDR_TIMER3            (0x08)
61962306a36Sopenharmony_ci
62062306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAH */
62162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH0      (0x01)
62262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH1      (0x02)
62362306a36Sopenharmony_ci
62462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAM */
62562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM0      (0x01)
62662306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM1      (0x02)
62762306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM2      (0x04)
62862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM3      (0x08)
62962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM4      (0x10)
63062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM5      (0x20)
63162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM6      (0x40)
63262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM7      (0x80)
63362306a36Sopenharmony_ci
63462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAL */
63562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL0      (0x01)
63662306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL1      (0x02)
63762306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL2      (0x04)
63862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL3      (0x08)
63962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL4      (0x10)
64062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL5      (0x20)
64162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL6      (0x40)
64262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL7      (0x80)
64362306a36Sopenharmony_ci
64462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLH */
64562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLH_PDDR_LCDCTLH0        (0x01)
64662306a36Sopenharmony_ci
64762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLL */
64862306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL0        (0x01)
64962306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL1        (0x02)
65062306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL2        (0x04)
65162306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL3        (0x08)
65262306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL4        (0x10)
65362306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL5        (0x20)
65462306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL6        (0x40)
65562306a36Sopenharmony_ci#define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL7        (0x80)
65662306a36Sopenharmony_ci
65762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECH */
65862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH0          (0x01)
65962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH1          (0x02)
66062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH2          (0x04)
66162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH3          (0x08)
66262306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH4          (0x10)
66362306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH5          (0x20)
66462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH6          (0x40)
66562306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH7          (0x80)
66662306a36Sopenharmony_ci
66762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECL */
66862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL0          (0x01)
66962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL1          (0x02)
67062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL2          (0x04)
67162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL3          (0x08)
67262306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL4          (0x10)
67362306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL5          (0x20)
67462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL6          (0x40)
67562306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL7          (0x80)
67662306a36Sopenharmony_ci
67762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_SSI */
67862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI0            (0x01)
67962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI1            (0x02)
68062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI2            (0x04)
68162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI3            (0x08)
68262306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI4            (0x10)
68362306a36Sopenharmony_ci
68462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_BUSCTL */
68562306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_BUSCTL_POSDR_BUSCTL0       (0x01)
68662306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL1      (0x02)
68762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL2      (0x04)
68862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL3      (0x08)
68962306a36Sopenharmony_ci
69062306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_BE */
69162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE0              (0x01)
69262306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE1              (0x02)
69362306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE2              (0x04)
69462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_BE_PPDSDR_BE3              (0x08)
69562306a36Sopenharmony_ci
69662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_CS */
69762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS1              (0x02)
69862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS2              (0x04)
69962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS3              (0x08)
70062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS4              (0x10)
70162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_CS_PPDSDR_CS5              (0x20)
70262306a36Sopenharmony_ci
70362306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_PWM */
70462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM2            (0x04)
70562306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM3            (0x08)
70662306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM4            (0x10)
70762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM5            (0x20)
70862306a36Sopenharmony_ci
70962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_FECI2C */
71062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C0      (0x01)
71162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C1      (0x02)
71262306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C2      (0x04)
71362306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C3      (0x08)
71462306a36Sopenharmony_ci
71562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_UART */
71662306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART0          (0x01)
71762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART1          (0x02)
71862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART2          (0x04)
71962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART3          (0x08)
72062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART4          (0x10)
72162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART5          (0x20)
72262306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART6          (0x40)
72362306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_UART_PPDSDR_UART7          (0x80)
72462306a36Sopenharmony_ci
72562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_QSPI */
72662306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI0          (0x01)
72762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI1          (0x02)
72862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI2          (0x04)
72962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI3          (0x08)
73062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI4          (0x10)
73162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI5          (0x20)
73262306a36Sopenharmony_ci
73362306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_TIMER */
73462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER0        (0x01)
73562306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER1        (0x02)
73662306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER2        (0x04)
73762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER3        (0x08)
73862306a36Sopenharmony_ci
73962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAH */
74062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH0  (0x01)
74162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH1  (0x02)
74262306a36Sopenharmony_ci
74362306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAM */
74462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM0  (0x01)
74562306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM1  (0x02)
74662306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM2  (0x04)
74762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM3  (0x08)
74862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM4  (0x10)
74962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM5  (0x20)
75062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM6  (0x40)
75162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM7  (0x80)
75262306a36Sopenharmony_ci
75362306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAL */
75462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL0  (0x01)
75562306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL1  (0x02)
75662306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL2  (0x04)
75762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL3  (0x08)
75862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL4  (0x10)
75962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL5  (0x20)
76062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL6  (0x40)
76162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL7  (0x80)
76262306a36Sopenharmony_ci
76362306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLH */
76462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLH_PPDSDR_LCDCTLH0    (0x01)
76562306a36Sopenharmony_ci
76662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLL */
76762306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL0    (0x01)
76862306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL1    (0x02)
76962306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL2    (0x04)
77062306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL3    (0x08)
77162306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL4    (0x10)
77262306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL5    (0x20)
77362306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL6    (0x40)
77462306a36Sopenharmony_ci#define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL7    (0x80)
77562306a36Sopenharmony_ci
77662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_FECH */
77762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH0            (0x01)
77862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH1            (0x02)
77962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH2            (0x04)
78062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH3            (0x08)
78162306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH4            (0x10)
78262306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH5            (0x20)
78362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH6            (0x40)
78462306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECH_PCLRR_FECH7            (0x80)
78562306a36Sopenharmony_ci
78662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_FECL */
78762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL0            (0x01)
78862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL1            (0x02)
78962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL2            (0x04)
79062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL3            (0x08)
79162306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL4            (0x10)
79262306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL5            (0x20)
79362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL6            (0x40)
79462306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECL_PCLRR_FECL7            (0x80)
79562306a36Sopenharmony_ci
79662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_SSI */
79762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI0              (0x01)
79862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI1              (0x02)
79962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI2              (0x04)
80062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI3              (0x08)
80162306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_SSI_PCLRR_SSI4              (0x10)
80262306a36Sopenharmony_ci
80362306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_BUSCTL */
80462306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_BUSCTL_POSDR_BUSCTL0        (0x01)
80562306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL1        (0x02)
80662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL2        (0x04)
80762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL3        (0x08)
80862306a36Sopenharmony_ci
80962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_BE */
81062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_BE_PCLRR_BE0                (0x01)
81162306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_BE_PCLRR_BE1                (0x02)
81262306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_BE_PCLRR_BE2                (0x04)
81362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_BE_PCLRR_BE3                (0x08)
81462306a36Sopenharmony_ci
81562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_CS */
81662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS1                (0x02)
81762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS2                (0x04)
81862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS3                (0x08)
81962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS4                (0x10)
82062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_CS_PCLRR_CS5                (0x20)
82162306a36Sopenharmony_ci
82262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_PWM */
82362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM2              (0x04)
82462306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM3              (0x08)
82562306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM4              (0x10)
82662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_PWM_PCLRR_PWM5              (0x20)
82762306a36Sopenharmony_ci
82862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_FECI2C */
82962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C0        (0x01)
83062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C1        (0x02)
83162306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C2        (0x04)
83262306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C3        (0x08)
83362306a36Sopenharmony_ci
83462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_UART */
83562306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART0            (0x01)
83662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART1            (0x02)
83762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART2            (0x04)
83862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART3            (0x08)
83962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART4            (0x10)
84062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART5            (0x20)
84162306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART6            (0x40)
84262306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_UART_PCLRR_UART7            (0x80)
84362306a36Sopenharmony_ci
84462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_QSPI */
84562306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI0            (0x01)
84662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI1            (0x02)
84762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI2            (0x04)
84862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI3            (0x08)
84962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI4            (0x10)
85062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI5            (0x20)
85162306a36Sopenharmony_ci
85262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_TIMER */
85362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER0          (0x01)
85462306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER1          (0x02)
85562306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER2          (0x04)
85662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER3          (0x08)
85762306a36Sopenharmony_ci
85862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAH */
85962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH0    (0x01)
86062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH1    (0x02)
86162306a36Sopenharmony_ci
86262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAM */
86362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM0    (0x01)
86462306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM1    (0x02)
86562306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM2    (0x04)
86662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM3    (0x08)
86762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM4    (0x10)
86862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM5    (0x20)
86962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM6    (0x40)
87062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM7    (0x80)
87162306a36Sopenharmony_ci
87262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAL */
87362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL0    (0x01)
87462306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL1    (0x02)
87562306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL2    (0x04)
87662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL3    (0x08)
87762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL4    (0x10)
87862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL5    (0x20)
87962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL6    (0x40)
88062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL7    (0x80)
88162306a36Sopenharmony_ci
88262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLH */
88362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLH_PCLRR_LCDCTLH0      (0x01)
88462306a36Sopenharmony_ci
88562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLL */
88662306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL0      (0x01)
88762306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL1      (0x02)
88862306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL2      (0x04)
88962306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL3      (0x08)
89062306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL4      (0x10)
89162306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL5      (0x20)
89262306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL6      (0x40)
89362306a36Sopenharmony_ci#define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL7      (0x80)
89462306a36Sopenharmony_ci
89562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_FEC */
89662306a36Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_MII(x)            (((x)&0x03)<<0)
89762306a36Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_7W(x)             (((x)&0x03)<<2)
89862306a36Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_GPIO           (0x00)
89962306a36Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_URTS1          (0x04)
90062306a36Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_7W_FEC            (0x0C)
90162306a36Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_GPIO          (0x00)
90262306a36Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_UART          (0x01)
90362306a36Sopenharmony_ci#define MCF_GPIO_PAR_FEC_PAR_FEC_MII_FEC           (0x03)
90462306a36Sopenharmony_ci
90562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_PWM */
90662306a36Sopenharmony_ci#define MCF_GPIO_PAR_PWM_PAR_PWM1(x)               (((x)&0x03)<<0)
90762306a36Sopenharmony_ci#define MCF_GPIO_PAR_PWM_PAR_PWM3(x)               (((x)&0x03)<<2)
90862306a36Sopenharmony_ci#define MCF_GPIO_PAR_PWM_PAR_PWM5                  (0x10)
90962306a36Sopenharmony_ci#define MCF_GPIO_PAR_PWM_PAR_PWM7                  (0x20)
91062306a36Sopenharmony_ci
91162306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_BUSCTL */
91262306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TS(x)              (((x)&0x03)<<3)
91362306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_RWB                (0x20)
91462306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TA                 (0x40)
91562306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_OE                 (0x80)
91662306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_OE_GPIO            (0x00)
91762306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_OE_OE              (0x80)
91862306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TA_GPIO            (0x00)
91962306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TA_TA              (0x40)
92062306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_RWB_GPIO           (0x00)
92162306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_RWB_RWB            (0x20)
92262306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TS_GPIO            (0x00)
92362306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TS_DACK0           (0x10)
92462306a36Sopenharmony_ci#define MCF_GPIO_PAR_BUSCTL_PAR_TS_TS              (0x18)
92562306a36Sopenharmony_ci
92662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_FECI2C */
92762306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SDA(x)             (((x)&0x03)<<0)
92862306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SCL(x)             (((x)&0x03)<<2)
92962306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO(x)            (((x)&0x03)<<4)
93062306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC(x)             (((x)&0x03)<<6)
93162306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC_GPIO           (0x00)
93262306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC_UTXD2          (0x40)
93362306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC_SCL            (0x80)
93462306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDC_EMDC           (0xC0)
93562306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_GPIO          (0x00)
93662306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_URXD2         (0x10)
93762306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_SDA           (0x20)
93862306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_MDIO_EMDIO         (0x30)
93962306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SCL_GPIO           (0x00)
94062306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SCL_UTXD2          (0x04)
94162306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SCL_SCL            (0x0C)
94262306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SDA_GPIO           (0x00)
94362306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SDA_URXD2          (0x02)
94462306a36Sopenharmony_ci#define MCF_GPIO_PAR_FECI2C_PAR_SDA_SDA            (0x03)
94562306a36Sopenharmony_ci
94662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_BE */
94762306a36Sopenharmony_ci#define MCF_GPIO_PAR_BE_PAR_BE0                    (0x01)
94862306a36Sopenharmony_ci#define MCF_GPIO_PAR_BE_PAR_BE1                    (0x02)
94962306a36Sopenharmony_ci#define MCF_GPIO_PAR_BE_PAR_BE2                    (0x04)
95062306a36Sopenharmony_ci#define MCF_GPIO_PAR_BE_PAR_BE3                    (0x08)
95162306a36Sopenharmony_ci
95262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_CS */
95362306a36Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS1                    (0x02)
95462306a36Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS2                    (0x04)
95562306a36Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS3                    (0x08)
95662306a36Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS4                    (0x10)
95762306a36Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS5                    (0x20)
95862306a36Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS_CS1_GPIO            (0x00)
95962306a36Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS_CS1_SDCS1           (0x01)
96062306a36Sopenharmony_ci#define MCF_GPIO_PAR_CS_PAR_CS_CS1_CS1             (0x03)
96162306a36Sopenharmony_ci
96262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_SSI */
96362306a36Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_MCLK                  (0x0080)
96462306a36Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_TXD(x)                (((x)&0x0003)<<8)
96562306a36Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_RXD(x)                (((x)&0x0003)<<10)
96662306a36Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_FS(x)                 (((x)&0x0003)<<12)
96762306a36Sopenharmony_ci#define MCF_GPIO_PAR_SSI_PAR_BCLK(x)               (((x)&0x0003)<<14)
96862306a36Sopenharmony_ci
96962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_UART */
97062306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD0                (0x0001)
97162306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD0                (0x0002)
97262306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS0                (0x0004)
97362306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS0                (0x0008)
97462306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1(x)             (((x)&0x0003)<<4)
97562306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1(x)             (((x)&0x0003)<<6)
97662306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1(x)             (((x)&0x0003)<<8)
97762306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1(x)             (((x)&0x0003)<<10)
97862306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1_GPIO           (0x0000)
97962306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1_SSI_BCLK       (0x0800)
98062306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1_ULPI_D7        (0x0400)
98162306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UCTS1_UCTS1          (0x0C00)
98262306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1_GPIO           (0x0000)
98362306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1_SSI_FS         (0x0200)
98462306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1_ULPI_D6        (0x0100)
98562306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URTS1_URTS1          (0x0300)
98662306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1_GPIO           (0x0000)
98762306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1_SSI_RXD        (0x0080)
98862306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1_ULPI_D5        (0x0040)
98962306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_URXD1_URXD1          (0x00C0)
99062306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1_GPIO           (0x0000)
99162306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1_SSI_TXD        (0x0020)
99262306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1_ULPI_D4        (0x0010)
99362306a36Sopenharmony_ci#define MCF_GPIO_PAR_UART_PAR_UTXD1_UTXD1          (0x0030)
99462306a36Sopenharmony_ci
99562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_QSPI */
99662306a36Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_SCK(x)               (((x)&0x0003)<<4)
99762306a36Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_DOUT(x)              (((x)&0x0003)<<6)
99862306a36Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_DIN(x)               (((x)&0x0003)<<8)
99962306a36Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_PCS0(x)              (((x)&0x0003)<<10)
100062306a36Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_PCS1(x)              (((x)&0x0003)<<12)
100162306a36Sopenharmony_ci#define MCF_GPIO_PAR_QSPI_PAR_PCS2(x)              (((x)&0x0003)<<14)
100262306a36Sopenharmony_ci
100362306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_TIMER */
100462306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0(x)             (((x)&0x03)<<0)
100562306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1(x)             (((x)&0x03)<<2)
100662306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2(x)             (((x)&0x03)<<4)
100762306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3(x)             (((x)&0x03)<<6)
100862306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3_GPIO           (0x00)
100962306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3_TOUT3          (0x80)
101062306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3_URXD2          (0x40)
101162306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN3_TIN3           (0xC0)
101262306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2_GPIO           (0x00)
101362306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2_TOUT2          (0x20)
101462306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2_UTXD2          (0x10)
101562306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN2_TIN2           (0x30)
101662306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1_GPIO           (0x00)
101762306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1_TOUT1          (0x08)
101862306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1_DACK1          (0x04)
101962306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN1_TIN1           (0x0C)
102062306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0_GPIO           (0x00)
102162306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0_TOUT0          (0x02)
102262306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0_DREQ0          (0x01)
102362306a36Sopenharmony_ci#define MCF_GPIO_PAR_TIMER_PAR_TIN0_TIN0           (0x03)
102462306a36Sopenharmony_ci
102562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_LCDDATA */
102662306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDDATA_PAR_LD7_0(x)          (((x)&0x03)<<0)
102762306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDDATA_PAR_LD15_8(x)         (((x)&0x03)<<2)
102862306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDDATA_PAR_LD16(x)           (((x)&0x03)<<4)
102962306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDDATA_PAR_LD17(x)           (((x)&0x03)<<6)
103062306a36Sopenharmony_ci
103162306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_LCDCTL */
103262306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_CLS                (0x0001)
103362306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_PS                 (0x0002)
103462306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_REV                (0x0004)
103562306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_SPL_SPR            (0x0008)
103662306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_CONTRAST           (0x0010)
103762306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_LSCLK              (0x0020)
103862306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_LP_HSYNC           (0x0040)
103962306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_FLM_VSYNC          (0x0080)
104062306a36Sopenharmony_ci#define MCF_GPIO_PAR_LCDCTL_PAR_ACD_OE             (0x0100)
104162306a36Sopenharmony_ci
104262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_PAR_IRQ */
104362306a36Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ1(x)               (((x)&0x0003)<<4)
104462306a36Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ2(x)               (((x)&0x0003)<<6)
104562306a36Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ4(x)               (((x)&0x0003)<<8)
104662306a36Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ5(x)               (((x)&0x0003)<<10)
104762306a36Sopenharmony_ci#define MCF_GPIO_PAR_IRQ_PAR_IRQ6(x)               (((x)&0x0003)<<12)
104862306a36Sopenharmony_ci
104962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_MSCR_FLEXBUS */
105062306a36Sopenharmony_ci#define MCF_GPIO_MSCR_FLEXBUS_MSCR_ADDRCTL(x)      (((x)&0x03)<<0)
105162306a36Sopenharmony_ci#define MCF_GPIO_MSCR_FLEXBUS_MSCR_DLOWER(x)       (((x)&0x03)<<2)
105262306a36Sopenharmony_ci#define MCF_GPIO_MSCR_FLEXBUS_MSCR_DUPPER(x)       (((x)&0x03)<<4)
105362306a36Sopenharmony_ci
105462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_MSCR_SDRAM */
105562306a36Sopenharmony_ci#define MCF_GPIO_MSCR_SDRAM_MSCR_SDRAM(x)          (((x)&0x03)<<0)
105662306a36Sopenharmony_ci#define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLK(x)          (((x)&0x03)<<2)
105762306a36Sopenharmony_ci#define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLKB(x)         (((x)&0x03)<<4)
105862306a36Sopenharmony_ci
105962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_I2C */
106062306a36Sopenharmony_ci#define MCF_GPIO_DSCR_I2C_I2C_DSE(x)               (((x)&0x03)<<0)
106162306a36Sopenharmony_ci
106262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_PWM */
106362306a36Sopenharmony_ci#define MCF_GPIO_DSCR_PWM_PWM_DSE(x)               (((x)&0x03)<<0)
106462306a36Sopenharmony_ci
106562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_FEC */
106662306a36Sopenharmony_ci#define MCF_GPIO_DSCR_FEC_FEC_DSE(x)               (((x)&0x03)<<0)
106762306a36Sopenharmony_ci
106862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_UART */
106962306a36Sopenharmony_ci#define MCF_GPIO_DSCR_UART_UART0_DSE(x)            (((x)&0x03)<<0)
107062306a36Sopenharmony_ci#define MCF_GPIO_DSCR_UART_UART1_DSE(x)            (((x)&0x03)<<2)
107162306a36Sopenharmony_ci
107262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_QSPI */
107362306a36Sopenharmony_ci#define MCF_GPIO_DSCR_QSPI_QSPI_DSE(x)             (((x)&0x03)<<0)
107462306a36Sopenharmony_ci
107562306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_TIMER */
107662306a36Sopenharmony_ci#define MCF_GPIO_DSCR_TIMER_TIMER_DSE(x)           (((x)&0x03)<<0)
107762306a36Sopenharmony_ci
107862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_SSI */
107962306a36Sopenharmony_ci#define MCF_GPIO_DSCR_SSI_SSI_DSE(x)               (((x)&0x03)<<0)
108062306a36Sopenharmony_ci
108162306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_LCD */
108262306a36Sopenharmony_ci#define MCF_GPIO_DSCR_LCD_LCD_DSE(x)               (((x)&0x03)<<0)
108362306a36Sopenharmony_ci
108462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_DEBUG */
108562306a36Sopenharmony_ci#define MCF_GPIO_DSCR_DEBUG_DEBUG_DSE(x)           (((x)&0x03)<<0)
108662306a36Sopenharmony_ci
108762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_CLKRST */
108862306a36Sopenharmony_ci#define MCF_GPIO_DSCR_CLKRST_CLKRST_DSE(x)         (((x)&0x03)<<0)
108962306a36Sopenharmony_ci
109062306a36Sopenharmony_ci/* Bit definitions and macros for MCF_GPIO_DSCR_IRQ */
109162306a36Sopenharmony_ci#define MCF_GPIO_DSCR_IRQ_IRQ_DSE(x)               (((x)&0x03)<<0)
109262306a36Sopenharmony_ci
109362306a36Sopenharmony_ci/*
109462306a36Sopenharmony_ci * Generic GPIO support
109562306a36Sopenharmony_ci */
109662306a36Sopenharmony_ci#define MCFGPIO_PODR			MCFGPIO_PODR_FECH
109762306a36Sopenharmony_ci#define MCFGPIO_PDDR			MCFGPIO_PDDR_FECH
109862306a36Sopenharmony_ci#define MCFGPIO_PPDR			MCFGPIO_PPDSDR_FECH
109962306a36Sopenharmony_ci#define MCFGPIO_SETR			MCFGPIO_PPDSDR_FECH
110062306a36Sopenharmony_ci#define MCFGPIO_CLRR			MCFGPIO_PCLRR_FECH
110162306a36Sopenharmony_ci
110262306a36Sopenharmony_ci#define MCFGPIO_PIN_MAX			136
110362306a36Sopenharmony_ci#define MCFGPIO_IRQ_MAX			8
110462306a36Sopenharmony_ci#define MCFGPIO_IRQ_VECBASE		MCFINT_VECBASE
110562306a36Sopenharmony_ci
110662306a36Sopenharmony_ci/*********************************************************************
110762306a36Sopenharmony_ci *
110862306a36Sopenharmony_ci * Phase Locked Loop (PLL)
110962306a36Sopenharmony_ci *
111062306a36Sopenharmony_ci *********************************************************************/
111162306a36Sopenharmony_ci
111262306a36Sopenharmony_ci/* Register read/write macros */
111362306a36Sopenharmony_ci#define MCF_PLL_PODR              0xFC0C0000
111462306a36Sopenharmony_ci#define MCF_PLL_PLLCR             0xFC0C0004
111562306a36Sopenharmony_ci#define MCF_PLL_PMDR              0xFC0C0008
111662306a36Sopenharmony_ci#define MCF_PLL_PFDR              0xFC0C000C
111762306a36Sopenharmony_ci
111862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_PLL_PODR */
111962306a36Sopenharmony_ci#define MCF_PLL_PODR_BUSDIV(x)    (((x)&0x0F)<<0)
112062306a36Sopenharmony_ci#define MCF_PLL_PODR_CPUDIV(x)    (((x)&0x0F)<<4)
112162306a36Sopenharmony_ci
112262306a36Sopenharmony_ci/* Bit definitions and macros for MCF_PLL_PLLCR */
112362306a36Sopenharmony_ci#define MCF_PLL_PLLCR_DITHDEV(x)  (((x)&0x07)<<0)
112462306a36Sopenharmony_ci#define MCF_PLL_PLLCR_DITHEN      (0x80)
112562306a36Sopenharmony_ci
112662306a36Sopenharmony_ci/* Bit definitions and macros for MCF_PLL_PMDR */
112762306a36Sopenharmony_ci#define MCF_PLL_PMDR_MODDIV(x)    (((x)&0xFF)<<0)
112862306a36Sopenharmony_ci
112962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_PLL_PFDR */
113062306a36Sopenharmony_ci#define MCF_PLL_PFDR_MFD(x)       (((x)&0xFF)<<0)
113162306a36Sopenharmony_ci
113262306a36Sopenharmony_ci/*********************************************************************
113362306a36Sopenharmony_ci *
113462306a36Sopenharmony_ci * System Control Module Registers (SCM)
113562306a36Sopenharmony_ci *
113662306a36Sopenharmony_ci *********************************************************************/
113762306a36Sopenharmony_ci
113862306a36Sopenharmony_ci/* Register read/write macros */
113962306a36Sopenharmony_ci#define MCF_SCM_MPR			0xFC000000
114062306a36Sopenharmony_ci#define MCF_SCM_PACRA			0xFC000020
114162306a36Sopenharmony_ci#define MCF_SCM_PACRB			0xFC000024
114262306a36Sopenharmony_ci#define MCF_SCM_PACRC			0xFC000028
114362306a36Sopenharmony_ci#define MCF_SCM_PACRD			0xFC00002C
114462306a36Sopenharmony_ci#define MCF_SCM_PACRE			0xFC000040
114562306a36Sopenharmony_ci#define MCF_SCM_PACRF			0xFC000044
114662306a36Sopenharmony_ci
114762306a36Sopenharmony_ci#define MCF_SCM_BCR			0xFC040024
114862306a36Sopenharmony_ci
114962306a36Sopenharmony_ci/*********************************************************************
115062306a36Sopenharmony_ci *
115162306a36Sopenharmony_ci * SDRAM Controller (SDRAMC)
115262306a36Sopenharmony_ci *
115362306a36Sopenharmony_ci *********************************************************************/
115462306a36Sopenharmony_ci
115562306a36Sopenharmony_ci/* Register read/write macros */
115662306a36Sopenharmony_ci#define MCF_SDRAMC_SDMR			0xFC0B8000
115762306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR			0xFC0B8004
115862306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG1		0xFC0B8008
115962306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG2		0xFC0B800C
116062306a36Sopenharmony_ci#define MCF_SDRAMC_LIMP_FIX		0xFC0B8080
116162306a36Sopenharmony_ci#define MCF_SDRAMC_SDDS			0xFC0B8100
116262306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS0		0xFC0B8110
116362306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS1		0xFC0B8114
116462306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS2		0xFC0B8118
116562306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS3		0xFC0B811C
116662306a36Sopenharmony_ci
116762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDMR */
116862306a36Sopenharmony_ci#define MCF_SDRAMC_SDMR_CMD		(0x00010000)
116962306a36Sopenharmony_ci#define MCF_SDRAMC_SDMR_AD(x)		(((x)&0x00000FFF)<<18)
117062306a36Sopenharmony_ci#define MCF_SDRAMC_SDMR_BNKAD(x)	(((x)&0x00000003)<<30)
117162306a36Sopenharmony_ci#define MCF_SDRAMC_SDMR_BNKAD_LMR	(0x00000000)
117262306a36Sopenharmony_ci#define MCF_SDRAMC_SDMR_BNKAD_LEMR	(0x40000000)
117362306a36Sopenharmony_ci
117462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDCR */
117562306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_IPALL		(0x00000002)
117662306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_IREF		(0x00000004)
117762306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_DQS_OE(x)	(((x)&0x0000000F)<<8)
117862306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_PS(x)		(((x)&0x00000003)<<12)
117962306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_RCNT(x)		(((x)&0x0000003F)<<16)
118062306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_OE_RULE		(0x00400000)
118162306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_MUX(x)		(((x)&0x00000003)<<24)
118262306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_REF		(0x10000000)
118362306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_DDR		(0x20000000)
118462306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_CKE		(0x40000000)
118562306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_MODE_EN		(0x80000000)
118662306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_PS_16		(0x00002000)
118762306a36Sopenharmony_ci#define MCF_SDRAMC_SDCR_PS_32		(0x00000000)
118862306a36Sopenharmony_ci
118962306a36Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDCFG1 */
119062306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_WTLAT(x)	(((x)&0x00000007)<<4)
119162306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_REF2ACT(x)	(((x)&0x0000000F)<<8)
119262306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_PRE2ACT(x)	(((x)&0x00000007)<<12)
119362306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_ACT2RW(x)	(((x)&0x00000007)<<16)
119462306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_RDLAT(x)	(((x)&0x0000000F)<<20)
119562306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_SWT2RD(x)	(((x)&0x00000007)<<24)
119662306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG1_SRD2RW(x)	(((x)&0x0000000F)<<28)
119762306a36Sopenharmony_ci
119862306a36Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDCFG2 */
119962306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG2_BL(x)		(((x)&0x0000000F)<<16)
120062306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG2_BRD2WT(x)	(((x)&0x0000000F)<<20)
120162306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG2_BWT2RW(x)	(((x)&0x0000000F)<<24)
120262306a36Sopenharmony_ci#define MCF_SDRAMC_SDCFG2_BRD2PRE(x)	(((x)&0x0000000F)<<28)
120362306a36Sopenharmony_ci
120462306a36Sopenharmony_ci/* Device Errata - LIMP mode work around */
120562306a36Sopenharmony_ci#define MCF_SDRAMC_REFRESH		(0x40000000)
120662306a36Sopenharmony_ci
120762306a36Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDDS */
120862306a36Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_D(x)		(((x)&0x00000003)<<0)
120962306a36Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_S(x)		(((x)&0x00000003)<<2)
121062306a36Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_A(x)		(((x)&0x00000003)<<4)
121162306a36Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_C(x)		(((x)&0x00000003)<<6)
121262306a36Sopenharmony_ci#define MCF_SDRAMC_SDDS_SB_E(x)		(((x)&0x00000003)<<8)
121362306a36Sopenharmony_ci
121462306a36Sopenharmony_ci/* Bit definitions and macros for MCF_SDRAMC_SDCS */
121562306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ(x)		(((x)&0x0000001F)<<0)
121662306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_BASE(x)		(((x)&0x00000FFF)<<20)
121762306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_BA(x)		((x)&0xFFF00000)
121862306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_DIABLE	(0x00000000)
121962306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_1MBYTE	(0x00000013)
122062306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_2MBYTE	(0x00000014)
122162306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_4MBYTE	(0x00000015)
122262306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_8MBYTE	(0x00000016)
122362306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_16MBYTE	(0x00000017)
122462306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_32MBYTE	(0x00000018)
122562306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_64MBYTE	(0x00000019)
122662306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_128MBYTE	(0x0000001A)
122762306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_256MBYTE	(0x0000001B)
122862306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_512MBYTE	(0x0000001C)
122962306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_1GBYTE	(0x0000001D)
123062306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_2GBYTE	(0x0000001E)
123162306a36Sopenharmony_ci#define MCF_SDRAMC_SDCS_CSSZ_4GBYTE	(0x0000001F)
123262306a36Sopenharmony_ci
123362306a36Sopenharmony_ci/*
123462306a36Sopenharmony_ci * Edge Port Module (EPORT)
123562306a36Sopenharmony_ci */
123662306a36Sopenharmony_ci#define MCFEPORT_EPPAR                (0xFC094000)
123762306a36Sopenharmony_ci#define MCFEPORT_EPDDR                (0xFC094002)
123862306a36Sopenharmony_ci#define MCFEPORT_EPIER                (0xFC094003)
123962306a36Sopenharmony_ci#define MCFEPORT_EPDR                 (0xFC094004)
124062306a36Sopenharmony_ci#define MCFEPORT_EPPDR                (0xFC094005)
124162306a36Sopenharmony_ci#define MCFEPORT_EPFR                 (0xFC094006)
124262306a36Sopenharmony_ci
124362306a36Sopenharmony_ci/*
124462306a36Sopenharmony_ci * I2C Module
124562306a36Sopenharmony_ci */
124662306a36Sopenharmony_ci#define	MCFI2C_BASE0			(0xFc058000)
124762306a36Sopenharmony_ci#define	MCFI2C_SIZE0			0x40
124862306a36Sopenharmony_ci
124962306a36Sopenharmony_ci/********************************************************************/
125062306a36Sopenharmony_ci#endif	/* m53xxsim_h */
1251