blob: 3a2b3f4f4bddb8ff65bce34209ffc8546a314a29 [file] [log] [blame]
Uwe Hermannc0defea2006-11-10 09:04:12 +00001/*
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002 * This file is part of the coreboot project.
Uwe Hermannc0defea2006-11-10 09:04:12 +00003 *
Uwe Hermannc0defea2006-11-10 09:04:12 +00004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
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.
Uwe Hermannc0defea2006-11-10 09:04:12 +000014 */
15
Iru Caid7ee9dd2016-02-24 15:03:58 +080016#ifndef NORTHBRIDGE_INTEL_I440BX_I440BX_H
17#define NORTHBRIDGE_INTEL_I440BX_I440BX_H
18
Uwe Hermanned7bab82006-11-11 18:46:38 +000019/*
Uwe Hermannc0defea2006-11-10 09:04:12 +000020 * Datasheet:
21 * - Name: Intel 440BX AGPset: 82443BX Host Bridge/Controller
22 * - URL: http://www.intel.com/design/chipsets/datashts/290633.htm
23 * - PDF: http://www.intel.com/design/chipsets/datashts/29063301.pdf
24 * - Order Number: 290633-001
25 */
26
27/*
28 * Host-to-PCI Bridge Registers.
29 * The values in parenthesis are the default values as per datasheet.
30 * Any addresses between 0x00 and 0xff not listed below are either
31 * Reserved or Intel Reserved and should not be touched.
Uwe Hermanned7bab82006-11-11 18:46:38 +000032 */
Keith Hui59356ca2010-03-06 18:16:25 +000033
Uwe Hermannc0defea2006-11-10 09:04:12 +000034#define NBXCFG 0x50 /* 440BX Configuration (0x0000:00S0_0000_000S_0S00b). */
35#define DRAMC 0x57 /* DRAM Control (00S0_0000b). */
36#define DRAMT 0x58 /* DRAM Timing (0x03). */
37#define PAM 0x59 /* Programmable Attribute Map, 7 registers (0x00). */
Keith Hui59356ca2010-03-06 18:16:25 +000038#define PAM0 0x59
39#define PAM1 0x5a
40#define PAM2 0x5b
41#define PAM3 0x5c
42#define PAM4 0x5d
43#define PAM5 0x5e
44#define PAM6 0x5f
Uwe Hermannc0defea2006-11-10 09:04:12 +000045#define DRB 0x60 /* DRAM Row Boundary, 8 registers (0x01). */
Keith Hui59356ca2010-03-06 18:16:25 +000046#define DRB0 0x60
47#define DRB1 0x61
48#define DRB2 0x62
49#define DRB3 0x63
50#define DRB4 0x64
51#define DRB5 0x65
52#define DRB6 0x66
53#define DRB7 0x67
Uwe Hermannc0defea2006-11-10 09:04:12 +000054#define FDHC 0x68 /* Fixed SDRAM Hole Control (0x00). */
55#define MBSC 0x69 /* Memory Buffer Strength Control (0x0000-0000-0000). */
56#define SMRAM 0x72 /* System Management RAM Control (0x02). */
57#define ESMRAMC 0x73 /* Extended System Management RAM Control (0x38). */
58#define RPS 0x74 /* SDRAM Row Page Size (0x0000). */
59#define SDRAMC 0x76 /* SDRAM Control Register (0x0000). */
60#define PGPOL 0x78 /* Paging Policy Register (0x00). */
61#define PMCR 0x7a /* Power Management Control Register (0000_S0S0b). */
62#define SCRR 0x7b /* Suspend CBR Refresh Rate Register (0x0038). */
63#define EAP 0x80 /* Error Address Pointer Register (0x00000000). */
64#define ERRCMD 0x90 /* Error Command Register (0x80). */
65#define ERRSTS 0x91 /* Error Status (0x0000). */
66// TODO: AGP stuff.
Keith Hui59356ca2010-03-06 18:16:25 +000067#define ACAPID 0xa0 /* AGP Capability Identifier (0x00100002 or 0x00000000) */
68#define AGPSTAT 0xa4 /* AGP Status Register (0x1f000203, read only) */
69#define AGPCMD 0xa8 /* AGP Command Register (0x00000000) */
70#define AGPCTRL 0xb0 /* AGP Control Register (0x00000000) */
71#define APSIZE 0xb4 /* Aperture Size Control Register (0x00) */
72#define ATTBASE 0xb8 /* Aperture Translation Table (0x00000000) */
Stefan Reinauer14e22772010-04-27 06:56:47 +000073
Uwe Hermannc0defea2006-11-10 09:04:12 +000074#define MBFS 0xca /* Memory Buffer Frequency Select (0x000000). */
75#define BSPAD 0xd0 /* BIOS Scratch Pad (0x000..000). */
Stefan Reinauer14e22772010-04-27 06:56:47 +000076#define BSPAD0 0xd0 /* These are free for our use. */
Keith Hui59356ca2010-03-06 18:16:25 +000077#define BSPAD1 0xd1
78#define BSPAD2 0xd2
79#define BSPAD3 0xd3
80#define BSPAD4 0xd4
81#define BSPAD5 0xd5
82#define BSPAD6 0xd6
83#define BSPAD7 0xd7
Uwe Hermannc0defea2006-11-10 09:04:12 +000084#define DWTC 0xe0 /* DRAM Write Thermal Throttling Control (0x000..000). */
85#define DRTC 0xe8 /* DRAM Read Thermal Throttling Control (0x000..000). */
86#define BUFFC 0xf0 /* Buffer Control Register (0x0000). */
Iru Caid7ee9dd2016-02-24 15:03:58 +080087
Keith Hui9aa45e62017-07-20 21:00:56 -040088#define NB PCI_DEV(0, 0, 0)
89
Iru Caid7ee9dd2016-02-24 15:03:58 +080090#endif /* NORTHBRIDGE_INTEL_I440BX_I440BX_H */