123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- #ifndef __MPC5XX_H__
- #define __MPC5XX_H__
- #define EXC_OFF_SYS_RESET 0x0100
- #define _START_OFFSET EXC_OFF_SYS_RESET
- #define CONFIG_SYS_ISB ((CONFIG_SYS_IMMR / 0x00400000) << 1)
- #define SYPCR_SWTC 0xffff0000
- #define SYPCR_BMT 0x0000ff00
- #define SYPCR_BME 0x00000080
- #define SYPCR_SWF 0x00000008
- #define SYPCR_SWE 0x00000004
- #define SYPCR_SWRI 0x00000002
- #define SYPCR_SWP 0x00000001
- #define SIUMCR_EARB 0x80000000
- #define SIUMCR_EARP0 0x00000000
- #define SIUMCR_EARP1 0x10000000
- #define SIUMCR_EARP2 0x20000000
- #define SIUMCR_EARP3 0x30000000
- #define SIUMCR_EARP4 0x40000000
- #define SIUMCR_EARP5 0x50000000
- #define SIUMCR_EARP6 0x60000000
- #define SIUMCR_EARP7 0x70000000
- #define SIUMCR_DSHW 0x00800000
- #define SIUMCR_DBGC00 0x00000000
- #define SIUMCR_DBGC01 0x00200000
- #define SIUMCR_DBGC10 0x00400000
- #define SIUMCR_DBGC11 0x00600000
- #define SIUMCR_DBPC00 0x00000000
- #define SIUMCR_DBPC01 0x00080000
- #define SIUMCR_DBPC10 0x00100000
- #define SIUMCR_DBPC11 0x00180000
- #define SIUMCR_GPC00 0x00000000
- #define SIUMCR_GPC01 0x00020000
- #define SIUMCR_GPC10 0x00040000
- #define SIUMCR_GPC11 0x00060000
- #define SIUMCR_DLK 0x00010000
- #define SIUMCR_SC00 0x00000000
- #define SIUMCR_SC01 0x00004000
- #define SIUMCR_SC10 0x00004000
- #define SIUMCR_SC11 0x00006000
- #define SIUMCR_RCTX 0x00001000
- #define SIUMCR_MLRC00 0x00000000
- #define SIUMCR_MLRC01 0x00000400
- #define SIUMCR_MLRC10 0x00000800
- #define SIUMCR_MLRC11 0x00000c00
- #define SIUMCR_MTSC 0x00000100
- #define TBSCR_REFA ((ushort)0x0080)
- #define TBSCR_REFB ((ushort)0x0040)
- #define TBSCR_TBF ((ushort)0x0002)
- #define PISCR_PITF ((ushort)0x0002)
- #define PISCR_PS 0x0080
- #define PLPRCR_MF_MSK 0xfff00000
- #define PLPRCR_DIVF_MSK 0x0000001f
- #define PLPRCR_CSRC_MSK 0x00000400
- #define PLPRCR_MF_SHIFT 0x00000014
- #define PLPRCR_DIVF_0 0x00000000
- #define PLPRCR_MF_9 0x00900000
- #define PLPRCR_TEXPS 0x00004000
- #define PLPRCR_TMIST 0x00001000
- #define PLPRCR_CSR 0x00000080
- #define PLPRCR_SPLSS 0x00008000
- #define SCCR_DFNL_MSK 0x00000070
- #define SCCR_DFNH_MSK 0x00000007
- #define SCCR_DFNL_SHIFT 0x0000004
- #define SCCR_RTSEL 0x00100000
- #define SCCR_EBDF00 0x00000000
- #define SCCR_EBDF11 0x00060000
- #define SCCR_TBS 0x02000000
- #define SCCR_RTDIV 0x01000000
- #define SCCR_COM00 0x00000000
- #define SCCR_COM01 0x20000000
- #define SCCR_DFNL000 0x00000000
- #define SCCR_DFNH000 0x00000000
- #define BR_V 0x00000001
- #define BR_BI 0x00000002
- #define BR_PS_8 0x00000400
- #define BR_PS_16 0x00000800
- #define BR_PS_32 0x00000000
- #define BR_LBDIR 0x00000008
- #define BR_SETA 0x00000004
- #define OR_SCY_3 0x00000030
- #define OR_SCY_1 0x00000000
- #define OR_SCY_8 0x00000080
- #define OR_TRLX 0x00000001
- #define OR_BSCY 0x00000060
- #define OR_ACS_10 0x00000600
- #define OR_CSNT 0x00000800
- #define OR_ETHR 0x00000100
- #define OR_ADDR_MK_FF 0xFF000000
- #define OR_ADDR_MK_FFFF 0xFFFF0000
- #define UMCR_FSPEED 0x00000000
- #define UMCR_HSPEED 0x10000000
- #define ICTRL_ISCT_SER_7 0x00000007
- #define NR_IRQS 0
- #define SCI_TDRE 0x0100
- #define SCI_TE 0x0008
- #define SCI_RE 0x0004
- #define SCI_RDRF 0x0040
- #define SCI_PE 0x0400
- #define SCI_SCXBR_MK 0x1fff
- #define SCI_SCXDR_MK 0x00ff
- #define SCI_M_11 0x0200
- #define SCI_M_10 0x0000
- #define SCI_PORT_1 ((int)1)
- #define SCI_PORT_2 ((int)2)
- #endif
|