aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/sibyte/sb1250_regs.h
diff options
context:
space:
mode:
authorAndrew Isaacson <adi@broadcom.com>2005-10-20 02:55:11 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:32:45 -0400
commit4cbf2beac2265b3619be9c8e88ff4ff45b49d7c2 (patch)
treefa7701264e60759b080b7953bcfad081a51e63d2 /include/asm-mips/sibyte/sb1250_regs.h
parentd121ced21d79eab7726bfe6b1e33da4ae86072c0 (diff)
BCM1480 headers
Add header files for BCM1480/1280/1455/1255 family of chips, and update sb1250 headers which are shared by BCM1480 family. Signed-Off-By: Andy Isaacson <adi@broadcom.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org> diff --git a/include/asm-mips/sibyte/bcm1480_int.h b/include/asm-mips/sibyte/bcm1480_int.h new file mode 100644
Diffstat (limited to 'include/asm-mips/sibyte/sb1250_regs.h')
-rw-r--r--include/asm-mips/sibyte/sb1250_regs.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/include/asm-mips/sibyte/sb1250_regs.h b/include/asm-mips/sibyte/sb1250_regs.h
index 9db80cd13a79..3aab13730408 100644
--- a/include/asm-mips/sibyte/sb1250_regs.h
+++ b/include/asm-mips/sibyte/sb1250_regs.h
@@ -61,6 +61,8 @@
61 * XXX: can't remove MC base 0 if 112x, since it's used by other macros, 61 * XXX: can't remove MC base 0 if 112x, since it's used by other macros,
62 * since there is one reg there (but it could get its addr/offset constant). 62 * since there is one reg there (but it could get its addr/offset constant).
63 */ 63 */
64
65#if SIBYTE_HDR_FEATURE_1250_112x /* This MC only on 1250 & 112x */
64#define A_MC_BASE_0 0x0010051000 66#define A_MC_BASE_0 0x0010051000
65#define A_MC_BASE_1 0x0010052000 67#define A_MC_BASE_1 0x0010052000
66#define MC_REGISTER_SPACING 0x1000 68#define MC_REGISTER_SPACING 0x1000
@@ -101,10 +103,14 @@
101#define R_MC_TEST_ECC 0x0000000420 103#define R_MC_TEST_ECC 0x0000000420
102#define R_MC_MCLK_CFG 0x0000000500 104#define R_MC_MCLK_CFG 0x0000000500
103 105
106#endif /* 1250 & 112x */
107
104/* ********************************************************************* 108/* *********************************************************************
105 * L2 Cache Control Registers 109 * L2 Cache Control Registers
106 ********************************************************************* */ 110 ********************************************************************* */
107 111
112#if SIBYTE_HDR_FEATURE_1250_112x /* This L2C only on 1250/112x */
113
108#define A_L2_READ_TAG 0x0010040018 114#define A_L2_READ_TAG 0x0010040018
109#define A_L2_ECC_TAG 0x0010040038 115#define A_L2_ECC_TAG 0x0010040038
110#if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) 116#if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1)
@@ -125,13 +131,16 @@
125#define A_L2_READ_ADDRESS A_L2_READ_TAG 131#define A_L2_READ_ADDRESS A_L2_READ_TAG
126#define A_L2_EEC_ADDRESS A_L2_ECC_TAG 132#define A_L2_EEC_ADDRESS A_L2_ECC_TAG
127 133
134#endif
128 135
129/* ********************************************************************* 136/* *********************************************************************
130 * PCI Interface Registers 137 * PCI Interface Registers
131 ********************************************************************* */ 138 ********************************************************************* */
132 139
140#if SIBYTE_HDR_FEATURE_1250_112x /* This PCI/HT only on 1250/112x */
133#define A_PCI_TYPE00_HEADER 0x00DE000000 141#define A_PCI_TYPE00_HEADER 0x00DE000000
134#define A_PCI_TYPE01_HEADER 0x00DE000800 142#define A_PCI_TYPE01_HEADER 0x00DE000800
143#endif
135 144
136 145
137/* ********************************************************************* 146/* *********************************************************************
@@ -264,15 +273,15 @@
264 ********************************************************************* */ 273 ********************************************************************* */
265 274
266 275
276#if SIBYTE_HDR_FEATURE_1250_112x /* This MC only on 1250 & 112x */
267#define R_DUART_NUM_PORTS 2 277#define R_DUART_NUM_PORTS 2
268 278
269#define A_DUART 0x0010060000 279#define A_DUART 0x0010060000
270 280
271#define A_DUART_REG(r)
272
273#define DUART_CHANREG_SPACING 0x100 281#define DUART_CHANREG_SPACING 0x100
274#define A_DUART_CHANREG(chan,reg) (A_DUART + DUART_CHANREG_SPACING*(chan) + (reg)) 282#define A_DUART_CHANREG(chan,reg) (A_DUART + DUART_CHANREG_SPACING*(chan) + (reg))
275#define R_DUART_CHANREG(chan,reg) (DUART_CHANREG_SPACING*(chan) + (reg)) 283#define R_DUART_CHANREG(chan,reg) (DUART_CHANREG_SPACING*(chan) + (reg))
284#endif /* 1250 & 112x */
276 285
277#define R_DUART_MODE_REG_1 0x100 286#define R_DUART_MODE_REG_1 0x100
278#define R_DUART_MODE_REG_2 0x110 287#define R_DUART_MODE_REG_2 0x110
@@ -307,11 +316,13 @@
307 316
308#define DUART_IMRISR_SPACING 0x20 317#define DUART_IMRISR_SPACING 0x20
309 318
319#if SIBYTE_HDR_FEATURE_1250_112x /* This MC only on 1250 & 112x */
310#define R_DUART_IMRREG(chan) (R_DUART_IMR_A + (chan)*DUART_IMRISR_SPACING) 320#define R_DUART_IMRREG(chan) (R_DUART_IMR_A + (chan)*DUART_IMRISR_SPACING)
311#define R_DUART_ISRREG(chan) (R_DUART_ISR_A + (chan)*DUART_IMRISR_SPACING) 321#define R_DUART_ISRREG(chan) (R_DUART_ISR_A + (chan)*DUART_IMRISR_SPACING)
312 322
313#define A_DUART_IMRREG(chan) (A_DUART + R_DUART_IMRREG(chan)) 323#define A_DUART_IMRREG(chan) (A_DUART + R_DUART_IMRREG(chan))
314#define A_DUART_ISRREG(chan) (A_DUART + R_DUART_ISRREG(chan)) 324#define A_DUART_ISRREG(chan) (A_DUART + R_DUART_ISRREG(chan))
325#endif /* 1250 & 112x */
315 326
316 327
317 328
@@ -368,6 +379,8 @@
368 ********************************************************************* */ 379 ********************************************************************* */
369 380
370 381
382#if SIBYTE_HDR_FEATURE_1250_112x /* sync serial only on 1250/112x */
383
371#define A_SER_BASE_0 0x0010060400 384#define A_SER_BASE_0 0x0010060400
372#define A_SER_BASE_1 0x0010060800 385#define A_SER_BASE_1 0x0010060800
373#define SER_SPACING 0x400 386#define SER_SPACING 0x400
@@ -457,6 +470,8 @@
457#define R_SER_RMON_RX_ERRORS 0x000001F0 470#define R_SER_RMON_RX_ERRORS 0x000001F0
458#define R_SER_RMON_RX_BADADDR 0x000001F8 471#define R_SER_RMON_RX_BADADDR 0x000001F8
459 472
473#endif /* 1250/112x */
474
460/* ********************************************************************* 475/* *********************************************************************
461 * Generic Bus Registers 476 * Generic Bus Registers
462 ********************************************************************* */ 477 ********************************************************************* */
@@ -634,12 +649,13 @@
634 649
635#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) 650#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1)
636#define A_SCD_SCRATCH 0x0010020C10 651#define A_SCD_SCRATCH 0x0010020C10
652#endif /* 1250 PASS2 || 112x PASS1 */
637 653
654#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480)
638#define A_SCD_ZBBUS_CYCLE_COUNT 0x0010030000 655#define A_SCD_ZBBUS_CYCLE_COUNT 0x0010030000
639#define A_SCD_ZBBUS_CYCLE_CP0 0x0010020C00 656#define A_SCD_ZBBUS_CYCLE_CP0 0x0010020C00
640#define A_SCD_ZBBUS_CYCLE_CP1 0x0010020C08 657#define A_SCD_ZBBUS_CYCLE_CP1 0x0010020C08
641#endif /* 1250 PASS2 || 112x PASS1 */ 658#endif
642
643 659
644/* ********************************************************************* 660/* *********************************************************************
645 * System Control Registers 661 * System Control Registers
@@ -667,15 +683,16 @@
667#define A_ADDR_TRAP_CFG_1 0x0010020448 683#define A_ADDR_TRAP_CFG_1 0x0010020448
668#define A_ADDR_TRAP_CFG_2 0x0010020450 684#define A_ADDR_TRAP_CFG_2 0x0010020450
669#define A_ADDR_TRAP_CFG_3 0x0010020458 685#define A_ADDR_TRAP_CFG_3 0x0010020458
670#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) 686#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480)
671#define A_ADDR_TRAP_REG_DEBUG 0x0010020460 687#define A_ADDR_TRAP_REG_DEBUG 0x0010020460
672#endif /* 1250 PASS2 || 112x PASS1 */ 688#endif /* 1250 PASS2 || 112x PASS1 || 1480 */
673 689
674 690
675/* ********************************************************************* 691/* *********************************************************************
676 * System Interrupt Mapper Registers 692 * System Interrupt Mapper Registers
677 ********************************************************************* */ 693 ********************************************************************* */
678 694
695#if SIBYTE_HDR_FEATURE_1250_112x
679#define A_IMR_CPU0_BASE 0x0010020000 696#define A_IMR_CPU0_BASE 0x0010020000
680#define A_IMR_CPU1_BASE 0x0010022000 697#define A_IMR_CPU1_BASE 0x0010022000
681#define IMR_REGISTER_SPACING 0x2000 698#define IMR_REGISTER_SPACING 0x2000
@@ -700,6 +717,7 @@
700#define R_IMR_INTERRUPT_STATUS_COUNT 7 717#define R_IMR_INTERRUPT_STATUS_COUNT 7
701#define R_IMR_INTERRUPT_MAP_BASE 0x0200 718#define R_IMR_INTERRUPT_MAP_BASE 0x0200
702#define R_IMR_INTERRUPT_MAP_COUNT 64 719#define R_IMR_INTERRUPT_MAP_COUNT 64
720#endif /* 1250/112x */
703 721
704/* ********************************************************************* 722/* *********************************************************************
705 * System Performance Counter Registers 723 * System Performance Counter Registers
@@ -718,6 +736,7 @@
718#define A_SCD_BUS_ERR_STATUS 0x0010020880 736#define A_SCD_BUS_ERR_STATUS 0x0010020880
719#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1) 737#if SIBYTE_HDR_FEATURE(1250, PASS2) || SIBYTE_HDR_FEATURE(112x, PASS1)
720#define A_SCD_BUS_ERR_STATUS_DEBUG 0x00100208D0 738#define A_SCD_BUS_ERR_STATUS_DEBUG 0x00100208D0
739#define A_BUS_ERR_STATUS_DEBUG 0x00100208D0
721#endif /* 1250 PASS2 || 112x PASS1 */ 740#endif /* 1250 PASS2 || 112x PASS1 */
722#define A_BUS_ERR_DATA_0 0x00100208A0 741#define A_BUS_ERR_DATA_0 0x00100208A0
723#define A_BUS_ERR_DATA_1 0x00100208A8 742#define A_BUS_ERR_DATA_1 0x00100208A8
@@ -798,6 +817,7 @@
798 * Physical Address Map 817 * Physical Address Map
799 ********************************************************************* */ 818 ********************************************************************* */
800 819
820#if SIBYTE_HDR_FEATURE_1250_112x
801#define A_PHYS_MEMORY_0 _SB_MAKE64(0x0000000000) 821#define A_PHYS_MEMORY_0 _SB_MAKE64(0x0000000000)
802#define A_PHYS_MEMORY_SIZE _SB_MAKE64((256*1024*1024)) 822#define A_PHYS_MEMORY_SIZE _SB_MAKE64((256*1024*1024))
803#define A_PHYS_SYSTEM_CTL _SB_MAKE64(0x0010000000) 823#define A_PHYS_SYSTEM_CTL _SB_MAKE64(0x0010000000)
@@ -831,6 +851,7 @@
831#define A_PHYS_L2CACHE_WAY1 _SB_MAKE64(0x00D01A0000) 851#define A_PHYS_L2CACHE_WAY1 _SB_MAKE64(0x00D01A0000)
832#define A_PHYS_L2CACHE_WAY2 _SB_MAKE64(0x00D01C0000) 852#define A_PHYS_L2CACHE_WAY2 _SB_MAKE64(0x00D01C0000)
833#define A_PHYS_L2CACHE_WAY3 _SB_MAKE64(0x00D01E0000) 853#define A_PHYS_L2CACHE_WAY3 _SB_MAKE64(0x00D01E0000)
854#endif
834 855
835 856
836#endif 857#endif