blob: 9c9171d2bd85bef331a7653642d012e39daa72af [file] [log] [blame]
Stefan Reinauerb15975b2011-10-21 12:57:59 -07001/*
2 * This file is part of the coreboot project.
3 *
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.
Stefan Reinauerb15975b2011-10-21 12:57:59 -070015 */
16
17/*
Kyösti Mälkki0a0d5e82011-10-31 14:18:33 +020018 * e7505.h: PCI configuration space for the Intel E7501 memory controller
Stefan Reinauerb15975b2011-10-21 12:57:59 -070019 */
20
Iru Caid7ee9dd2016-02-24 15:03:58 +080021#ifndef NORTHBRIDGE_INTEL_E7505_E7505_H
22#define NORTHBRIDGE_INTEL_E7505_E7505_H
23
Stefan Reinauerb15975b2011-10-21 12:57:59 -070024/************ D0:F0 ************/
25// Register offsets
Kyösti Mälkki5bd271b2012-04-10 16:11:53 +030026#define SMRBASE 0x14 /* System Memory RCOMP Base Address Register, 32 bit? */
27#define MCHCFGNS 0x52 /* MCH (scrubber) configuration register, 16 bit */
Stefan Reinauerb15975b2011-10-21 12:57:59 -070028
Kyösti Mälkki5bd271b2012-04-10 16:11:53 +030029#define PAM_0 0x59
30
31#define DRB_ROW_0 0x60 /* DRAM Row Boundary register, 8 bit */
32#define DRB_ROW_1 0x61
33#define DRB_ROW_2 0x62
34#define DRB_ROW_3 0x63
35#define DRB_ROW_4 0x64
36#define DRB_ROW_5 0x65
37#define DRB_ROW_6 0x66
38#define DRB_ROW_7 0x67
39
40#define DRA 0x70 /* DRAM Row Attributes registers, 4 x 8 bit */
41#define DRT 0x78 /* DRAM Timing register, 32 bit */
42#define DRC 0x7C /* DRAM Controller Mode register, 32 bit */
43#define DRDCTL 0x80 /* DRAM Read Timing Control register, 16 bit? (if similar to 855PM) */
44#define CKDIS 0x8C /* Clock disable register, 8 bit */
45#define TOLM 0xC4 /* Top of Low Memory register, 16 bit */
46#define REMAPBASE 0xC6 /* Remap Base Address register, 16 bit */
47#define REMAPLIMIT 0xC8 /* Remap Limit Address register, 16 bit */
48#define SKPD 0xDE /* Scratchpad register, 16 bit */
49#define DVNP 0xE0 /* Device Not Present, 16 bit */
50#define MCHTST 0xF4 /* MCH Test Register, 32 bit? (if similar to 855PM) */
Stefan Reinauerb15975b2011-10-21 12:57:59 -070051
52// CAS# Latency bits in the DRAM Timing (DRT) register
53#define DRT_CAS_2_5 (0<<4)
54#define DRT_CAS_2_0 (1<<4)
Kyösti Mälkki5bd271b2012-04-10 16:11:53 +030055#define DRT_CAS_MASK (3<<4)
Stefan Reinauerb15975b2011-10-21 12:57:59 -070056
57// Mode Select (SMS) bits in the DRAM Controller Mode (DRC) register
Kyösti Mälkki5bd271b2012-04-10 16:11:53 +030058#define RAM_COMMAND_NOP (1<<4)
Stefan Reinauerb15975b2011-10-21 12:57:59 -070059#define RAM_COMMAND_PRECHARGE (2<<4)
Kyösti Mälkki5bd271b2012-04-10 16:11:53 +030060#define RAM_COMMAND_MRS (3<<4)
61#define RAM_COMMAND_EMRS (4<<4)
62#define RAM_COMMAND_CBR (6<<4)
63#define RAM_COMMAND_NORMAL (7<<4)
Stefan Reinauerb15975b2011-10-21 12:57:59 -070064
Kyösti Mälkki5bd271b2012-04-10 16:11:53 +030065#define DRC_DONE (1 << 29)
Stefan Reinauerb15975b2011-10-21 12:57:59 -070066
67// RCOMP Memory Map offsets
68// Conjecture based on apparent similarity between E7501 and 855PM
69// Intel doc. 252613-003 describes these for 855PM
70
Kyösti Mälkki5bd271b2012-04-10 16:11:53 +030071#define SMRCTL 0x20 /* System Memory RCOMP Control Register? */
72#define DQCMDSTR 0x30 /* Strength control for DQ and CMD signal groups? */
73#define CKESTR 0x31 /* Strength control for CKE signal group? */
74#define CSBSTR 0x32 /* Strength control for CS# signal group? */
75#define CKSTR 0x33 /* Strength control for CK signal group? */
76#define RCVENSTR 0x34 /* Strength control for RCVEnOut# signal group? */
Stefan Reinauerb15975b2011-10-21 12:57:59 -070077
78/************ D0:F1 ************/
79// Register offsets
Kyösti Mälkki5bd271b2012-04-10 16:11:53 +030080#define FERR_GLOBAL 0x40 /* First global error register, 32 bits */
81#define NERR_GLOBAL 0x44 /* Next global error register, 32 bits */
82#define DRAM_FERR 0x80 /* DRAM first error register, 8 bits */
83#define DRAM_NERR 0x82 /* DRAM next error register, 8 bits */
Iru Caid7ee9dd2016-02-24 15:03:58 +080084
85#endif /* NORTHBRIDGE_INTEL_E7505_E7505_H */