Commit d87c57b201b4572d16f1b642998faa00c9912b16
Committed by
Kim Phillips
1 parent
396955fed2
Exists in
master
and in
54 other branches
mpc83xx: Add register definitions for MPC831x.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Showing 2 changed files with 301 additions and 7 deletions Side-by-side Diff
include/asm-ppc/immap_83xx.h
... | ... | @@ -206,7 +206,9 @@ |
206 | 206 | u32 pmccr; /* PMC Configuration Register */ |
207 | 207 | u32 pmcer; /* PMC Event Register */ |
208 | 208 | u32 pmcmr; /* PMC Mask Register */ |
209 | - u8 res0[0xF4]; | |
209 | + u32 pmccr1; /* PMC Configuration Register 1 */ | |
210 | + u32 pmccr2; /* PMC Configuration Register 2 */ | |
211 | + u8 res0[0xEC]; | |
210 | 212 | } pmc83xx_t; |
211 | 213 | |
212 | 214 | /* |
... | ... | @@ -355,7 +357,8 @@ |
355 | 357 | u8 res2[0x8]; |
356 | 358 | u32 mrtpr; /* Memory Refresh Timer Prescaler Register */ |
357 | 359 | u32 mdr; /* UPM Data Register */ |
358 | - u8 res3[0x8]; | |
360 | + u8 res3[0x4]; | |
361 | + u32 lsor; /* Special Operation Initiation Register */ | |
359 | 362 | u32 lsdmr; /* SDRAM Mode Register */ |
360 | 363 | u8 res4[0x8]; |
361 | 364 | u32 lurt; /* UPM Refresh Timer */ |
... | ... | @@ -369,8 +372,14 @@ |
369 | 372 | u8 res6[0xC]; |
370 | 373 | u32 lbcr; /* Configuration Register */ |
371 | 374 | u32 lcrr; /* Clock Ratio Register */ |
372 | - u8 res7[0x28]; | |
373 | - u8 res8[0xF00]; | |
375 | + u8 res7[0x8]; | |
376 | + u32 fmr; /* Flash Mode Register */ | |
377 | + u32 fir; /* Flash Instruction Register */ | |
378 | + u32 fcr; /* Flash Command Register */ | |
379 | + u32 fbar; /* Flash Block Addr Register */ | |
380 | + u32 fpar; /* Flash Page Addr Register */ | |
381 | + u32 fbcr; /* Flash Byte Count Register */ | |
382 | + u8 res8[0xF08]; | |
374 | 383 | } lbus83xx_t; |
375 | 384 | |
376 | 385 | /* |
... | ... | @@ -527,7 +536,7 @@ |
527 | 536 | * USB |
528 | 537 | */ |
529 | 538 | typedef struct usb83xx { |
530 | - u8 fixme[0x2000]; | |
539 | + u8 fixme[0x1000]; | |
531 | 540 | } usb83xx_t; |
532 | 541 | |
533 | 542 | /* |
... | ... | @@ -574,7 +583,42 @@ |
574 | 583 | ios83xx_t ios; /* Sequencer */ |
575 | 584 | pcictrl83xx_t pci_ctrl[2]; /* PCI Controller Control and Status Registers */ |
576 | 585 | u8 res5[0x19900]; |
577 | - usb83xx_t usb; | |
586 | + usb83xx_t usb[2]; | |
587 | + tsec83xx_t tsec[2]; | |
588 | + u8 res6[0xA000]; | |
589 | + security83xx_t security; | |
590 | + u8 res7[0xC0000]; | |
591 | +} immap_t; | |
592 | + | |
593 | +#elif defined(CONFIG_MPC831X) | |
594 | +typedef struct immap { | |
595 | + sysconf83xx_t sysconf; /* System configuration */ | |
596 | + wdt83xx_t wdt; /* Watch Dog Timer (WDT) Registers */ | |
597 | + rtclk83xx_t rtc; /* Real Time Clock Module Registers */ | |
598 | + rtclk83xx_t pit; /* Periodic Interval Timer */ | |
599 | + gtm83xx_t gtm[2]; /* Global Timers Module */ | |
600 | + ipic83xx_t ipic; /* Integrated Programmable Interrupt Controller */ | |
601 | + arbiter83xx_t arbiter; /* System Arbiter Registers */ | |
602 | + reset83xx_t reset; /* Reset Module */ | |
603 | + clk83xx_t clk; /* System Clock Module */ | |
604 | + pmc83xx_t pmc; /* Power Management Control Module */ | |
605 | + gpio83xx_t gpio[1]; /* General purpose I/O module */ | |
606 | + u8 res0[0x1300]; | |
607 | + ddr83xx_t ddr; /* DDR Memory Controller Memory */ | |
608 | + fsl_i2c_t i2c[2]; /* I2C Controllers */ | |
609 | + u8 res1[0x1300]; | |
610 | + duart83xx_t duart[2]; /* DUART */ | |
611 | + u8 res2[0x900]; | |
612 | + lbus83xx_t lbus; /* Local Bus Controller Registers */ | |
613 | + u8 res3[0x1000]; | |
614 | + spi83xx_t spi; /* Serial Peripheral Interface */ | |
615 | + dma83xx_t dma; /* DMA */ | |
616 | + pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ | |
617 | + u8 res4[0x80]; | |
618 | + ios83xx_t ios; /* Sequencer */ | |
619 | + pcictrl83xx_t pci_ctrl[1]; /* PCI Controller Control and Status Registers */ | |
620 | + u8 res5[0x1aa00]; | |
621 | + usb83xx_t usb[1]; | |
578 | 622 | tsec83xx_t tsec[2]; |
579 | 623 | u8 res6[0xA000]; |
580 | 624 | security83xx_t security; |
include/mpc83xx.h
... | ... | @@ -95,6 +95,11 @@ |
95 | 95 | #define SPR_8321E_REV11 0x80660011 |
96 | 96 | #define SPR_8321_REV11 0x80670011 |
97 | 97 | |
98 | +#define SPR_8311_REV10 0x80B30010 | |
99 | +#define SPR_8311E_REV10 0x80B20010 | |
100 | +#define SPR_8313_REV10 0x80B10010 | |
101 | +#define SPR_8313E_REV10 0x80B00010 | |
102 | + | |
98 | 103 | /* SPCR - System Priority Configuration Register |
99 | 104 | */ |
100 | 105 | #define SPCR_PCIHPE 0x10000000 /* PCI Highest Priority Enable */ |
... | ... | @@ -121,6 +126,15 @@ |
121 | 126 | #define SPCR_TSEC2BDP_SHIFT (31-29) |
122 | 127 | #define SPCR_TSEC2EP 0x00000003 /* TSEC2 emergency priority */ |
123 | 128 | #define SPCR_TSEC2EP_SHIFT (31-31) |
129 | + | |
130 | +#elif defined(CONFIG_MPC831X) | |
131 | +/* SPCR bits - MPC831x specific */ | |
132 | +#define SPCR_TSECDP 0x00003000 /* TSEC data priority */ | |
133 | +#define SPCR_TSECDP_SHIFT (31-19) | |
134 | +#define SPCR_TSECEP 0x00000C00 /* TSEC emergency priority */ | |
135 | +#define SPCR_TSECEP_SHIFT (31-21) | |
136 | +#define SPCR_TSECBDP 0x00000300 /* TSEC buffer descriptor priority */ | |
137 | +#define SPCR_TSECBDP_SHIFT (31-23) | |
124 | 138 | #endif |
125 | 139 | |
126 | 140 | /* SICRL/H - System I/O Configuration Register Low/High |
... | ... | @@ -195,6 +209,36 @@ |
195 | 209 | #define SICRL_PCI_MSRC 0x10000000 |
196 | 210 | #define SICRL_URT_CTPR 0x06000000 |
197 | 211 | #define SICRL_IRQ_CTPR 0x00C00000 |
212 | + | |
213 | +#elif defined(CONFIG_MPC831X) | |
214 | +/* SICRL bits - MPC831x specific */ | |
215 | +#define SICRL_LBC 0x30000000 | |
216 | +#define SICRL_UART 0x0C000000 | |
217 | +#define SICRL_SPI_A 0x03000000 | |
218 | +#define SICRL_SPI_B 0x00C00000 | |
219 | +#define SICRL_SPI_C 0x00300000 | |
220 | +#define SICRL_SPI_D 0x000C0000 | |
221 | +#define SICRL_USBDR 0x00000C00 | |
222 | +#define SICRL_ETSEC1_A 0x0000000C | |
223 | +#define SICRL_ETSEC2_A 0x00000003 | |
224 | + | |
225 | +/* SICRH bits - MPC831x specific */ | |
226 | +#define SICRH_INTR_A 0x02000000 | |
227 | +#define SICRH_INTR_B 0x00C00000 | |
228 | +#define SICRH_IIC 0x00300000 | |
229 | +#define SICRH_ETSEC2_B 0x000C0000 | |
230 | +#define SICRH_ETSEC2_C 0x00030000 | |
231 | +#define SICRH_ETSEC2_D 0x0000C000 | |
232 | +#define SICRH_ETSEC2_E 0x00003000 | |
233 | +#define SICRH_ETSEC2_F 0x00000C00 | |
234 | +#define SICRH_ETSEC2_G 0x00000300 | |
235 | +#define SICRH_ETSEC1_B 0x00000080 | |
236 | +#define SICRH_ETSEC1_C 0x00000060 | |
237 | +#define SICRH_GTX1_DLY 0x00000008 | |
238 | +#define SICRH_GTX2_DLY 0x00000004 | |
239 | +#define SICRH_TSOBI1 0x00000002 | |
240 | +#define SICRH_TSOBI2 0x00000001 | |
241 | + | |
198 | 242 | #endif |
199 | 243 | |
200 | 244 | /* SWCRR - System Watchdog Control Register |
... | ... | @@ -393,6 +437,28 @@ |
393 | 437 | #define HRCWH_ROM_LOC_LOCAL_16BIT 0x00600000 |
394 | 438 | #define HRCWH_ROM_LOC_LOCAL_32BIT 0x00700000 |
395 | 439 | |
440 | +#if defined(CONFIG_MPC831X) | |
441 | +#define HRCWH_ROM_LOC_NAND_SP_8BIT 0x00100000 | |
442 | +#define HRCWH_ROM_LOC_NAND_SP_16BIT 0x00200000 | |
443 | +#define HRCWH_ROM_LOC_NAND_LP_8BIT 0x00500000 | |
444 | +#define HRCWH_ROM_LOC_NAND_LP_16BIT 0x00600000 | |
445 | + | |
446 | +#define HRCWH_RL_EXT_LEGACY 0x00000000 | |
447 | +#define HRCWH_RL_EXT_NAND 0x00040000 | |
448 | + | |
449 | +#define HRCWH_TSEC1M_IN_MII 0x00000000 | |
450 | +#define HRCWH_TSEC1M_IN_RMII 0x00002000 | |
451 | +#define HRCWH_TSEC1M_IN_RGMII 0x00006000 | |
452 | +#define HRCWH_TSEC1M_IN_RTBI 0x0000A000 | |
453 | +#define HRCWH_TSEC1M_IN_SGMII 0x0000C000 | |
454 | + | |
455 | +#define HRCWH_TSEC2M_IN_MII 0x00000000 | |
456 | +#define HRCWH_TSEC2M_IN_RMII 0x00000400 | |
457 | +#define HRCWH_TSEC2M_IN_RGMII 0x00000C00 | |
458 | +#define HRCWH_TSEC2M_IN_RTBI 0x00001400 | |
459 | +#define HRCWH_TSEC2M_IN_SGMII 0x00001800 | |
460 | +#endif | |
461 | + | |
396 | 462 | #if defined(CONFIG_MPC834X) |
397 | 463 | #define HRCWH_TSEC1M_IN_RGMII 0x00000000 |
398 | 464 | #define HRCWH_TSEC1M_IN_RTBI 0x00004000 |
... | ... | @@ -523,6 +589,18 @@ |
523 | 589 | #define SCCR_TSEC2CM_1 0x10000000 |
524 | 590 | #define SCCR_TSEC2CM_2 0x20000000 |
525 | 591 | #define SCCR_TSEC2CM_3 0x30000000 |
592 | + | |
593 | +#elif defined(CONFIG_MPC831X) | |
594 | +/* TSEC1 bits are for TSEC2 as well */ | |
595 | +#define SCCR_TSEC1CM 0xc0000000 | |
596 | +#define SCCR_TSEC1CM_SHIFT 30 | |
597 | +#define SCCR_TSEC1CM_1 0x40000000 | |
598 | +#define SCCR_TSEC1CM_2 0x80000000 | |
599 | +#define SCCR_TSEC1CM_3 0xC0000000 | |
600 | + | |
601 | +#define SCCR_TSEC1ON 0x20000000 | |
602 | +#define SCCR_TSEC2ON 0x10000000 | |
603 | + | |
526 | 604 | #endif |
527 | 605 | |
528 | 606 | #define SCCR_USBMPHCM 0x00c00000 |
... | ... | @@ -556,6 +634,25 @@ |
556 | 634 | #define CSCONFIG_COL_BIT_10 0x00000002 |
557 | 635 | #define CSCONFIG_COL_BIT_11 0x00000003 |
558 | 636 | |
637 | +/* TIMING_CFG_0 - DDR SDRAM Timing Configuration 0 | |
638 | + */ | |
639 | +#define TIMING_CFG0_RWT 0xC0000000 | |
640 | +#define TIMING_CFG0_RWT_SHIFT 30 | |
641 | +#define TIMING_CFG0_WRT 0x30000000 | |
642 | +#define TIMING_CFG0_WRT_SHIFT 28 | |
643 | +#define TIMING_CFG0_RRT 0x0C000000 | |
644 | +#define TIMING_CFG0_RRT_SHIFT 26 | |
645 | +#define TIMING_CFG0_WWT 0x03000000 | |
646 | +#define TIMING_CFG0_WWT_SHIFT 24 | |
647 | +#define TIMING_CFG0_ACT_PD_EXIT 0x00700000 | |
648 | +#define TIMING_CFG0_ACT_PD_EXIT_SHIFT 20 | |
649 | +#define TIMING_CFG0_PRE_PD_EXIT 0x00070000 | |
650 | +#define TIMING_CFG0_PRE_PD_EXIT_SHIFT 16 | |
651 | +#define TIMING_CFG0_ODT_PD_EXIT 0x00000F00 | |
652 | +#define TIMING_CFG0_ODT_PD_EXIT_SHIFT 8 | |
653 | +#define TIMING_CFG0_MRS_CYC 0x00000F00 | |
654 | +#define TIMING_CFG0_MRS_CYC_SHIFT 0 | |
655 | + | |
559 | 656 | /* TIMING_CFG_1 - DDR SDRAM Timing Configuration 1 |
560 | 657 | */ |
561 | 658 | #define TIMING_CFG1_PRETOACT 0x70000000 |
... | ... | @@ -586,6 +683,17 @@ |
586 | 683 | #define TIMING_CFG2_WR_DATA_DELAY_SHIFT 10 |
587 | 684 | #define TIMING_CFG2_CPO_DEF 0x00000000 /* default (= CASLAT + 1) */ |
588 | 685 | |
686 | +#define TIMING_CFG2_ADD_LAT 0x70000000 | |
687 | +#define TIMING_CFG2_ADD_LAT_SHIFT 28 | |
688 | +#define TIMING_CFG2_WR_LAT_DELAY 0x00380000 | |
689 | +#define TIMING_CFG2_WR_LAT_DELAY_SHIFT 19 | |
690 | +#define TIMING_CFG2_RD_TO_PRE 0x0000E000 | |
691 | +#define TIMING_CFG2_RD_TO_PRE_SHIFT 13 | |
692 | +#define TIMING_CFG2_CKE_PLS 0x000001C0 | |
693 | +#define TIMING_CFG2_CKE_PLS_SHIFT 6 | |
694 | +#define TIMING_CFG2_FOUR_ACT 0x0000003F | |
695 | +#define TIMING_CFG2_FOUR_ACT_SHIFT 0 | |
696 | + | |
589 | 697 | /* DDR_SDRAM_CFG - DDR SDRAM Control Configuration |
590 | 698 | */ |
591 | 699 | #define SDRAM_CFG_MEM_EN 0x80000000 |
592 | 700 | |
... | ... | @@ -593,13 +701,14 @@ |
593 | 701 | #define SDRAM_CFG_ECC_EN 0x20000000 |
594 | 702 | #define SDRAM_CFG_RD_EN 0x10000000 |
595 | 703 | #define SDRAM_CFG_SDRAM_TYPE 0x03000000 |
704 | +#define SDRAM_CFG_SDRAM_TYPE_DDR 0x02000000 | |
596 | 705 | #define SDRAM_CFG_SDRAM_TYPE_SHIFT 24 |
597 | 706 | #define SDRAM_CFG_DYN_PWR 0x00200000 |
598 | 707 | #define SDRAM_CFG_32_BE 0x00080000 |
599 | 708 | #define SDRAM_CFG_8_BE 0x00040000 |
600 | 709 | #define SDRAM_CFG_NCAP 0x00020000 |
601 | 710 | #define SDRAM_CFG_2T_EN 0x00008000 |
602 | -#define SDRAM_CFG_SDRAM_TYPE_DDR 0x02000000 | |
711 | +#define SDRAM_CFG_BI 0x00000001 | |
603 | 712 | |
604 | 713 | /* DDR_SDRAM_MODE - DDR SDRAM Mode Register |
605 | 714 | */ |
606 | 715 | |
... | ... | @@ -732,11 +841,15 @@ |
732 | 841 | #define BR_PS_32 0x00001800 /* Port Size 32 bit */ |
733 | 842 | #define BR_DECC 0x00000600 |
734 | 843 | #define BR_DECC_SHIFT 9 |
844 | +#define BR_DECC_OFF 0x00000000 | |
845 | +#define BR_DECC_CHK 0x00000200 | |
846 | +#define BR_DECC_CHK_GEN 0x00000400 | |
735 | 847 | #define BR_WP 0x00000100 |
736 | 848 | #define BR_WP_SHIFT 8 |
737 | 849 | #define BR_MSEL 0x000000E0 |
738 | 850 | #define BR_MSEL_SHIFT 5 |
739 | 851 | #define BR_MS_GPCM 0x00000000 /* GPCM */ |
852 | +#define BR_MS_FCM 0x00000020 /* FCM */ | |
740 | 853 | #define BR_MS_SDRAM 0x00000060 /* SDRAM */ |
741 | 854 | #define BR_MS_UPMA 0x00000080 /* UPMA */ |
742 | 855 | #define BR_MS_UPMB 0x000000A0 /* UPMB */ |
... | ... | @@ -803,6 +916,34 @@ |
803 | 916 | #define OR_GPCM_EAD 0x00000001 |
804 | 917 | #define OR_GPCM_EAD_SHIFT 0 |
805 | 918 | |
919 | +#define OR_FCM_AM 0xFFFF8000 | |
920 | +#define OR_FCM_AM_SHIFT 15 | |
921 | +#define OR_FCM_BCTLD 0x00001000 | |
922 | +#define OR_FCM_BCTLD_SHIFT 12 | |
923 | +#define OR_FCM_PGS 0x00000400 | |
924 | +#define OR_FCM_PGS_SHIFT 10 | |
925 | +#define OR_FCM_CSCT 0x00000200 | |
926 | +#define OR_FCM_CSCT_SHIFT 9 | |
927 | +#define OR_FCM_CST 0x00000100 | |
928 | +#define OR_FCM_CST_SHIFT 8 | |
929 | +#define OR_FCM_CHT 0x00000080 | |
930 | +#define OR_FCM_CHT_SHIFT 7 | |
931 | +#define OR_FCM_SCY 0x00000070 | |
932 | +#define OR_FCM_SCY_SHIFT 4 | |
933 | +#define OR_FCM_SCY_1 0x00000010 | |
934 | +#define OR_FCM_SCY_2 0x00000020 | |
935 | +#define OR_FCM_SCY_3 0x00000030 | |
936 | +#define OR_FCM_SCY_4 0x00000040 | |
937 | +#define OR_FCM_SCY_5 0x00000050 | |
938 | +#define OR_FCM_SCY_6 0x00000060 | |
939 | +#define OR_FCM_SCY_7 0x00000070 | |
940 | +#define OR_FCM_RST 0x00000008 | |
941 | +#define OR_FCM_RST_SHIFT 3 | |
942 | +#define OR_FCM_TRLX 0x00000004 | |
943 | +#define OR_FCM_TRLX_SHIFT 2 | |
944 | +#define OR_FCM_EHTR 0x00000002 | |
945 | +#define OR_FCM_EHTR_SHIFT 1 | |
946 | + | |
806 | 947 | #define OR_UPM_AM 0xFFFF8000 |
807 | 948 | #define OR_UPM_AM_SHIFT 15 |
808 | 949 | #define OR_UPM_XAM 0x00006000 |
... | ... | @@ -1018,6 +1159,115 @@ |
1018 | 1159 | #define PIWAR_IWS_512M 0x0000001C |
1019 | 1160 | #define PIWAR_IWS_1G 0x0000001D |
1020 | 1161 | #define PIWAR_IWS_2G 0x0000001E |
1162 | + | |
1163 | +/* PMCCR1 - PCI Configuration Register 1 | |
1164 | + */ | |
1165 | +#define PMCCR1_POWER_OFF 0x00000020 | |
1166 | + | |
1167 | +/* FMR - Flash Mode Register | |
1168 | + */ | |
1169 | +#define FMR_CWTO 0x0000F000 | |
1170 | +#define FMR_CWTO_SHIFT 12 | |
1171 | +#define FMR_BOOT 0x00000800 | |
1172 | +#define FMR_ECCM 0x00000100 | |
1173 | +#define FMR_AL 0x00000030 | |
1174 | +#define FMR_AL_SHIFT 4 | |
1175 | +#define FMR_OP 0x00000003 | |
1176 | +#define FMR_OP_SHIFT 0 | |
1177 | + | |
1178 | +/* FIR - Flash Instruction Register | |
1179 | + */ | |
1180 | +#define FIR_OP0 0xF0000000 | |
1181 | +#define FIR_OP0_SHIFT 28 | |
1182 | +#define FIR_OP1 0x0F000000 | |
1183 | +#define FIR_OP1_SHIFT 24 | |
1184 | +#define FIR_OP2 0x00F00000 | |
1185 | +#define FIR_OP2_SHIFT 20 | |
1186 | +#define FIR_OP3 0x000F0000 | |
1187 | +#define FIR_OP3_SHIFT 16 | |
1188 | +#define FIR_OP4 0x0000F000 | |
1189 | +#define FIR_OP4_SHIFT 12 | |
1190 | +#define FIR_OP5 0x00000F00 | |
1191 | +#define FIR_OP5_SHIFT 8 | |
1192 | +#define FIR_OP6 0x000000F0 | |
1193 | +#define FIR_OP6_SHIFT 4 | |
1194 | +#define FIR_OP7 0x0000000F | |
1195 | +#define FIR_OP7_SHIFT 0 | |
1196 | +#define FIR_OP_NOP 0x0 /* No operation and end of sequence */ | |
1197 | +#define FIR_OP_CA 0x1 /* Issue current column address */ | |
1198 | +#define FIR_OP_PA 0x2 /* Issue current block+page address */ | |
1199 | +#define FIR_OP_UA 0x3 /* Issue user defined address */ | |
1200 | +#define FIR_OP_CM0 0x4 /* Issue command from FCR[CMD0] */ | |
1201 | +#define FIR_OP_CM1 0x5 /* Issue command from FCR[CMD1] */ | |
1202 | +#define FIR_OP_CM2 0x6 /* Issue command from FCR[CMD2] */ | |
1203 | +#define FIR_OP_CM3 0x7 /* Issue command from FCR[CMD3] */ | |
1204 | +#define FIR_OP_WB 0x8 /* Write FBCR bytes from FCM buffer */ | |
1205 | +#define FIR_OP_WS 0x9 /* Write 1 or 2 bytes from MDR[AS] */ | |
1206 | +#define FIR_OP_RB 0xA /* Read FBCR bytes to FCM buffer */ | |
1207 | +#define FIR_OP_RS 0xB /* Read 1 or 2 bytes to MDR[AS] */ | |
1208 | +#define FIR_OP_CW0 0xC /* Wait then issue FCR[CMD0] */ | |
1209 | +#define FIR_OP_CW1 0xD /* Wait then issue FCR[CMD1] */ | |
1210 | +#define FIR_OP_RBW 0xE /* Wait then read FBCR bytes */ | |
1211 | +#define FIR_OP_RSW 0xF /* Wait then read 1 or 2 bytes */ | |
1212 | + | |
1213 | +/* FCR - Flash Command Register | |
1214 | + */ | |
1215 | +#define FCR_CMD0 0xFF000000 | |
1216 | +#define FCR_CMD0_SHIFT 24 | |
1217 | +#define FCR_CMD1 0x00FF0000 | |
1218 | +#define FCR_CMD1_SHIFT 16 | |
1219 | +#define FCR_CMD2 0x0000FF00 | |
1220 | +#define FCR_CMD2_SHIFT 8 | |
1221 | +#define FCR_CMD3 0x000000FF | |
1222 | +#define FCR_CMD3_SHIFT 0 | |
1223 | + | |
1224 | +/* FBAR - Flash Block Address Register | |
1225 | + */ | |
1226 | +#define FBAR_BLK 0x00FFFFFF | |
1227 | + | |
1228 | +/* FPAR - Flash Page Address Register | |
1229 | + */ | |
1230 | +#define FPAR_SP_PI 0x00007C00 | |
1231 | +#define FPAR_SP_PI_SHIFT 10 | |
1232 | +#define FPAR_SP_MS 0x00000200 | |
1233 | +#define FPAR_SP_CI 0x000001FF | |
1234 | +#define FPAR_SP_CI_SHIFT 0 | |
1235 | +#define FPAR_LP_PI 0x0003F000 | |
1236 | +#define FPAR_LP_PI_SHIFT 12 | |
1237 | +#define FPAR_LP_MS 0x00000800 | |
1238 | +#define FPAR_LP_CI 0x000007FF | |
1239 | +#define FPAR_LP_CI_SHIFT 0 | |
1240 | + | |
1241 | +/* LTESR - Transfer Error Status Register | |
1242 | + */ | |
1243 | +#define LTESR_BM 0x80000000 | |
1244 | +#define LTESR_FCT 0x40000000 | |
1245 | +#define LTESR_PAR 0x20000000 | |
1246 | +#define LTESR_WP 0x04000000 | |
1247 | +#define LTESR_ATMW 0x00800000 | |
1248 | +#define LTESR_ATMR 0x00400000 | |
1249 | +#define LTESR_CS 0x00080000 | |
1250 | +#define LTESR_CC 0x00000001 | |
1251 | + | |
1252 | +/* DDR Control Driver Register | |
1253 | + */ | |
1254 | +#define DDRCDR_EN 0x40000000 | |
1255 | +#define DDRCDR_PZ 0x3C000000 | |
1256 | +#define DDRCDR_PZ_MAXZ 0x00000000 | |
1257 | +#define DDRCDR_PZ_HIZ 0x20000000 | |
1258 | +#define DDRCDR_PZ_NOMZ 0x30000000 | |
1259 | +#define DDRCDR_PZ_LOZ 0x38000000 | |
1260 | +#define DDRCDR_PZ_MINZ 0x3C000000 | |
1261 | +#define DDRCDR_NZ 0x3C000000 | |
1262 | +#define DDRCDR_NZ_MAXZ 0x00000000 | |
1263 | +#define DDRCDR_NZ_HIZ 0x02000000 | |
1264 | +#define DDRCDR_NZ_NOMZ 0x03000000 | |
1265 | +#define DDRCDR_NZ_LOZ 0x03800000 | |
1266 | +#define DDRCDR_NZ_MINZ 0x03C00000 | |
1267 | +#define DDRCDR_ODT 0x00080000 | |
1268 | +#define DDRCDR_DDR_CFG 0x00040000 | |
1269 | +#define DDRCDR_M_ODR 0x00000002 | |
1270 | +#define DDRCDR_Q_DRN 0x00000001 | |
1021 | 1271 | |
1022 | 1272 | #endif /* __MPC83XX_H__ */ |