blob: a2800fc8963444bafb61c1a3b5a2de93f55a5c9d [file] [log] [blame]
Steven J. Magnani71ad2f42005-09-13 14:56:44 +00001/*
Uwe Hermannc70e9fc2010-02-15 23:10:19 +00002 * This file is part of the coreboot project.
Steven J. Magnani71ad2f42005-09-13 14:56:44 +00003 *
4 * Copyright (C) 2005 Digital Design Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Steven J. Magnani71ad2f42005-09-13 14:56:44 +000015 */
16
Uwe Hermannc70e9fc2010-02-15 23:10:19 +000017/*
18 * e7501.h: PCI configuration space for the Intel E7501 memory controller
19 */
Steven J. Magnani71ad2f42005-09-13 14:56:44 +000020
Iru Caid7ee9dd2016-02-24 15:03:58 +080021#ifndef NORTHBRIDGE_INTEL_E7501_E7501_H
22#define NORTHBRIDGE_INTEL_E7501_E7501_H
23
Steven J. Magnani71ad2f42005-09-13 14:56:44 +000024/************ D0:F0 ************/
25// Register offsets
26#define MAYBE_SMRBASE 0x14 /* System Memory RCOMP Base Address Register, 32 bit? (if similar to 855PM) */
27#define MCHCFGNS 0x52 /* MCH (scrubber) configuration register, 16 bit */
28#define DRB_ROW_0 0x60 /* DRAM Row Boundary register, 8 bit */
29#define DRB_ROW_1 0x61
30#define DRB_ROW_2 0x62
31#define DRB_ROW_3 0x63
32#define DRB_ROW_4 0x64
33#define DRB_ROW_5 0x65
34#define DRB_ROW_6 0x66
35#define DRB_ROW_7 0x67
36
37#define DRA 0x70 /* DRAM Row Attributes registers, 4 x 8 bit */
38#define DRT 0x78 /* DRAM Timing register, 32 bit */
39#define DRC 0x7C /* DRAM Controller Mode register, 32 bit */
40#define MAYBE_DRDCTL 0x80 /* DRAM Read Timing Control register, 16 bit? (if similar to 855PM) */
41#define CKDIS 0x8C /* Clock disable register, 8 bit */
42#define TOLM 0xC4 /* Top of Low Memory register, 16 bit */
43#define REMAPBASE 0xC6 /* Remap Base Address register, 16 bit */
44#define REMAPLIMIT 0xC8 /* Remap Limit Address register, 16 bit */
45#define SKPD 0xDE /* Scratchpad register, 16 bit */
46#define MAYBE_MCHTST 0xF4 /* MCH Test Register, 32 bit? (if similar to 855PM) */
47
48// CAS# Latency bits in the DRAM Timing (DRT) register
49#define DRT_CAS_2_5 (0<<4)
50#define DRT_CAS_2_0 (1<<4)
51#define DRT_CAS_MASK (3<<4)
52
53// Mode Select (SMS) bits in the DRAM Controller Mode (DRC) register
54#define RAM_COMMAND_NOP (1<<4)
55#define RAM_COMMAND_PRECHARGE (2<<4)
56#define RAM_COMMAND_MRS (3<<4)
57#define RAM_COMMAND_EMRS (4<<4)
58#define RAM_COMMAND_CBR (6<<4)
59#define RAM_COMMAND_NORMAL (7<<4)
60
61
62// RCOMP Memory Map offsets
63// Conjecture based on apparent similarity between E7501 and 855PM
64// Intel doc. 252613-003 describes these for 855PM
65
66#define MAYBE_SMRCTL 0x20 /* System Memory RCOMP Control Register? */
67#define MAYBE_DQCMDSTR 0x30 /* Strength control for DQ and CMD signal groups? */
68#define MAYBE_CKESTR 0x31 /* Strength control for CKE signal group? */
69#define MAYBE_CSBSTR 0x32 /* Strength control for CS# signal group? */
70#define MAYBE_CKSTR 0x33 /* Strength control for CK signal group? */
71#define MAYBE_RCVENSTR 0x34 /* Strength control for RCVEnOut# signal group? */
72
73/************ D0:F1 ************/
74// Register offsets
75#define FERR_GLOBAL 0x40 /* First global error register, 32 bits */
76#define NERR_GLOBAL 0x44 /* Next global error register, 32 bits */
77#define DRAM_FERR 0x80 /* DRAM first error register, 8 bits */
78#define DRAM_NERR 0x82 /* DRAM next error register, 8 bits */
Iru Caid7ee9dd2016-02-24 15:03:58 +080079
80#endif /* NORTHBRIDGE_INTEL_E7501_E7501_H */