Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /****************************************************************************/ |
| 2 | |
| 3 | /* |
| 4 | * m5272sim.h -- ColdFire 5272 System Integration Module support. |
| 5 | * |
| 6 | * (C) Copyright 1999, Greg Ungerer (gerg@snapgear.com) |
| 7 | * (C) Copyright 2000, Lineo Inc. (www.lineo.com) |
| 8 | */ |
| 9 | |
| 10 | /****************************************************************************/ |
| 11 | #ifndef m5272sim_h |
| 12 | #define m5272sim_h |
| 13 | /****************************************************************************/ |
| 14 | |
Greg Ungerer | 733f31b | 2010-11-02 17:40:37 +1000 | [diff] [blame^] | 15 | #define CPU_NAME "COLDFIRE(m5272)" |
| 16 | #define CPU_INSTR_PER_JIFFY 3 |
Greg Ungerer | 7fc82b6 | 2010-11-02 17:13:27 +1000 | [diff] [blame] | 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | /* |
| 19 | * Define the 5272 SIM register set addresses. |
| 20 | */ |
| 21 | #define MCFSIM_SCR 0x04 /* SIM Config reg (r/w) */ |
| 22 | #define MCFSIM_SPR 0x06 /* System Protection reg (r/w)*/ |
| 23 | #define MCFSIM_PMR 0x08 /* Power Management reg (r/w) */ |
| 24 | #define MCFSIM_APMR 0x0e /* Active Low Power reg (r/w) */ |
| 25 | #define MCFSIM_DIR 0x10 /* Device Identity reg (r/w) */ |
| 26 | |
| 27 | #define MCFSIM_ICR1 0x20 /* Intr Ctrl reg 1 (r/w) */ |
| 28 | #define MCFSIM_ICR2 0x24 /* Intr Ctrl reg 2 (r/w) */ |
| 29 | #define MCFSIM_ICR3 0x28 /* Intr Ctrl reg 3 (r/w) */ |
| 30 | #define MCFSIM_ICR4 0x2c /* Intr Ctrl reg 4 (r/w) */ |
| 31 | |
| 32 | #define MCFSIM_ISR 0x30 /* Interrupt Source reg (r/w) */ |
| 33 | #define MCFSIM_PITR 0x34 /* Interrupt Transition (r/w) */ |
| 34 | #define MCFSIM_PIWR 0x38 /* Interrupt Wakeup reg (r/w) */ |
| 35 | #define MCFSIM_PIVR 0x3f /* Interrupt Vector reg (r/w( */ |
| 36 | |
| 37 | #define MCFSIM_WRRR 0x280 /* Watchdog reference (r/w) */ |
| 38 | #define MCFSIM_WIRR 0x284 /* Watchdog interrupt (r/w) */ |
| 39 | #define MCFSIM_WCR 0x288 /* Watchdog counter (r/w) */ |
| 40 | #define MCFSIM_WER 0x28c /* Watchdog event (r/w) */ |
| 41 | |
| 42 | #define MCFSIM_CSBR0 0x40 /* CS0 Base Address (r/w) */ |
| 43 | #define MCFSIM_CSOR0 0x44 /* CS0 Option (r/w) */ |
| 44 | #define MCFSIM_CSBR1 0x48 /* CS1 Base Address (r/w) */ |
| 45 | #define MCFSIM_CSOR1 0x4c /* CS1 Option (r/w) */ |
| 46 | #define MCFSIM_CSBR2 0x50 /* CS2 Base Address (r/w) */ |
| 47 | #define MCFSIM_CSOR2 0x54 /* CS2 Option (r/w) */ |
| 48 | #define MCFSIM_CSBR3 0x58 /* CS3 Base Address (r/w) */ |
| 49 | #define MCFSIM_CSOR3 0x5c /* CS3 Option (r/w) */ |
| 50 | #define MCFSIM_CSBR4 0x60 /* CS4 Base Address (r/w) */ |
| 51 | #define MCFSIM_CSOR4 0x64 /* CS4 Option (r/w) */ |
| 52 | #define MCFSIM_CSBR5 0x68 /* CS5 Base Address (r/w) */ |
| 53 | #define MCFSIM_CSOR5 0x6c /* CS5 Option (r/w) */ |
| 54 | #define MCFSIM_CSBR6 0x70 /* CS6 Base Address (r/w) */ |
| 55 | #define MCFSIM_CSOR6 0x74 /* CS6 Option (r/w) */ |
| 56 | #define MCFSIM_CSBR7 0x78 /* CS7 Base Address (r/w) */ |
| 57 | #define MCFSIM_CSOR7 0x7c /* CS7 Option (r/w) */ |
| 58 | |
| 59 | #define MCFSIM_SDCR 0x180 /* SDRAM Configuration (r/w) */ |
| 60 | #define MCFSIM_SDTR 0x184 /* SDRAM Timing (r/w) */ |
| 61 | #define MCFSIM_DCAR0 0x4c /* DRAM 0 Address reg(r/w) */ |
| 62 | #define MCFSIM_DCMR0 0x50 /* DRAM 0 Mask reg (r/w) */ |
| 63 | #define MCFSIM_DCCR0 0x57 /* DRAM 0 Control reg (r/w) */ |
| 64 | #define MCFSIM_DCAR1 0x58 /* DRAM 1 Address reg (r/w) */ |
| 65 | #define MCFSIM_DCMR1 0x5c /* DRAM 1 Mask reg (r/w) */ |
| 66 | #define MCFSIM_DCCR1 0x63 /* DRAM 1 Control reg (r/w) */ |
| 67 | |
sfking@fdwdc.com | 316f2c4 | 2009-06-19 18:11:07 -0700 | [diff] [blame] | 68 | #define MCFSIM_PACNT (MCF_MBAR + 0x80) /* Port A Control (r/w) */ |
| 69 | #define MCFSIM_PADDR (MCF_MBAR + 0x84) /* Port A Direction (r/w) */ |
| 70 | #define MCFSIM_PADAT (MCF_MBAR + 0x86) /* Port A Data (r/w) */ |
| 71 | #define MCFSIM_PBCNT (MCF_MBAR + 0x88) /* Port B Control (r/w) */ |
| 72 | #define MCFSIM_PBDDR (MCF_MBAR + 0x8c) /* Port B Direction (r/w) */ |
| 73 | #define MCFSIM_PBDAT (MCF_MBAR + 0x8e) /* Port B Data (r/w) */ |
| 74 | #define MCFSIM_PCDDR (MCF_MBAR + 0x94) /* Port C Direction (r/w) */ |
| 75 | #define MCFSIM_PCDAT (MCF_MBAR + 0x96) /* Port C Data (r/w) */ |
| 76 | #define MCFSIM_PDCNT (MCF_MBAR + 0x98) /* Port D Control (r/w) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | |
Greg Ungerer | 04b75b1 | 2009-05-19 14:52:40 +1000 | [diff] [blame] | 78 | /* |
| 79 | * Define system peripheral IRQ usage. |
| 80 | */ |
Greg Ungerer | 9075216 | 2009-07-07 09:39:11 +1000 | [diff] [blame] | 81 | #define MCFINT_VECBASE 64 /* Base of interrupts */ |
| 82 | #define MCF_IRQ_SPURIOUS 64 /* User Spurious */ |
| 83 | #define MCF_IRQ_EINT1 65 /* External Interrupt 1 */ |
| 84 | #define MCF_IRQ_EINT2 66 /* External Interrupt 2 */ |
| 85 | #define MCF_IRQ_EINT3 67 /* External Interrupt 3 */ |
| 86 | #define MCF_IRQ_EINT4 68 /* External Interrupt 4 */ |
| 87 | #define MCF_IRQ_TIMER1 69 /* Timer 1 */ |
| 88 | #define MCF_IRQ_TIMER2 70 /* Timer 2 */ |
| 89 | #define MCF_IRQ_TIMER3 71 /* Timer 3 */ |
| 90 | #define MCF_IRQ_TIMER4 72 /* Timer 4 */ |
| 91 | #define MCF_IRQ_UART1 73 /* UART 1 */ |
| 92 | #define MCF_IRQ_UART2 74 /* UART 2 */ |
| 93 | #define MCF_IRQ_PLIP 75 /* PLIC 2Khz Periodic */ |
| 94 | #define MCF_IRQ_PLIA 76 /* PLIC Asynchronous */ |
| 95 | #define MCF_IRQ_USB0 77 /* USB Endpoint 0 */ |
| 96 | #define MCF_IRQ_USB1 78 /* USB Endpoint 1 */ |
| 97 | #define MCF_IRQ_USB2 79 /* USB Endpoint 2 */ |
| 98 | #define MCF_IRQ_USB3 80 /* USB Endpoint 3 */ |
| 99 | #define MCF_IRQ_USB4 81 /* USB Endpoint 4 */ |
| 100 | #define MCF_IRQ_USB5 82 /* USB Endpoint 5 */ |
| 101 | #define MCF_IRQ_USB6 83 /* USB Endpoint 6 */ |
| 102 | #define MCF_IRQ_USB7 84 /* USB Endpoint 7 */ |
| 103 | #define MCF_IRQ_DMA 85 /* DMA Controller */ |
| 104 | #define MCF_IRQ_ERX 86 /* Ethernet Receiver */ |
| 105 | #define MCF_IRQ_ETX 87 /* Ethernet Transmitter */ |
| 106 | #define MCF_IRQ_ENTC 88 /* Ethernet Non-Time Critical */ |
| 107 | #define MCF_IRQ_QSPI 89 /* Queued Serial Interface */ |
| 108 | #define MCF_IRQ_EINT5 90 /* External Interrupt 5 */ |
| 109 | #define MCF_IRQ_EINT6 91 /* External Interrupt 6 */ |
| 110 | #define MCF_IRQ_SWTO 92 /* Software Watchdog */ |
| 111 | #define MCFINT_VECMAX 95 /* Maxmum interrupt */ |
| 112 | |
| 113 | #define MCF_IRQ_TIMER MCF_IRQ_TIMER1 |
| 114 | #define MCF_IRQ_PROFILER MCF_IRQ_TIMER2 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 115 | |
sfking@fdwdc.com | 316f2c4 | 2009-06-19 18:11:07 -0700 | [diff] [blame] | 116 | /* |
| 117 | * Generic GPIO support |
| 118 | */ |
| 119 | #define MCFGPIO_PIN_MAX 48 |
| 120 | #define MCFGPIO_IRQ_MAX -1 |
| 121 | #define MCFGPIO_IRQ_VECBASE -1 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | /****************************************************************************/ |
| 123 | #endif /* m5272sim_h */ |