aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/dmp/vortex86ex/northbridge.h
blob: d5bb6f1c3ae71bdc7a9e07aa0b2cf7d699277f77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * This file is part of the coreboot project.
 *
 * Copyright (C) 2013 DMP Electronics Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef NORTHBRIDGE_H
#define NORTHBRIDGE_H

#define	NB			PCI_DEV(0, 0, 0)
#define	NB_REG_SPI_BASE		0x40
#define	NB_REG_CLK_OUT_CTL	0x48
#define	NB_REG_PCI_CLK_CTL	0x4b
#define	NB_REG_STRAP		0x60
#define	NB_REG_STRAP2		0x64
#define	NB_REG_MBR		0x6c
#define	NB_REG_DDR3_CFG		0x74
#define	NB_REG_DDR3_MTR1	0x78
#define	NB_REG_DDR3_MTR2	0x7c
#define	NB_REG_SMM		0x83
#define	NB_REG_MAR		0x84
#define	NB_REG_CID		0x90
#define	NB_REG_S1R		0x94
#define	NB_REG_S2R		0x98
#define	NB_REG_S3R		0x9c
#define	NB_REG_HOST_CTL		0xa0
#define	NB_REG_CPU_MBCR		0xc4
#define	NB_REG_CDR		0xd0
#define	NB_REG_PACR		0xf0
#define	NB_REG_PMCR		0xf4
#define	NB_REG_PCI_TARGET	0xf8
#define	NB_REG_PCSCR		0xfc

/* Additional "virtual" device, just extension of NB */
#define NB1			PCI_DEV(0, 0, 1)
#define NB1_REG_FJZ_PHY_CTL1	0x80
#define NB1_REG_FJZ_PHY_CTL2	0x84
#define NB1_REG_FJZ_PHY_CTL3	0x88
#define NB1_REG_FJZ_DRAM_CTL1	0x90
#define NB1_REG_FJZ_DRAM_CTL2	0x94
#define NB1_REG_FJZ_DRAM_CTL3	0x98
#define NB1_REG_FJZ_DRAM_CTL4	0x9c
#define NB1_REG_PLL_TEST_CTL	0xa8
#define NB1_REG_DDR3_PWR_SAV	0xbc
#define NB1_REG_DDR3_CTL_OPT1	0xc0
#define NB1_REG_DDR3_CTL_OPT3	0xc8
#define NB1_REG_DDR3_CTL_OPT4	0xcc
#define NB1_REG_DDR3_CTL_OPT5	0xce
#define NB1_REG_PLL_TEST_MODE	0xd0
#define NB1_REG_L2_CACHE_CTL	0xe8
#define NB1_REG_SSCR		0xec
#define NB1_REG_NB_CTL_OPT1	0xf4
#define NB1_REG_UPDATE_PHY_IO	0xf8
#define NB1_REG_RESET_DRAMC_PHY	0xfa

#endif				/* NORTHBRIDGE_H */