#ifndef _ASM_POWERPC_FSP_DCR_H_
#define _ASM_POWERPC_FSP_DCR_H_
#ifdef __KERNEL__
#include <asm /dcr.h>
#define DCRN_CMU_ADDR 0 x00C /* Chip management unic addr */
#define DCRN_CMU_DATA 0 x00D /* Chip management unic data */
/* PLB4 Arbiter */
#define DCRN_PLB4_PCBI 0 x010 /* PLB Crossbar ID/Rev Register */
#define DCRN_PLB4_P0ACR 0 x011 /* PLB0 Arbiter Control Register */
#define DCRN_PLB4_P0ESRL 0 x012 /* PLB0 Error Status Register Low */
#define DCRN_PLB4_P0ESRH 0 x013 /* PLB0 Error Status Register High */
#define DCRN_PLB4_P0EARL 0 x014 /* PLB0 Error Address Register Low */
#define DCRN_PLB4_P0EARH 0 x015 /* PLB0 Error Address Register High */
#define DCRN_PLB4_P0ESRLS 0 x016 /* PLB0 Error Status Register Low Set*/
#define DCRN_PLB4_P0ESRHS 0 x017 /* PLB0 Error Status Register High */
#define DCRN_PLB4_PCBC 0 x018 /* PLB Crossbar Control Register */
#define DCRN_PLB4_P1ACR 0 x019 /* PLB1 Arbiter Control Register */
#define DCRN_PLB4_P1ESRL 0 x01A /* PLB1 Error Status Register Low */
#define DCRN_PLB4_P1ESRH 0 x01B /* PLB1 Error Status Register High */
#define DCRN_PLB4_P1EARL 0 x01C /* PLB1 Error Address Register Low */
#define DCRN_PLB4_P1EARH 0 x01D /* PLB1 Error Address Register High */
#define DCRN_PLB4_P1ESRLS 0 x01E /* PLB1 Error Status Register Low Set*/
#define DCRN_PLB4_P1ESRHS 0 x01F /*PLB1 Error Status Register High Set*/
/* PLB4/OPB bridge 0, 1, 2, 3 */
#define DCRN_PLB4OPB0_BASE 0 x020
#define DCRN_PLB4OPB1_BASE 0 x030
#define DCRN_PLB4OPB2_BASE 0 x040
#define DCRN_PLB4OPB3_BASE 0 x050
#define PLB4OPB_GESR0 0 x0 /* Error status 0: Master Dev 0-3 */
#define PLB4OPB_GEAR 0 x2 /* Error Address Register */
#define PLB4OPB_GEARU 0 x3 /* Error Upper Address Register */
#define PLB4OPB_GESR1 0 x4 /* Error Status 1: Master Dev 4-7 */
#define PLB4OPB_GESR2 0 xC /* Error Status 2: Master Dev 8-11 */
/* PLB4-to-AHB Bridge */
#define DCRN_PLB4AHB_BASE 0 x400
#define DCRN_PLB4AHB_SEUAR (DCRN_PLB4AHB_BASE + 1 )
#define DCRN_PLB4AHB_SELAR (DCRN_PLB4AHB_BASE + 2 )
#define DCRN_PLB4AHB_ESR (DCRN_PLB4AHB_BASE + 3 )
#define DCRN_AHBPLB4_ESR (DCRN_PLB4AHB_BASE + 8 )
#define DCRN_AHBPLB4_EAR (DCRN_PLB4AHB_BASE + 9 )
/* PLB6 Controller */
#define DCRN_PLB6_BASE 0 x11111300
#define DCRN_PLB6_CR0 (DCRN_PLB6_BASE)
#define DCRN_PLB6_ERR (DCRN_PLB6_BASE + 0 x0B)
#define DCRN_PLB6_HD (DCRN_PLB6_BASE + 0 x0E)
#define DCRN_PLB6_SHD (DCRN_PLB6_BASE + 0 x10)
/* PLB4-to-PLB6 Bridge */
#define DCRN_PLB4PLB6_BASE 0 x11111320
#define DCRN_PLB4PLB6_ESR (DCRN_PLB4PLB6_BASE + 1 )
#define DCRN_PLB4PLB6_EARH (DCRN_PLB4PLB6_BASE + 3 )
#define DCRN_PLB4PLB6_EARL (DCRN_PLB4PLB6_BASE + 4 )
/* PLB6-to-PLB4 Bridge */
#define DCRN_PLB6PLB4_BASE 0 x11111350
#define DCRN_PLB6PLB4_ESR (DCRN_PLB6PLB4_BASE + 1 )
#define DCRN_PLB6PLB4_EARH (DCRN_PLB6PLB4_BASE + 3 )
#define DCRN_PLB6PLB4_EARL (DCRN_PLB6PLB4_BASE + 4 )
/* PLB6-to-MCIF Bridge */
#define DCRN_PLB6MCIF_BASE 0 x11111380
#define DCRN_PLB6MCIF_BESR0 (DCRN_PLB6MCIF_BASE + 0 )
#define DCRN_PLB6MCIF_BESR1 (DCRN_PLB6MCIF_BASE + 1 )
#define DCRN_PLB6MCIF_BEARL (DCRN_PLB6MCIF_BASE + 2 )
#define DCRN_PLB6MCIF_BEARH (DCRN_PLB6MCIF_BASE + 3 )
/* Configuration Logic Registers */
#define DCRN_CONF_BASE 0 x11111400
#define DCRN_CONF_FIR_RWC (DCRN_CONF_BASE + 0 x3A)
#define DCRN_CONF_EIR_RS (DCRN_CONF_BASE + 0 x3E)
#define DCRN_CONF_RPERR0 (DCRN_CONF_BASE + 0 x4D)
#define DCRN_CONF_RPERR1 (DCRN_CONF_BASE + 0 x4E)
#define DCRN_L2CDCRAI 0 x11111100
#define DCRN_L2CDCRDI 0 x11111104
/* L2 indirect addresses */
#define L2MCK 0 x120
#define L2MCKEN 0 x130
#define L2INT 0 x150
#define L2INTEN 0 x160
#define L2LOG0 0 x180
#define L2LOG1 0 x184
#define L2LOG2 0 x188
#define L2LOG3 0 x18C
#define L2LOG4 0 x190
#define L2LOG5 0 x194
#define L2PLBSTAT0 0 x300
#define L2PLBSTAT1 0 x304
#define L2PLBMCKEN0 0 x330
#define L2PLBMCKEN1 0 x334
#define L2PLBINTEN0 0 x360
#define L2PLBINTEN1 0 x364
#define L2ARRSTAT0 0 x500
#define L2ARRSTAT1 0 x504
#define L2ARRSTAT2 0 x508
#define L2ARRMCKEN0 0 x530
#define L2ARRMCKEN1 0 x534
#define L2ARRMCKEN2 0 x538
#define L2ARRINTEN0 0 x560
#define L2ARRINTEN1 0 x564
#define L2ARRINTEN2 0 x568
#define L2CPUSTAT 0 x700
#define L2CPUMCKEN 0 x730
#define L2CPUINTEN 0 x760
#define L2RACSTAT0 0 x900
#define L2RACMCKEN0 0 x930
#define L2RACINTEN0 0 x960
#define L2WACSTAT0 0 xD00
#define L2WACSTAT1 0 xD04
#define L2WACSTAT2 0 xD08
#define L2WACMCKEN0 0 xD30
#define L2WACMCKEN1 0 xD34
#define L2WACMCKEN2 0 xD38
#define L2WACINTEN0 0 xD60
#define L2WACINTEN1 0 xD64
#define L2WACINTEN2 0 xD68
#define L2WDFSTAT 0 xF00
#define L2WDFMCKEN 0 xF30
#define L2WDFINTEN 0 xF60
/* DDR3/4 Memory Controller */
#define DCRN_DDR34_BASE 0 x11120000
#define DCRN_DDR34_MCSTAT 0 x10
#define DCRN_DDR34_MCOPT1 0 x20
#define DCRN_DDR34_MCOPT2 0 x21
#define DCRN_DDR34_PHYSTAT 0 x32
#define DCRN_DDR34_CFGR0 0 x40
#define DCRN_DDR34_CFGR1 0 x41
#define DCRN_DDR34_CFGR2 0 x42
#define DCRN_DDR34_CFGR3 0 x43
#define DCRN_DDR34_SCRUB_CNTL 0 xAA
#define DCRN_DDR34_SCRUB_INT 0 xAB
#define DCRN_DDR34_SCRUB_START_ADDR 0 xB0
#define DCRN_DDR34_SCRUB_END_ADDR 0 xD0
#define DCRN_DDR34_ECCERR_ADDR_PORT0 0 xE0
#define DCRN_DDR34_ECCERR_ADDR_PORT1 0 xE1
#define DCRN_DDR34_ECCERR_ADDR_PORT2 0 xE2
#define DCRN_DDR34_ECCERR_ADDR_PORT3 0 xE3
#define DCRN_DDR34_ECCERR_COUNT_PORT0 0 xE4
#define DCRN_DDR34_ECCERR_COUNT_PORT1 0 xE5
#define DCRN_DDR34_ECCERR_COUNT_PORT2 0 xE6
#define DCRN_DDR34_ECCERR_COUNT_PORT3 0 xE7
#define DCRN_DDR34_ECCERR_PORT0 0 xF0
#define DCRN_DDR34_ECCERR_PORT1 0 xF2
#define DCRN_DDR34_ECCERR_PORT2 0 xF4
#define DCRN_DDR34_ECCERR_PORT3 0 xF6
#define DCRN_DDR34_ECC_CHECK_PORT0 0 xF8
#define DCRN_DDR34_ECC_CHECK_PORT1 0 xF9
#define DCRN_DDR34_ECC_CHECK_PORT2 0 xF9
#define DCRN_DDR34_ECC_CHECK_PORT3 0 xFB
#define DDR34_SCRUB_CNTL_STOP 0 x00000000
#define DDR34_SCRUB_CNTL_SCRUB 0 x80000000
#define DDR34_SCRUB_CNTL_UE_STOP 0 x20000000
#define DDR34_SCRUB_CNTL_CE_STOP 0 x10000000
#define DDR34_SCRUB_CNTL_RANK_EN 0 x00008000
/* PLB-Attached DDR3/4 Core Wrapper */
#define DCRN_CW_BASE 0 x11111800
#define DCRN_CW_MCER0 0 x00
#define DCRN_CW_MCER1 0 x01
#define DCRN_CW_MCER_AND0 0 x02
#define DCRN_CW_MCER_AND1 0 x03
#define DCRN_CW_MCER_OR0 0 x04
#define DCRN_CW_MCER_OR1 0 x05
#define DCRN_CW_MCER_MASK0 0 x06
#define DCRN_CW_MCER_MASK1 0 x07
#define DCRN_CW_MCER_MASK_AND0 0 x08
#define DCRN_CW_MCER_MASK_AND1 0 x09
#define DCRN_CW_MCER_MASK_OR0 0 x0A
#define DCRN_CW_MCER_MASK_OR1 0 x0B
#define DCRN_CW_MCER_ACTION0 0 x0C
#define DCRN_CW_MCER_ACTION1 0 x0D
#define DCRN_CW_MCER_WOF0 0 x0E
#define DCRN_CW_MCER_WOF1 0 x0F
#define DCRN_CW_LFIR 0 x10
#define DCRN_CW_LFIR_AND 0 x11
#define DCRN_CW_LFIR_OR 0 x12
#define DCRN_CW_LFIR_MASK 0 x13
#define DCRN_CW_LFIR_MASK_AND 0 x14
#define DCRN_CW_LFIR_MASK_OR 0 x15
#define CW_MCER0_MEM_CE 0 x00020000
/* CMU addresses */
#define CMUN_CRCS 0 x00 /* Chip Reset Control/Status */
#define CMUN_CONFFIR0 0 x20 /* Config Reg Parity FIR 0 */
#define CMUN_CONFFIR1 0 x21 /* Config Reg Parity FIR 1 */
#define CMUN_CONFFIR2 0 x22 /* Config Reg Parity FIR 2 */
#define CMUN_CONFFIR3 0 x23 /* Config Reg Parity FIR 3 */
#define CMUN_URCR3_RS 0 x24 /* Unit Reset Control Reg 3 Set */
#define CMUN_URCR3_C 0 x25 /* Unit Reset Control Reg 3 Clear */
#define CMUN_URCR3_P 0 x26 /* Unit Reset Control Reg 3 Pulse */
#define CMUN_PW0 0 x2C /* Pulse Width Register */
#define CMUN_URCR0_P 0 x2D /* Unit Reset Control Reg 0 Pulse */
#define CMUN_URCR1_P 0 x2E /* Unit Reset Control Reg 1 Pulse */
#define CMUN_URCR2_P 0 x2F /* Unit Reset Control Reg 2 Pulse */
#define CMUN_CLS_RW 0 x30 /* Code Load Status (Read/Write) */
#define CMUN_CLS_S 0 x31 /* Code Load Status (Set) */
#define CMUN_CLS_C 0 x32 /* Code Load Status (Clear */
#define CMUN_URCR2_RS 0 x33 /* Unit Reset Control Reg 2 Set */
#define CMUN_URCR2_C 0 x34 /* Unit Reset Control Reg 2 Clear */
#define CMUN_CLKEN0 0 x35 /* Clock Enable 0 */
#define CMUN_CLKEN1 0 x36 /* Clock Enable 1 */
#define CMUN_PCD0 0 x37 /* PSI clock divider 0 */
#define CMUN_PCD1 0 x38 /* PSI clock divider 1 */
#define CMUN_TMR0 0 x39 /* Reset Timer */
#define CMUN_TVS0 0 x3A /* TV Sense Reg 0 */
#define CMUN_TVS1 0 x3B /* TV Sense Reg 1 */
#define CMUN_MCCR 0 x3C /* DRAM Configuration Reg */
#define CMUN_FIR0 0 x3D /* Fault Isolation Reg 0 */
#define CMUN_FMR0 0 x3E /* FIR Mask Reg 0 */
#define CMUN_ETDRB 0 x3F /* ETDR Backdoor */
/* CRCS bit fields */
#define CRCS_STAT_MASK 0 xF0000000
#define CRCS_STAT_POR 0 x10000000
#define CRCS_STAT_PHR 0 x20000000
#define CRCS_STAT_PCIE 0 x30000000
#define CRCS_STAT_CRCS_SYS 0 x40000000
#define CRCS_STAT_DBCR_SYS 0 x50000000
#define CRCS_STAT_HOST_SYS 0 x60000000
#define CRCS_STAT_CHIP_RST_B 0 x70000000
#define CRCS_STAT_CRCS_CHIP 0 x80000000
#define CRCS_STAT_DBCR_CHIP 0 x90000000
#define CRCS_STAT_HOST_CHIP 0 xA0000000
#define CRCS_STAT_PSI_CHIP 0 xB0000000
#define CRCS_STAT_CRCS_CORE 0 xC0000000
#define CRCS_STAT_DBCR_CORE 0 xD0000000
#define CRCS_STAT_HOST_CORE 0 xE0000000
#define CRCS_STAT_PCIE_HOT 0 xF0000000
#define CRCS_STAT_SELF_CORE 0 x40000000
#define CRCS_STAT_SELF_CHIP 0 x50000000
#define CRCS_WATCHE 0 x08000000
#define CRCS_CORE 0 x04000000 /* Reset PPC440 core */
#define CRCS_CHIP 0 x02000000 /* Chip Reset */
#define CRCS_SYS 0 x01000000 /* System Reset */
#define CRCS_WRCR 0 x00800000 /* Watchdog reset on core reset */
#define CRCS_EXTCR 0 x00080000 /* CHIP_RST_B triggers chip reset */
#define CRCS_PLOCK 0 x00000002 /* PLL Locked */
#define mtcmu(reg, data) \
do { \
mtdcr(DCRN_CMU_ADDR, reg); \
mtdcr(DCRN_CMU_DATA, data); \
} while (0 )
#define mfcmu(reg)\
({u32 data; \
mtdcr(DCRN_CMU_ADDR, reg); \
data = mfdcr(DCRN_CMU_DATA); \
data; })
#define mtl2(reg, data) \
do { \
mtdcr(DCRN_L2CDCRAI, reg); \
mtdcr(DCRN_L2CDCRDI, data); \
} while (0 )
#define mfl2(reg) \
({u32 data; \
mtdcr(DCRN_L2CDCRAI, reg); \
data = mfdcr(DCRN_L2CDCRDI); \
data; })
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_FSP2_DCR_H_ */
Messung V0.5 in Prozent C=91 H=88 G=89
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland