diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2011-01-18 13:16:08 -0500 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2011-03-17 09:46:24 -0400 |
commit | 41d8bfaba70311c2fa0666554ef160ea8ffc9daf (patch) | |
tree | 87b236d16240872304638ed0011bb2a9c244c0ee /drivers/edac/amd64_edac.h | |
parent | 5a5d237169152d4d7e4b6105eab15831829fb8e7 (diff) |
amd64_edac: Improve DRAM address mapping
Drop static tables which map the bits in F2x80 to a chip select size in
favor of functions doing the mapping with some bit fiddling. Also, add
F15 support.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r-- | drivers/edac/amd64_edac.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index e14a8d0ad19f..8e431ab6a983 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h | |||
@@ -221,7 +221,7 @@ | |||
221 | #define DCLR0 0x90 | 221 | #define DCLR0 0x90 |
222 | #define DCLR1 0x190 | 222 | #define DCLR1 0x190 |
223 | #define REVE_WIDTH_128 BIT(16) | 223 | #define REVE_WIDTH_128 BIT(16) |
224 | #define F10_WIDTH_128 BIT(11) | 224 | #define WIDTH_128 BIT(11) |
225 | 225 | ||
226 | #define DCHR0 0x94 | 226 | #define DCHR0 0x94 |
227 | #define DCHR1 0x194 | 227 | #define DCHR1 0x194 |
@@ -445,7 +445,7 @@ struct low_ops { | |||
445 | int (*early_channel_count) (struct amd64_pvt *pvt); | 445 | int (*early_channel_count) (struct amd64_pvt *pvt); |
446 | void (*map_sysaddr_to_csrow) (struct mem_ctl_info *mci, u64 sys_addr, | 446 | void (*map_sysaddr_to_csrow) (struct mem_ctl_info *mci, u64 sys_addr, |
447 | u16 syndrome); | 447 | u16 syndrome); |
448 | int (*dbam_to_cs) (struct amd64_pvt *pvt, int cs_mode); | 448 | int (*dbam_to_cs) (struct amd64_pvt *pvt, u8 dct, unsigned cs_mode); |
449 | int (*read_dct_pci_cfg) (struct amd64_pvt *pvt, int offset, | 449 | int (*read_dct_pci_cfg) (struct amd64_pvt *pvt, int offset, |
450 | u32 *val, const char *func); | 450 | u32 *val, const char *func); |
451 | }; | 451 | }; |