diff options
author | Patrick Georgi <pgeorgi@google.com> | 2020-12-02 12:30:04 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-12-07 14:19:51 +0000 |
commit | 02a23b510ca4bc9eb4e78b427bc93c7bd564f401 (patch) | |
tree | ac5c31bfe5417ecde2da90d05d8186b0cd66609c /src/northbridge | |
parent | 88e85b3de4ab29dca048251885815a29031948e5 (diff) |
nb/intel/i945: Introduce memmap.h
Inspired by Idca25b2e4bf65abcb and Ib275f9ad8ca9ff move all memory map
definitions into a header with a common name.
Change-Id: I32a99f70f4d2eb52367c9edfc0aa6d5da2fec03f
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48234
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/intel/i945/i945.h | 11 | ||||
-rw-r--r-- | src/northbridge/intel/i945/memmap.h | 17 |
2 files changed, 18 insertions, 10 deletions
diff --git a/src/northbridge/intel/i945/i945.h b/src/northbridge/intel/i945/i945.h index 4b79b2b145..e809794700 100644 --- a/src/northbridge/intel/i945/i945.h +++ b/src/northbridge/intel/i945/i945.h @@ -3,16 +3,7 @@ #ifndef NORTHBRIDGE_INTEL_I945_H #define NORTHBRIDGE_INTEL_I945_H -/* Northbridge BARs */ -#define DEFAULT_X60BAR 0xfed13000 -#ifndef __ACPI__ -#define DEFAULT_MCHBAR ((u8 *)0xfed14000) /* 16 KB */ -#define DEFAULT_DMIBAR ((u8 *)0xfed18000) /* 4 KB */ -#else -#define DEFAULT_MCHBAR 0xfed14000 /* 16 KB */ -#define DEFAULT_DMIBAR 0xfed18000 /* 4 KB */ -#endif -#define DEFAULT_EPBAR 0xfed19000 /* 4 KB */ +#include "memmap.h" #include <southbridge/intel/i82801gx/i82801gx.h> diff --git a/src/northbridge/intel/i945/memmap.h b/src/northbridge/intel/i945/memmap.h new file mode 100644 index 0000000000..a890445df9 --- /dev/null +++ b/src/northbridge/intel/i945/memmap.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef NORTHBRIDGE_INTEL_I945_MEMMAP_H +#define NORTHBRIDGE_INTEL_I945_MEMMAP_H + +/* Northbridge BARs */ +#define DEFAULT_X60BAR 0xfed13000 +#ifndef __ACPI__ +#define DEFAULT_MCHBAR ((u8 *)0xfed14000) /* 16 KB */ +#define DEFAULT_DMIBAR ((u8 *)0xfed18000) /* 4 KB */ +#else +#define DEFAULT_MCHBAR 0xfed14000 /* 16 KB */ +#define DEFAULT_DMIBAR 0xfed18000 /* 4 KB */ +#endif +#define DEFAULT_EPBAR 0xfed19000 /* 4 KB */ + +#endif |