blob: 02ec02a0158f6054637f11b6705ad141317b8bbf [file] [log] [blame]
Stefan Reinaueraeba92a2009-04-17 08:37:18 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
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; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Stefan Reinaueraeba92a2009-04-17 08:37:18 +000014 */
15
16/* CX700 has 48 bytes of scratch registers in D0F4 starting at Reg. 0xd0 */
17#define SCRATCH_REG_BASE 0xd0
18#define SCRATCH_RANK_0 0xd0
19#define SCRATCH_RANK_1 0xd1
20#define SCRATCH_RANK_2 0xd2
21#define SCRATCH_RANK_3 0xd3
22#define SCRATCH_DIMM_NUM 0xd4
23#define SCRATCH_RANK_NUM 0xd5
24#define SCRATCH_RANK_MAP 0xd6
25#define SCRATCH_DRAM_FREQ 0xd7
26#define SCRATCH_DRAM_NB_ODT 0xd8
27#define SCRATCH_RANK0_SIZE_REG 0xe0 /* RxE0~RxE3 */
28#define SCRATCH_RANK0_MA_REG 0xe4 /* RxE4~RxE7 */
29#define SCRATCH_CHA_DQSI_LOW_REG 0xe8
30#define SCRATCH_CHA_DQSI_HIGH_REG 0xe9
31#define SCRATCH_ChA_DQSI_REG 0xea
32#define SCRATCH_DRAM_256M_BIT 0xee
33#define SCRATCH_FLAGS 0xef
34
Stefan Reinauerd2759ff2010-04-25 21:44:33 +000035#define DDRII_666 0x5
36#define DDRII_533 0x4
37#define DDRII_400 0x3
38#define DDRII_333 0x2
39#define DDRII_266 0x1
40#define DDRII_200 0x0