Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215963
b: refs/heads/master
c: af3d883
h: refs/heads/master
i:
  215961: 2a14482
  215959: 7ffa77f
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Aug 30, 2010
1 parent fa8d84a commit 68b8afd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fcaf780b2ad352edaeb1d1c07a6da053266b1eed
refs/heads/master: af3d8831e7e2036cd453c852d206b892b19c8820
28 changes: 20 additions & 8 deletions trunk/drivers/edac/i7300_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,19 @@
*/

/* OFFSETS for Function 0 */
#define AMBASE 0x48 /* AMB Mem Mapped Reg Region Base */
#define MAXCH 0x56 /* Max Channel Number */
#define MAXDIMMPERCH 0x57 /* Max DIMM PER Channel Number */
#define AMBASE 0x48 /* AMB Mem Mapped Reg Region Base */
#define MAXCH 0x56 /* Max Channel Number */
#define MAXDIMMPERCH 0x57 /* Max DIMM PER Channel Number */

/* OFFSETS for Function 1 */
#define TOLM 0x6C
#define REDMEMB 0x7C
#define MC_SETTINGS 0x40

#define MIR0 0x80
#define MIR1 0x84
#define MIR2 0x88
#define TOLM 0x6C
#define REDMEMB 0x7C

#define MIR0 0x80
#define MIR1 0x84
#define MIR2 0x88

#if 0
#define AMIR0 0x8c
Expand Down Expand Up @@ -393,6 +395,7 @@ struct i7300_pvt {

u16 tolm; /* top of low memory */
u64 ambase; /* AMB BAR */
u32 mc_settings;

u16 mir[MAX_MIR];

Expand Down Expand Up @@ -1020,6 +1023,15 @@ static int i7300_get_mc_regs(struct mem_ctl_info *mci)
debugf2("Actual TOLM byte addr=%u.%03u GB (0x%x)\n",
actual_tolm/1000, actual_tolm % 1000, pvt->tolm << 28);

/* Get memory controller settings */
pci_read_config_dword(pvt->branchmap_werrors, MC_SETTINGS,
&pvt->mc_settings);
debugf0("Memory controller operating on %s mode\n",
pvt->mc_settings & (1 << 16)? "mirrored" : "non-mirrored");
debugf0("Error detection is %s\n",
pvt->mc_settings & (1 << 5)? "enabled" : "disabled");

/* Get Memory Interleave Range registers */
pci_read_config_word(pvt->branchmap_werrors, MIR0, &pvt->mir[0]);
pci_read_config_word(pvt->branchmap_werrors, MIR1, &pvt->mir[1]);
pci_read_config_word(pvt->branchmap_werrors, MIR2, &pvt->mir[2]);
Expand Down

0 comments on commit 68b8afd

Please sign in to comment.