149148020SSam Ravnborg /****************************************************************************/ 249148020SSam Ravnborg 349148020SSam Ravnborg /* 449148020SSam Ravnborg * m528xsim.h -- ColdFire 5280/5282 System Integration Module support. 549148020SSam Ravnborg * 649148020SSam Ravnborg * (C) Copyright 2003, Greg Ungerer (gerg@snapgear.com) 749148020SSam Ravnborg */ 849148020SSam Ravnborg 949148020SSam Ravnborg /****************************************************************************/ 1049148020SSam Ravnborg #ifndef m528xsim_h 1149148020SSam Ravnborg #define m528xsim_h 1249148020SSam Ravnborg /****************************************************************************/ 1349148020SSam Ravnborg 147fc82b65SGreg Ungerer #define CPU_NAME "COLDFIRE(m528x)" 15733f31b7SGreg Ungerer #define CPU_INSTR_PER_JIFFY 3 1649148020SSam Ravnborg 1749148020SSam Ravnborg /* 1849148020SSam Ravnborg * Define the 5280/5282 SIM register set addresses. 1949148020SSam Ravnborg */ 2049148020SSam Ravnborg #define MCFICM_INTC0 0x0c00 /* Base for Interrupt Ctrl 0 */ 2149148020SSam Ravnborg #define MCFICM_INTC1 0x0d00 /* Base for Interrupt Ctrl 0 */ 2249148020SSam Ravnborg #define MCFINTC_IPRH 0x00 /* Interrupt pending 32-63 */ 2349148020SSam Ravnborg #define MCFINTC_IPRL 0x04 /* Interrupt pending 1-31 */ 2449148020SSam Ravnborg #define MCFINTC_IMRH 0x08 /* Interrupt mask 32-63 */ 2549148020SSam Ravnborg #define MCFINTC_IMRL 0x0c /* Interrupt mask 1-31 */ 2649148020SSam Ravnborg #define MCFINTC_INTFRCH 0x10 /* Interrupt force 32-63 */ 2749148020SSam Ravnborg #define MCFINTC_INTFRCL 0x14 /* Interrupt force 1-31 */ 2849148020SSam Ravnborg #define MCFINTC_IRLR 0x18 /* */ 2949148020SSam Ravnborg #define MCFINTC_IACKL 0x19 /* */ 3049148020SSam Ravnborg #define MCFINTC_ICR0 0x40 /* Base ICR register */ 3149148020SSam Ravnborg 3249148020SSam Ravnborg #define MCFINT_VECBASE 64 /* Vector base number */ 3349148020SSam Ravnborg #define MCFINT_UART0 13 /* Interrupt number for UART0 */ 3491d60417SSteven King #define MCFINT_QSPI 18 /* Interrupt number for QSPI */ 3549148020SSam Ravnborg #define MCFINT_PIT1 55 /* Interrupt number for PIT1 */ 3649148020SSam Ravnborg 3749148020SSam Ravnborg /* 3849148020SSam Ravnborg * SDRAM configuration registers. 3949148020SSam Ravnborg */ 4049148020SSam Ravnborg #define MCFSIM_DCR 0x44 /* SDRAM control */ 4149148020SSam Ravnborg #define MCFSIM_DACR0 0x48 /* SDRAM base address 0 */ 4249148020SSam Ravnborg #define MCFSIM_DMR0 0x4c /* SDRAM address mask 0 */ 4349148020SSam Ravnborg #define MCFSIM_DACR1 0x50 /* SDRAM base address 1 */ 4449148020SSam Ravnborg #define MCFSIM_DMR1 0x54 /* SDRAM address mask 1 */ 4549148020SSam Ravnborg 4649148020SSam Ravnborg /* 47*57015421SGreg Ungerer * UART module. 48*57015421SGreg Ungerer */ 49*57015421SGreg Ungerer #define MCFUART_BASE1 0x200 /* Base address of UART1 */ 50*57015421SGreg Ungerer #define MCFUART_BASE2 0x240 /* Base address of UART2 */ 51*57015421SGreg Ungerer #define MCFUART_BASE3 0x280 /* Base address of UART3 */ 52*57015421SGreg Ungerer 53*57015421SGreg Ungerer /* 546da6e63cSsfking@fdwdc.com * GPIO registers 556da6e63cSsfking@fdwdc.com */ 566da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTA (MCF_IPSBAR + 0x00100000) 576da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTB (MCF_IPSBAR + 0x00100001) 586da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTC (MCF_IPSBAR + 0x00100002) 596da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTD (MCF_IPSBAR + 0x00100003) 606da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTE (MCF_IPSBAR + 0x00100004) 616da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTF (MCF_IPSBAR + 0x00100005) 626da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTG (MCF_IPSBAR + 0x00100006) 636da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTH (MCF_IPSBAR + 0x00100007) 646da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTJ (MCF_IPSBAR + 0x00100008) 656da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTDD (MCF_IPSBAR + 0x00100009) 666da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTEH (MCF_IPSBAR + 0x0010000A) 676da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTEL (MCF_IPSBAR + 0x0010000B) 686da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTAS (MCF_IPSBAR + 0x0010000C) 696da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTQS (MCF_IPSBAR + 0x0010000D) 706da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTSD (MCF_IPSBAR + 0x0010000E) 716da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTTC (MCF_IPSBAR + 0x0010000F) 726da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTTD (MCF_IPSBAR + 0x00100010) 736da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTUA (MCF_IPSBAR + 0x00100011) 746da6e63cSsfking@fdwdc.com 756da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRA (MCF_IPSBAR + 0x00100014) 766da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRB (MCF_IPSBAR + 0x00100015) 776da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRC (MCF_IPSBAR + 0x00100016) 786da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRD (MCF_IPSBAR + 0x00100017) 796da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRE (MCF_IPSBAR + 0x00100018) 806da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRF (MCF_IPSBAR + 0x00100019) 816da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRG (MCF_IPSBAR + 0x0010001A) 826da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRH (MCF_IPSBAR + 0x0010001B) 836da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRJ (MCF_IPSBAR + 0x0010001C) 846da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRDD (MCF_IPSBAR + 0x0010001D) 856da6e63cSsfking@fdwdc.com #define MCFGPIO_DDREH (MCF_IPSBAR + 0x0010001E) 866da6e63cSsfking@fdwdc.com #define MCFGPIO_DDREL (MCF_IPSBAR + 0x0010001F) 876da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRAS (MCF_IPSBAR + 0x00100020) 886da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRQS (MCF_IPSBAR + 0x00100021) 896da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRSD (MCF_IPSBAR + 0x00100022) 906da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRTC (MCF_IPSBAR + 0x00100023) 916da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRTD (MCF_IPSBAR + 0x00100024) 926da6e63cSsfking@fdwdc.com #define MCFGPIO_DDRUA (MCF_IPSBAR + 0x00100025) 936da6e63cSsfking@fdwdc.com 946da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTAP (MCF_IPSBAR + 0x00100028) 956da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTBP (MCF_IPSBAR + 0x00100029) 966da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTCP (MCF_IPSBAR + 0x0010002A) 976da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTDP (MCF_IPSBAR + 0x0010002B) 986da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTEP (MCF_IPSBAR + 0x0010002C) 996da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTFP (MCF_IPSBAR + 0x0010002D) 1006da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTGP (MCF_IPSBAR + 0x0010002E) 1016da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTHP (MCF_IPSBAR + 0x0010002F) 1026da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTJP (MCF_IPSBAR + 0x00100030) 1036da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTDDP (MCF_IPSBAR + 0x00100031) 1046da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTEHP (MCF_IPSBAR + 0x00100032) 1056da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTELP (MCF_IPSBAR + 0x00100033) 1066da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTASP (MCF_IPSBAR + 0x00100034) 1076da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTQSP (MCF_IPSBAR + 0x00100035) 1086da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTSDP (MCF_IPSBAR + 0x00100036) 1096da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTTCP (MCF_IPSBAR + 0x00100037) 1106da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTTDP (MCF_IPSBAR + 0x00100038) 1116da6e63cSsfking@fdwdc.com #define MCFGPIO_PORTUAP (MCF_IPSBAR + 0x00100039) 1126da6e63cSsfking@fdwdc.com 1136da6e63cSsfking@fdwdc.com #define MCFGPIO_SETA (MCF_IPSBAR + 0x00100028) 1146da6e63cSsfking@fdwdc.com #define MCFGPIO_SETB (MCF_IPSBAR + 0x00100029) 1156da6e63cSsfking@fdwdc.com #define MCFGPIO_SETC (MCF_IPSBAR + 0x0010002A) 1166da6e63cSsfking@fdwdc.com #define MCFGPIO_SETD (MCF_IPSBAR + 0x0010002B) 1176da6e63cSsfking@fdwdc.com #define MCFGPIO_SETE (MCF_IPSBAR + 0x0010002C) 1186da6e63cSsfking@fdwdc.com #define MCFGPIO_SETF (MCF_IPSBAR + 0x0010002D) 1196da6e63cSsfking@fdwdc.com #define MCFGPIO_SETG (MCF_IPSBAR + 0x0010002E) 1206da6e63cSsfking@fdwdc.com #define MCFGPIO_SETH (MCF_IPSBAR + 0x0010002F) 1216da6e63cSsfking@fdwdc.com #define MCFGPIO_SETJ (MCF_IPSBAR + 0x00100030) 1226da6e63cSsfking@fdwdc.com #define MCFGPIO_SETDD (MCF_IPSBAR + 0x00100031) 1236da6e63cSsfking@fdwdc.com #define MCFGPIO_SETEH (MCF_IPSBAR + 0x00100032) 1246da6e63cSsfking@fdwdc.com #define MCFGPIO_SETEL (MCF_IPSBAR + 0x00100033) 1256da6e63cSsfking@fdwdc.com #define MCFGPIO_SETAS (MCF_IPSBAR + 0x00100034) 1266da6e63cSsfking@fdwdc.com #define MCFGPIO_SETQS (MCF_IPSBAR + 0x00100035) 1276da6e63cSsfking@fdwdc.com #define MCFGPIO_SETSD (MCF_IPSBAR + 0x00100036) 1286da6e63cSsfking@fdwdc.com #define MCFGPIO_SETTC (MCF_IPSBAR + 0x00100037) 1296da6e63cSsfking@fdwdc.com #define MCFGPIO_SETTD (MCF_IPSBAR + 0x00100038) 1306da6e63cSsfking@fdwdc.com #define MCFGPIO_SETUA (MCF_IPSBAR + 0x00100039) 1316da6e63cSsfking@fdwdc.com 1326da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRA (MCF_IPSBAR + 0x0010003C) 1336da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRB (MCF_IPSBAR + 0x0010003D) 1346da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRC (MCF_IPSBAR + 0x0010003E) 1356da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRD (MCF_IPSBAR + 0x0010003F) 1366da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRE (MCF_IPSBAR + 0x00100040) 1376da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRF (MCF_IPSBAR + 0x00100041) 1386da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRG (MCF_IPSBAR + 0x00100042) 1396da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRH (MCF_IPSBAR + 0x00100043) 1406da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRJ (MCF_IPSBAR + 0x00100044) 1416da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRDD (MCF_IPSBAR + 0x00100045) 1426da6e63cSsfking@fdwdc.com #define MCFGPIO_CLREH (MCF_IPSBAR + 0x00100046) 1436da6e63cSsfking@fdwdc.com #define MCFGPIO_CLREL (MCF_IPSBAR + 0x00100047) 1446da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRAS (MCF_IPSBAR + 0x00100048) 1456da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRQS (MCF_IPSBAR + 0x00100049) 1466da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRSD (MCF_IPSBAR + 0x0010004A) 1476da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRTC (MCF_IPSBAR + 0x0010004B) 1486da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRTD (MCF_IPSBAR + 0x0010004C) 1496da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRUA (MCF_IPSBAR + 0x0010004D) 1506da6e63cSsfking@fdwdc.com 1516da6e63cSsfking@fdwdc.com #define MCFGPIO_PBCDPAR (MCF_IPSBAR + 0x00100050) 1526da6e63cSsfking@fdwdc.com #define MCFGPIO_PFPAR (MCF_IPSBAR + 0x00100051) 1536da6e63cSsfking@fdwdc.com #define MCFGPIO_PEPAR (MCF_IPSBAR + 0x00100052) 1546da6e63cSsfking@fdwdc.com #define MCFGPIO_PJPAR (MCF_IPSBAR + 0x00100054) 1556da6e63cSsfking@fdwdc.com #define MCFGPIO_PSDPAR (MCF_IPSBAR + 0x00100055) 1566da6e63cSsfking@fdwdc.com #define MCFGPIO_PASPAR (MCF_IPSBAR + 0x00100056) 1576da6e63cSsfking@fdwdc.com #define MCFGPIO_PEHLPAR (MCF_IPSBAR + 0x00100058) 1586da6e63cSsfking@fdwdc.com #define MCFGPIO_PQSPAR (MCF_IPSBAR + 0x00100059) 1596da6e63cSsfking@fdwdc.com #define MCFGPIO_PTCPAR (MCF_IPSBAR + 0x0010005A) 1606da6e63cSsfking@fdwdc.com #define MCFGPIO_PTDPAR (MCF_IPSBAR + 0x0010005B) 1616da6e63cSsfking@fdwdc.com #define MCFGPIO_PUAPAR (MCF_IPSBAR + 0x0010005C) 1626da6e63cSsfking@fdwdc.com 1636da6e63cSsfking@fdwdc.com /* 1646da6e63cSsfking@fdwdc.com * Edge Port registers 1656da6e63cSsfking@fdwdc.com */ 1666da6e63cSsfking@fdwdc.com #define MCFEPORT_EPPAR (MCF_IPSBAR + 0x00130000) 1676da6e63cSsfking@fdwdc.com #define MCFEPORT_EPDDR (MCF_IPSBAR + 0x00130002) 1686da6e63cSsfking@fdwdc.com #define MCFEPORT_EPIER (MCF_IPSBAR + 0x00130003) 1696da6e63cSsfking@fdwdc.com #define MCFEPORT_EPDR (MCF_IPSBAR + 0x00130004) 1706da6e63cSsfking@fdwdc.com #define MCFEPORT_EPPDR (MCF_IPSBAR + 0x00130005) 1716da6e63cSsfking@fdwdc.com #define MCFEPORT_EPFR (MCF_IPSBAR + 0x00130006) 1726da6e63cSsfking@fdwdc.com 1736da6e63cSsfking@fdwdc.com /* 1746da6e63cSsfking@fdwdc.com * Queued ADC registers 1756da6e63cSsfking@fdwdc.com */ 1766da6e63cSsfking@fdwdc.com #define MCFQADC_PORTQA (MCF_IPSBAR + 0x00190006) 1776da6e63cSsfking@fdwdc.com #define MCFQADC_PORTQB (MCF_IPSBAR + 0x00190007) 1786da6e63cSsfking@fdwdc.com #define MCFQADC_DDRQA (MCF_IPSBAR + 0x00190008) 1796da6e63cSsfking@fdwdc.com #define MCFQADC_DDRQB (MCF_IPSBAR + 0x00190009) 1806da6e63cSsfking@fdwdc.com 1816da6e63cSsfking@fdwdc.com /* 1826da6e63cSsfking@fdwdc.com * General Purpose Timers registers 1836da6e63cSsfking@fdwdc.com */ 1846da6e63cSsfking@fdwdc.com #define MCFGPTA_GPTPORT (MCF_IPSBAR + 0x001A001D) 1856da6e63cSsfking@fdwdc.com #define MCFGPTA_GPTDDR (MCF_IPSBAR + 0x001A001E) 1866da6e63cSsfking@fdwdc.com #define MCFGPTB_GPTPORT (MCF_IPSBAR + 0x001B001D) 1876da6e63cSsfking@fdwdc.com #define MCFGPTB_GPTDDR (MCF_IPSBAR + 0x001B001E) 1886da6e63cSsfking@fdwdc.com /* 1896da6e63cSsfking@fdwdc.com * 1906da6e63cSsfking@fdwdc.com * definitions for generic gpio support 1916da6e63cSsfking@fdwdc.com * 1926da6e63cSsfking@fdwdc.com */ 1936da6e63cSsfking@fdwdc.com #define MCFGPIO_PODR MCFGPIO_PORTA /* port output data */ 1946da6e63cSsfking@fdwdc.com #define MCFGPIO_PDDR MCFGPIO_DDRA /* port data direction */ 1956da6e63cSsfking@fdwdc.com #define MCFGPIO_PPDR MCFGPIO_PORTAP /* port pin data */ 1966da6e63cSsfking@fdwdc.com #define MCFGPIO_SETR MCFGPIO_SETA /* set output */ 1976da6e63cSsfking@fdwdc.com #define MCFGPIO_CLRR MCFGPIO_CLRA /* clr output */ 1986da6e63cSsfking@fdwdc.com 1996da6e63cSsfking@fdwdc.com #define MCFGPIO_IRQ_MAX 8 2006da6e63cSsfking@fdwdc.com #define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE 2016da6e63cSsfking@fdwdc.com #define MCFGPIO_PIN_MAX 180 2026da6e63cSsfking@fdwdc.com 2036da6e63cSsfking@fdwdc.com 2046da6e63cSsfking@fdwdc.com /* 20549148020SSam Ravnborg * Derek Cheung - 6 Feb 2005 20649148020SSam Ravnborg * add I2C and QSPI register definition using Freescale's MCF5282 20749148020SSam Ravnborg */ 20849148020SSam Ravnborg /* set Port AS pin for I2C or UART */ 20949148020SSam Ravnborg #define MCF5282_GPIO_PASPAR (volatile u16 *) (MCF_IPSBAR + 0x00100056) 21049148020SSam Ravnborg 21149148020SSam Ravnborg /* Port UA Pin Assignment Register (8 Bit) */ 21249148020SSam Ravnborg #define MCF5282_GPIO_PUAPAR 0x10005C 21349148020SSam Ravnborg 21449148020SSam Ravnborg /* Interrupt Mask Register Register Low */ 21549148020SSam Ravnborg #define MCF5282_INTC0_IMRL (volatile u32 *) (MCF_IPSBAR + 0x0C0C) 21649148020SSam Ravnborg /* Interrupt Control Register 7 */ 21749148020SSam Ravnborg #define MCF5282_INTC0_ICR17 (volatile u8 *) (MCF_IPSBAR + 0x0C51) 21849148020SSam Ravnborg 21949148020SSam Ravnborg 220dd65b1deSGreg Ungerer /* 221dd65b1deSGreg Ungerer * Reset Control Unit (relative to IPSBAR). 222dd65b1deSGreg Ungerer */ 223dd65b1deSGreg Ungerer #define MCF_RCR 0x110000 224dd65b1deSGreg Ungerer #define MCF_RSR 0x110001 225dd65b1deSGreg Ungerer 226dd65b1deSGreg Ungerer #define MCF_RCR_SWRESET 0x80 /* Software reset bit */ 227dd65b1deSGreg Ungerer #define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */ 22849148020SSam Ravnborg 22949148020SSam Ravnborg /********************************************************************* 23049148020SSam Ravnborg * 23149148020SSam Ravnborg * Inter-IC (I2C) Module 23249148020SSam Ravnborg * 23349148020SSam Ravnborg *********************************************************************/ 23449148020SSam Ravnborg /* Read/Write access macros for general use */ 23549148020SSam Ravnborg #define MCF5282_I2C_I2ADR (volatile u8 *) (MCF_IPSBAR + 0x0300) // Address 23649148020SSam Ravnborg #define MCF5282_I2C_I2FDR (volatile u8 *) (MCF_IPSBAR + 0x0304) // Freq Divider 23749148020SSam Ravnborg #define MCF5282_I2C_I2CR (volatile u8 *) (MCF_IPSBAR + 0x0308) // Control 23849148020SSam Ravnborg #define MCF5282_I2C_I2SR (volatile u8 *) (MCF_IPSBAR + 0x030C) // Status 23949148020SSam Ravnborg #define MCF5282_I2C_I2DR (volatile u8 *) (MCF_IPSBAR + 0x0310) // Data I/O 24049148020SSam Ravnborg 24149148020SSam Ravnborg /* Bit level definitions and macros */ 24249148020SSam Ravnborg #define MCF5282_I2C_I2ADR_ADDR(x) (((x)&0x7F)<<0x01) 24349148020SSam Ravnborg 24449148020SSam Ravnborg #define MCF5282_I2C_I2FDR_IC(x) (((x)&0x3F)) 24549148020SSam Ravnborg 24649148020SSam Ravnborg #define MCF5282_I2C_I2CR_IEN (0x80) // I2C enable 24749148020SSam Ravnborg #define MCF5282_I2C_I2CR_IIEN (0x40) // interrupt enable 24849148020SSam Ravnborg #define MCF5282_I2C_I2CR_MSTA (0x20) // master/slave mode 24949148020SSam Ravnborg #define MCF5282_I2C_I2CR_MTX (0x10) // transmit/receive mode 25049148020SSam Ravnborg #define MCF5282_I2C_I2CR_TXAK (0x08) // transmit acknowledge enable 25149148020SSam Ravnborg #define MCF5282_I2C_I2CR_RSTA (0x04) // repeat start 25249148020SSam Ravnborg 25349148020SSam Ravnborg #define MCF5282_I2C_I2SR_ICF (0x80) // data transfer bit 25449148020SSam Ravnborg #define MCF5282_I2C_I2SR_IAAS (0x40) // I2C addressed as a slave 25549148020SSam Ravnborg #define MCF5282_I2C_I2SR_IBB (0x20) // I2C bus busy 25649148020SSam Ravnborg #define MCF5282_I2C_I2SR_IAL (0x10) // aribitration lost 25749148020SSam Ravnborg #define MCF5282_I2C_I2SR_SRW (0x04) // slave read/write 25849148020SSam Ravnborg #define MCF5282_I2C_I2SR_IIF (0x02) // I2C interrupt 25949148020SSam Ravnborg #define MCF5282_I2C_I2SR_RXAK (0x01) // received acknowledge 26049148020SSam Ravnborg 26149148020SSam Ravnborg 26249148020SSam Ravnborg #endif /* m528xsim_h */ 263