Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 1 | /* |
| 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. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
Patrick Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 18 | * Foundation, Inc. |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | /* |
Kyösti Mälkki | 0a0d5e8 | 2011-10-31 14:18:33 +0200 | [diff] [blame] | 22 | * e7505.h: PCI configuration space for the Intel E7501 memory controller |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | /************ D0:F0 ************/ |
| 26 | // Register offsets |
Kyösti Mälkki | 5bd271b | 2012-04-10 16:11:53 +0300 | [diff] [blame] | 27 | #define SMRBASE 0x14 /* System Memory RCOMP Base Address Register, 32 bit? */ |
| 28 | #define MCHCFGNS 0x52 /* MCH (scrubber) configuration register, 16 bit */ |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 29 | |
Kyösti Mälkki | 5bd271b | 2012-04-10 16:11:53 +0300 | [diff] [blame] | 30 | #define PAM_0 0x59 |
| 31 | |
| 32 | #define DRB_ROW_0 0x60 /* DRAM Row Boundary register, 8 bit */ |
| 33 | #define DRB_ROW_1 0x61 |
| 34 | #define DRB_ROW_2 0x62 |
| 35 | #define DRB_ROW_3 0x63 |
| 36 | #define DRB_ROW_4 0x64 |
| 37 | #define DRB_ROW_5 0x65 |
| 38 | #define DRB_ROW_6 0x66 |
| 39 | #define DRB_ROW_7 0x67 |
| 40 | |
| 41 | #define DRA 0x70 /* DRAM Row Attributes registers, 4 x 8 bit */ |
| 42 | #define DRT 0x78 /* DRAM Timing register, 32 bit */ |
| 43 | #define DRC 0x7C /* DRAM Controller Mode register, 32 bit */ |
| 44 | #define DRDCTL 0x80 /* DRAM Read Timing Control register, 16 bit? (if similar to 855PM) */ |
| 45 | #define CKDIS 0x8C /* Clock disable register, 8 bit */ |
| 46 | #define TOLM 0xC4 /* Top of Low Memory register, 16 bit */ |
| 47 | #define REMAPBASE 0xC6 /* Remap Base Address register, 16 bit */ |
| 48 | #define REMAPLIMIT 0xC8 /* Remap Limit Address register, 16 bit */ |
| 49 | #define SKPD 0xDE /* Scratchpad register, 16 bit */ |
| 50 | #define DVNP 0xE0 /* Device Not Present, 16 bit */ |
| 51 | #define MCHTST 0xF4 /* MCH Test Register, 32 bit? (if similar to 855PM) */ |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 52 | |
| 53 | // CAS# Latency bits in the DRAM Timing (DRT) register |
| 54 | #define DRT_CAS_2_5 (0<<4) |
| 55 | #define DRT_CAS_2_0 (1<<4) |
Kyösti Mälkki | 5bd271b | 2012-04-10 16:11:53 +0300 | [diff] [blame] | 56 | #define DRT_CAS_MASK (3<<4) |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 57 | |
| 58 | // Mode Select (SMS) bits in the DRAM Controller Mode (DRC) register |
Kyösti Mälkki | 5bd271b | 2012-04-10 16:11:53 +0300 | [diff] [blame] | 59 | #define RAM_COMMAND_NOP (1<<4) |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 60 | #define RAM_COMMAND_PRECHARGE (2<<4) |
Kyösti Mälkki | 5bd271b | 2012-04-10 16:11:53 +0300 | [diff] [blame] | 61 | #define RAM_COMMAND_MRS (3<<4) |
| 62 | #define RAM_COMMAND_EMRS (4<<4) |
| 63 | #define RAM_COMMAND_CBR (6<<4) |
| 64 | #define RAM_COMMAND_NORMAL (7<<4) |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 65 | |
Kyösti Mälkki | 5bd271b | 2012-04-10 16:11:53 +0300 | [diff] [blame] | 66 | #define DRC_DONE (1 << 29) |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 67 | |
| 68 | // RCOMP Memory Map offsets |
| 69 | // Conjecture based on apparent similarity between E7501 and 855PM |
| 70 | // Intel doc. 252613-003 describes these for 855PM |
| 71 | |
Kyösti Mälkki | 5bd271b | 2012-04-10 16:11:53 +0300 | [diff] [blame] | 72 | #define SMRCTL 0x20 /* System Memory RCOMP Control Register? */ |
| 73 | #define DQCMDSTR 0x30 /* Strength control for DQ and CMD signal groups? */ |
| 74 | #define CKESTR 0x31 /* Strength control for CKE signal group? */ |
| 75 | #define CSBSTR 0x32 /* Strength control for CS# signal group? */ |
| 76 | #define CKSTR 0x33 /* Strength control for CK signal group? */ |
| 77 | #define RCVENSTR 0x34 /* Strength control for RCVEnOut# signal group? */ |
Stefan Reinauer | b15975b | 2011-10-21 12:57:59 -0700 | [diff] [blame] | 78 | |
| 79 | /************ D0:F1 ************/ |
| 80 | // Register offsets |
Kyösti Mälkki | 5bd271b | 2012-04-10 16:11:53 +0300 | [diff] [blame] | 81 | #define FERR_GLOBAL 0x40 /* First global error register, 32 bits */ |
| 82 | #define NERR_GLOBAL 0x44 /* Next global error register, 32 bits */ |
| 83 | #define DRAM_FERR 0x80 /* DRAM first error register, 8 bits */ |
| 84 | #define DRAM_NERR 0x82 /* DRAM next error register, 8 bits */ |