18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/****************************************************************************/ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci/* 58c2ecf20Sopenharmony_ci * m528xsim.h -- ColdFire 5280/5282 System Integration Module support. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * (C) Copyright 2003, Greg Ungerer (gerg@snapgear.com) 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/****************************************************************************/ 118c2ecf20Sopenharmony_ci#ifndef m528xsim_h 128c2ecf20Sopenharmony_ci#define m528xsim_h 138c2ecf20Sopenharmony_ci/****************************************************************************/ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define CPU_NAME "COLDFIRE(m528x)" 168c2ecf20Sopenharmony_ci#define CPU_INSTR_PER_JIFFY 3 178c2ecf20Sopenharmony_ci#define MCF_BUSCLK MCF_CLK 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#include <asm/m52xxacr.h> 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* 228c2ecf20Sopenharmony_ci * Define the 5280/5282 SIM register set addresses. 238c2ecf20Sopenharmony_ci */ 248c2ecf20Sopenharmony_ci#define MCFICM_INTC0 (MCF_IPSBAR + 0x0c00) /* Base for Interrupt Ctrl 0 */ 258c2ecf20Sopenharmony_ci#define MCFICM_INTC1 (MCF_IPSBAR + 0x0d00) /* Base for Interrupt Ctrl 0 */ 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#define MCFINTC_IPRH 0x00 /* Interrupt pending 32-63 */ 288c2ecf20Sopenharmony_ci#define MCFINTC_IPRL 0x04 /* Interrupt pending 1-31 */ 298c2ecf20Sopenharmony_ci#define MCFINTC_IMRH 0x08 /* Interrupt mask 32-63 */ 308c2ecf20Sopenharmony_ci#define MCFINTC_IMRL 0x0c /* Interrupt mask 1-31 */ 318c2ecf20Sopenharmony_ci#define MCFINTC_INTFRCH 0x10 /* Interrupt force 32-63 */ 328c2ecf20Sopenharmony_ci#define MCFINTC_INTFRCL 0x14 /* Interrupt force 1-31 */ 338c2ecf20Sopenharmony_ci#define MCFINTC_IRLR 0x18 /* */ 348c2ecf20Sopenharmony_ci#define MCFINTC_IACKL 0x19 /* */ 358c2ecf20Sopenharmony_ci#define MCFINTC_ICR0 0x40 /* Base ICR register */ 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci#define MCFINT_VECBASE 64 /* Vector base number */ 388c2ecf20Sopenharmony_ci#define MCFINT_UART0 13 /* Interrupt number for UART0 */ 398c2ecf20Sopenharmony_ci#define MCFINT_UART1 14 /* Interrupt number for UART1 */ 408c2ecf20Sopenharmony_ci#define MCFINT_UART2 15 /* Interrupt number for UART2 */ 418c2ecf20Sopenharmony_ci#define MCFINT_I2C0 17 /* Interrupt number for I2C */ 428c2ecf20Sopenharmony_ci#define MCFINT_QSPI 18 /* Interrupt number for QSPI */ 438c2ecf20Sopenharmony_ci#define MCFINT_FECRX0 23 /* Interrupt number for FEC */ 448c2ecf20Sopenharmony_ci#define MCFINT_FECTX0 27 /* Interrupt number for FEC */ 458c2ecf20Sopenharmony_ci#define MCFINT_FECENTC0 29 /* Interrupt number for FEC */ 468c2ecf20Sopenharmony_ci#define MCFINT_PIT1 55 /* Interrupt number for PIT1 */ 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci#define MCF_IRQ_UART0 (MCFINT_VECBASE + MCFINT_UART0) 498c2ecf20Sopenharmony_ci#define MCF_IRQ_UART1 (MCFINT_VECBASE + MCFINT_UART1) 508c2ecf20Sopenharmony_ci#define MCF_IRQ_UART2 (MCFINT_VECBASE + MCFINT_UART2) 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#define MCF_IRQ_FECRX0 (MCFINT_VECBASE + MCFINT_FECRX0) 538c2ecf20Sopenharmony_ci#define MCF_IRQ_FECTX0 (MCFINT_VECBASE + MCFINT_FECTX0) 548c2ecf20Sopenharmony_ci#define MCF_IRQ_FECENTC0 (MCFINT_VECBASE + MCFINT_FECENTC0) 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci#define MCF_IRQ_QSPI (MCFINT_VECBASE + MCFINT_QSPI) 578c2ecf20Sopenharmony_ci#define MCF_IRQ_PIT1 (MCFINT_VECBASE + MCFINT_PIT1) 588c2ecf20Sopenharmony_ci#define MCF_IRQ_I2C0 (MCFINT_VECBASE + MCFINT_I2C0) 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci/* 618c2ecf20Sopenharmony_ci * SDRAM configuration registers. 628c2ecf20Sopenharmony_ci */ 638c2ecf20Sopenharmony_ci#define MCFSIM_DCR (MCF_IPSBAR + 0x00000044) /* Control */ 648c2ecf20Sopenharmony_ci#define MCFSIM_DACR0 (MCF_IPSBAR + 0x00000048) /* Base address 0 */ 658c2ecf20Sopenharmony_ci#define MCFSIM_DMR0 (MCF_IPSBAR + 0x0000004c) /* Address mask 0 */ 668c2ecf20Sopenharmony_ci#define MCFSIM_DACR1 (MCF_IPSBAR + 0x00000050) /* Base address 1 */ 678c2ecf20Sopenharmony_ci#define MCFSIM_DMR1 (MCF_IPSBAR + 0x00000054) /* Address mask 1 */ 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci/* 708c2ecf20Sopenharmony_ci * DMA unit base addresses. 718c2ecf20Sopenharmony_ci */ 728c2ecf20Sopenharmony_ci#define MCFDMA_BASE0 (MCF_IPSBAR + 0x00000100) 738c2ecf20Sopenharmony_ci#define MCFDMA_BASE1 (MCF_IPSBAR + 0x00000140) 748c2ecf20Sopenharmony_ci#define MCFDMA_BASE2 (MCF_IPSBAR + 0x00000180) 758c2ecf20Sopenharmony_ci#define MCFDMA_BASE3 (MCF_IPSBAR + 0x000001C0) 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci/* 788c2ecf20Sopenharmony_ci * UART module. 798c2ecf20Sopenharmony_ci */ 808c2ecf20Sopenharmony_ci#define MCFUART_BASE0 (MCF_IPSBAR + 0x00000200) 818c2ecf20Sopenharmony_ci#define MCFUART_BASE1 (MCF_IPSBAR + 0x00000240) 828c2ecf20Sopenharmony_ci#define MCFUART_BASE2 (MCF_IPSBAR + 0x00000280) 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci/* 858c2ecf20Sopenharmony_ci * FEC ethernet module. 868c2ecf20Sopenharmony_ci */ 878c2ecf20Sopenharmony_ci#define MCFFEC_BASE0 (MCF_IPSBAR + 0x00001000) 888c2ecf20Sopenharmony_ci#define MCFFEC_SIZE0 0x800 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci/* 918c2ecf20Sopenharmony_ci * QSPI module. 928c2ecf20Sopenharmony_ci */ 938c2ecf20Sopenharmony_ci#define MCFQSPI_BASE (MCF_IPSBAR + 0x340) 948c2ecf20Sopenharmony_ci#define MCFQSPI_SIZE 0x40 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci#define MCFQSPI_CS0 147 978c2ecf20Sopenharmony_ci#define MCFQSPI_CS1 148 988c2ecf20Sopenharmony_ci#define MCFQSPI_CS2 149 998c2ecf20Sopenharmony_ci#define MCFQSPI_CS3 150 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci/* 1028c2ecf20Sopenharmony_ci * GPIO registers 1038c2ecf20Sopenharmony_ci */ 1048c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_A (MCF_IPSBAR + 0x00100000) 1058c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_B (MCF_IPSBAR + 0x00100001) 1068c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_C (MCF_IPSBAR + 0x00100002) 1078c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_D (MCF_IPSBAR + 0x00100003) 1088c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_E (MCF_IPSBAR + 0x00100004) 1098c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_F (MCF_IPSBAR + 0x00100005) 1108c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_G (MCF_IPSBAR + 0x00100006) 1118c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_H (MCF_IPSBAR + 0x00100007) 1128c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_J (MCF_IPSBAR + 0x00100008) 1138c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_DD (MCF_IPSBAR + 0x00100009) 1148c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_EH (MCF_IPSBAR + 0x0010000A) 1158c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_EL (MCF_IPSBAR + 0x0010000B) 1168c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_AS (MCF_IPSBAR + 0x0010000C) 1178c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_QS (MCF_IPSBAR + 0x0010000D) 1188c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_SD (MCF_IPSBAR + 0x0010000E) 1198c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_TC (MCF_IPSBAR + 0x0010000F) 1208c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_TD (MCF_IPSBAR + 0x00100010) 1218c2ecf20Sopenharmony_ci#define MCFGPIO_PODR_UA (MCF_IPSBAR + 0x00100011) 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_A (MCF_IPSBAR + 0x00100014) 1248c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_B (MCF_IPSBAR + 0x00100015) 1258c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_C (MCF_IPSBAR + 0x00100016) 1268c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_D (MCF_IPSBAR + 0x00100017) 1278c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_E (MCF_IPSBAR + 0x00100018) 1288c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_F (MCF_IPSBAR + 0x00100019) 1298c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_G (MCF_IPSBAR + 0x0010001A) 1308c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_H (MCF_IPSBAR + 0x0010001B) 1318c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_J (MCF_IPSBAR + 0x0010001C) 1328c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_DD (MCF_IPSBAR + 0x0010001D) 1338c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_EH (MCF_IPSBAR + 0x0010001E) 1348c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_EL (MCF_IPSBAR + 0x0010001F) 1358c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_AS (MCF_IPSBAR + 0x00100020) 1368c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_QS (MCF_IPSBAR + 0x00100021) 1378c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_SD (MCF_IPSBAR + 0x00100022) 1388c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_TC (MCF_IPSBAR + 0x00100023) 1398c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_TD (MCF_IPSBAR + 0x00100024) 1408c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR_UA (MCF_IPSBAR + 0x00100025) 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_A (MCF_IPSBAR + 0x00100028) 1438c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_B (MCF_IPSBAR + 0x00100029) 1448c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_C (MCF_IPSBAR + 0x0010002A) 1458c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_D (MCF_IPSBAR + 0x0010002B) 1468c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_E (MCF_IPSBAR + 0x0010002C) 1478c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_F (MCF_IPSBAR + 0x0010002D) 1488c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_G (MCF_IPSBAR + 0x0010002E) 1498c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_H (MCF_IPSBAR + 0x0010002F) 1508c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_J (MCF_IPSBAR + 0x00100030) 1518c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_DD (MCF_IPSBAR + 0x00100031) 1528c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_EH (MCF_IPSBAR + 0x00100032) 1538c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_EL (MCF_IPSBAR + 0x00100033) 1548c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_AS (MCF_IPSBAR + 0x00100034) 1558c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_QS (MCF_IPSBAR + 0x00100035) 1568c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_SD (MCF_IPSBAR + 0x00100036) 1578c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_TC (MCF_IPSBAR + 0x00100037) 1588c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_TD (MCF_IPSBAR + 0x00100038) 1598c2ecf20Sopenharmony_ci#define MCFGPIO_PPDSDR_UA (MCF_IPSBAR + 0x00100039) 1608c2ecf20Sopenharmony_ci 1618c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_A (MCF_IPSBAR + 0x0010003C) 1628c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_B (MCF_IPSBAR + 0x0010003D) 1638c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_C (MCF_IPSBAR + 0x0010003E) 1648c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_D (MCF_IPSBAR + 0x0010003F) 1658c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_E (MCF_IPSBAR + 0x00100040) 1668c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_F (MCF_IPSBAR + 0x00100041) 1678c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_G (MCF_IPSBAR + 0x00100042) 1688c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_H (MCF_IPSBAR + 0x00100043) 1698c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_J (MCF_IPSBAR + 0x00100044) 1708c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_DD (MCF_IPSBAR + 0x00100045) 1718c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_EH (MCF_IPSBAR + 0x00100046) 1728c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_EL (MCF_IPSBAR + 0x00100047) 1738c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_AS (MCF_IPSBAR + 0x00100048) 1748c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_QS (MCF_IPSBAR + 0x00100049) 1758c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_SD (MCF_IPSBAR + 0x0010004A) 1768c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_TC (MCF_IPSBAR + 0x0010004B) 1778c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_TD (MCF_IPSBAR + 0x0010004C) 1788c2ecf20Sopenharmony_ci#define MCFGPIO_PCLRR_UA (MCF_IPSBAR + 0x0010004D) 1798c2ecf20Sopenharmony_ci 1808c2ecf20Sopenharmony_ci#define MCFGPIO_PBCDPAR (MCF_IPSBAR + 0x00100050) 1818c2ecf20Sopenharmony_ci#define MCFGPIO_PFPAR (MCF_IPSBAR + 0x00100051) 1828c2ecf20Sopenharmony_ci#define MCFGPIO_PEPAR (MCF_IPSBAR + 0x00100052) 1838c2ecf20Sopenharmony_ci#define MCFGPIO_PJPAR (MCF_IPSBAR + 0x00100054) 1848c2ecf20Sopenharmony_ci#define MCFGPIO_PSDPAR (MCF_IPSBAR + 0x00100055) 1858c2ecf20Sopenharmony_ci#define MCFGPIO_PASPAR (MCF_IPSBAR + 0x00100056) 1868c2ecf20Sopenharmony_ci#define MCFGPIO_PEHLPAR (MCF_IPSBAR + 0x00100058) 1878c2ecf20Sopenharmony_ci#define MCFGPIO_PQSPAR (MCF_IPSBAR + 0x00100059) 1888c2ecf20Sopenharmony_ci#define MCFGPIO_PTCPAR (MCF_IPSBAR + 0x0010005A) 1898c2ecf20Sopenharmony_ci#define MCFGPIO_PTDPAR (MCF_IPSBAR + 0x0010005B) 1908c2ecf20Sopenharmony_ci#define MCFGPIO_PUAPAR (MCF_IPSBAR + 0x0010005C) 1918c2ecf20Sopenharmony_ci 1928c2ecf20Sopenharmony_ci/* 1938c2ecf20Sopenharmony_ci * PIT timer base addresses. 1948c2ecf20Sopenharmony_ci */ 1958c2ecf20Sopenharmony_ci#define MCFPIT_BASE1 (MCF_IPSBAR + 0x00150000) 1968c2ecf20Sopenharmony_ci#define MCFPIT_BASE2 (MCF_IPSBAR + 0x00160000) 1978c2ecf20Sopenharmony_ci#define MCFPIT_BASE3 (MCF_IPSBAR + 0x00170000) 1988c2ecf20Sopenharmony_ci#define MCFPIT_BASE4 (MCF_IPSBAR + 0x00180000) 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ci/* 2018c2ecf20Sopenharmony_ci * Edge Port registers 2028c2ecf20Sopenharmony_ci */ 2038c2ecf20Sopenharmony_ci#define MCFEPORT_EPPAR (MCF_IPSBAR + 0x00130000) 2048c2ecf20Sopenharmony_ci#define MCFEPORT_EPDDR (MCF_IPSBAR + 0x00130002) 2058c2ecf20Sopenharmony_ci#define MCFEPORT_EPIER (MCF_IPSBAR + 0x00130003) 2068c2ecf20Sopenharmony_ci#define MCFEPORT_EPDR (MCF_IPSBAR + 0x00130004) 2078c2ecf20Sopenharmony_ci#define MCFEPORT_EPPDR (MCF_IPSBAR + 0x00130005) 2088c2ecf20Sopenharmony_ci#define MCFEPORT_EPFR (MCF_IPSBAR + 0x00130006) 2098c2ecf20Sopenharmony_ci 2108c2ecf20Sopenharmony_ci/* 2118c2ecf20Sopenharmony_ci * Queued ADC registers 2128c2ecf20Sopenharmony_ci */ 2138c2ecf20Sopenharmony_ci#define MCFQADC_PORTQA (MCF_IPSBAR + 0x00190006) 2148c2ecf20Sopenharmony_ci#define MCFQADC_PORTQB (MCF_IPSBAR + 0x00190007) 2158c2ecf20Sopenharmony_ci#define MCFQADC_DDRQA (MCF_IPSBAR + 0x00190008) 2168c2ecf20Sopenharmony_ci#define MCFQADC_DDRQB (MCF_IPSBAR + 0x00190009) 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci/* 2198c2ecf20Sopenharmony_ci * General Purpose Timers registers 2208c2ecf20Sopenharmony_ci */ 2218c2ecf20Sopenharmony_ci#define MCFGPTA_GPTPORT (MCF_IPSBAR + 0x001A001D) 2228c2ecf20Sopenharmony_ci#define MCFGPTA_GPTDDR (MCF_IPSBAR + 0x001A001E) 2238c2ecf20Sopenharmony_ci#define MCFGPTB_GPTPORT (MCF_IPSBAR + 0x001B001D) 2248c2ecf20Sopenharmony_ci#define MCFGPTB_GPTDDR (MCF_IPSBAR + 0x001B001E) 2258c2ecf20Sopenharmony_ci/* 2268c2ecf20Sopenharmony_ci * 2278c2ecf20Sopenharmony_ci * definitions for generic gpio support 2288c2ecf20Sopenharmony_ci * 2298c2ecf20Sopenharmony_ci */ 2308c2ecf20Sopenharmony_ci#define MCFGPIO_PODR MCFGPIO_PODR_A /* port output data */ 2318c2ecf20Sopenharmony_ci#define MCFGPIO_PDDR MCFGPIO_PDDR_A /* port data direction */ 2328c2ecf20Sopenharmony_ci#define MCFGPIO_PPDR MCFGPIO_PPDSDR_A/* port pin data */ 2338c2ecf20Sopenharmony_ci#define MCFGPIO_SETR MCFGPIO_PPDSDR_A/* set output */ 2348c2ecf20Sopenharmony_ci#define MCFGPIO_CLRR MCFGPIO_PCLRR_A /* clr output */ 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_ci#define MCFGPIO_IRQ_MAX 8 2378c2ecf20Sopenharmony_ci#define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE 2388c2ecf20Sopenharmony_ci#define MCFGPIO_PIN_MAX 180 2398c2ecf20Sopenharmony_ci 2408c2ecf20Sopenharmony_ci/* 2418c2ecf20Sopenharmony_ci * Reset Control Unit (relative to IPSBAR). 2428c2ecf20Sopenharmony_ci */ 2438c2ecf20Sopenharmony_ci#define MCF_RCR (MCF_IPSBAR + 0x110000) 2448c2ecf20Sopenharmony_ci#define MCF_RSR (MCF_IPSBAR + 0x110001) 2458c2ecf20Sopenharmony_ci 2468c2ecf20Sopenharmony_ci#define MCF_RCR_SWRESET 0x80 /* Software reset bit */ 2478c2ecf20Sopenharmony_ci#define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */ 2488c2ecf20Sopenharmony_ci 2498c2ecf20Sopenharmony_ci/* 2508c2ecf20Sopenharmony_ci * I2C module 2518c2ecf20Sopenharmony_ci */ 2528c2ecf20Sopenharmony_ci#define MCFI2C_BASE0 (MCF_IPSBAR + 0x300) 2538c2ecf20Sopenharmony_ci#define MCFI2C_SIZE0 0x40 2548c2ecf20Sopenharmony_ci 2558c2ecf20Sopenharmony_ci/****************************************************************************/ 2568c2ecf20Sopenharmony_ci#endif /* m528xsim_h */ 257