/* SPDX-License-Identifier: GPL-2.0 */
/*
* m54xxsim.h -- ColdFire 547x/548x System Integration Unit support.
*/
#ifndef m54xxsim_h
#define m54xxsim_h
#define CPU_NAME "COLDFIRE(m54xx)"
#define CPU_INSTR_PER_JIFFY 2
#define MCF_BUSCLK (MCF_CLK / 2 )
#define MACHINE MACH_M54XX
#define FPUTYPE FPU_COLDFIRE
#define IOMEMBASE MCF_MBAR
#define IOMEMSIZE 0 x01000000
#include <asm /m54xxacr.h>
#define MCFINT_VECBASE 64
/*
* Interrupt Controller Registers
*/
#define MCFICM_INTC0 (MCF_MBAR + 0 x700) /* Base for Interrupt Ctrl 0 */
#define MCFINTC_IPRH 0 x00 /* Interrupt pending 32-63 */
#define MCFINTC_IPRL 0 x04 /* Interrupt pending 1-31 */
#define MCFINTC_IMRH 0 x08 /* Interrupt mask 32-63 */
#define MCFINTC_IMRL 0 x0c /* Interrupt mask 1-31 */
#define MCFINTC_INTFRCH 0 x10 /* Interrupt force 32-63 */
#define MCFINTC_INTFRCL 0 x14 /* Interrupt force 1-31 */
#define MCFINTC_IRLR 0 x18 /* */
#define MCFINTC_IACKL 0 x19 /* */
#define MCFINTC_ICR0 0 x40 /* Base ICR register */
/*
* UART module.
*/
#define MCFUART_BASE0 (MCF_MBAR + 0 x8600) /* Base address UART0 */
#define MCFUART_BASE1 (MCF_MBAR + 0 x8700) /* Base address UART1 */
#define MCFUART_BASE2 (MCF_MBAR + 0 x8800) /* Base address UART2 */
#define MCFUART_BASE3 (MCF_MBAR + 0 x8900) /* Base address UART3 */
/*
* Define system peripheral IRQ usage.
*/
#define MCF_IRQ_TIMER (MCFINT_VECBASE + 54 ) /* Slice Timer 0 */
#define MCF_IRQ_PROFILER (MCFINT_VECBASE + 53 ) /* Slice Timer 1 */
#define MCF_IRQ_I2C0 (MCFINT_VECBASE + 40 )
#define MCF_IRQ_UART0 (MCFINT_VECBASE + 35 )
#define MCF_IRQ_UART1 (MCFINT_VECBASE + 34 )
#define MCF_IRQ_UART2 (MCFINT_VECBASE + 33 )
#define MCF_IRQ_UART3 (MCFINT_VECBASE + 32 )
/*
* Slice Timer support.
*/
#define MCFSLT_TIMER0 (MCF_MBAR + 0 x900) /* Base addr TIMER0 */
#define MCFSLT_TIMER1 (MCF_MBAR + 0 x910) /* Base addr TIMER1 */
/*
* Generic GPIO support
*/
#define MCFGPIO_PODR (MCF_MBAR + 0 xA00)
#define MCFGPIO_PDDR (MCF_MBAR + 0 xA10)
#define MCFGPIO_PPDR (MCF_MBAR + 0 xA20)
#define MCFGPIO_SETR (MCF_MBAR + 0 xA20)
#define MCFGPIO_CLRR (MCF_MBAR + 0 xA30)
#define MCFGPIO_PIN_MAX 136 /* 128 gpio + 8 eport */
#define MCFGPIO_IRQ_MAX 8
#define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE
/*
* EDGE Port support.
*/
#define MCFEPORT_EPPAR (MCF_MBAR + 0 xf00) /* Pin assignment */
#define MCFEPORT_EPDDR (MCF_MBAR + 0 xf04) /* Data direction */
#define MCFEPORT_EPIER (MCF_MBAR + 0 xf05) /* Interrupt enable */
#define MCFEPORT_EPDR (MCF_MBAR + 0 xf08) /* Port data (w) */
#define MCFEPORT_EPPDR (MCF_MBAR + 0 xf09) /* Port data (r) */
#define MCFEPORT_EPFR (MCF_MBAR + 0 xf0c) /* Flags */
/*
* Pin Assignment register definitions
*/
#define MCFGPIO_PAR_FBCTL (MCF_MBAR + 0 xA40)
#define MCFGPIO_PAR_FBCS (MCF_MBAR + 0 xA42)
#define MCFGPIO_PAR_DMA (MCF_MBAR + 0 xA43)
#define MCFGPIO_PAR_FECI2CIRQ (MCF_MBAR + 0 xA44)
#define MCFGPIO_PAR_PCIBG (MCF_MBAR + 0 xA48) /* PCI bus grant */
#define MCFGPIO_PAR_PCIBR (MCF_MBAR + 0 xA4A) /* PCI */
#define MCFGPIO_PAR_PSC0 (MCF_MBAR + 0 xA4F)
#define MCFGPIO_PAR_PSC1 (MCF_MBAR + 0 xA4E)
#define MCFGPIO_PAR_PSC2 (MCF_MBAR + 0 xA4D)
#define MCFGPIO_PAR_PSC3 (MCF_MBAR + 0 xA4C)
#define MCFGPIO_PAR_DSPI (MCF_MBAR + 0 xA50)
#define MCFGPIO_PAR_TIMER (MCF_MBAR + 0 xA52)
#define MCF_PAR_SDA (0 x0008)
#define MCF_PAR_SCL (0 x0004)
#define MCF_PAR_PSC_TXD (0 x04)
#define MCF_PAR_PSC_RXD (0 x08)
#define MCF_PAR_PSC_CTS_GPIO (0 x00)
#define MCF_PAR_PSC_CTS_BCLK (0 x80)
#define MCF_PAR_PSC_CTS_CTS (0 xC0)
#define MCF_PAR_PSC_RTS_GPIO (0 x00)
#define MCF_PAR_PSC_RTS_FSYNC (0 x20)
#define MCF_PAR_PSC_RTS_RTS (0 x30)
#define MCF_PAR_PSC_CANRX (0 x40)
#define MCF_PAR_FECI2CIRQ (MCF_MBAR + 0 x00000a44) /* FEC/I2C/IRQ */
#define MCF_PAR_FECI2CIRQ_SDA (1 << 3 )
#define MCF_PAR_FECI2CIRQ_SCL (1 << 2 )
/*
* I2C module.
*/
#define MCFI2C_BASE0 (MCF_MBAR + 0 x8f00)
#define MCFI2C_SIZE0 0 x40
#endif /* m54xxsim_h */
Messung V0.5 in Prozent C=92 H=89 G=90
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland