summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-07-07 04:10:57 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-07-07 04:10:57 +0000
commit5ffe65be31e971e2b3e35886ac3304f4ed6e1dc0 (patch)
treec23012a8af0398315fc439ee0be3984aeef82486
parent9db455126f3fd97a93af187b56cf5d78a188450d (diff)
downloadast2050-flashrom-5ffe65be31e971e2b3e35886ac3304f4ed6e1dc0.zip
ast2050-flashrom-5ffe65be31e971e2b3e35886ac3304f4ed6e1dc0.tar.gz
ichspi.c: print FADDR in ich_init_spi
We print the address registers for ICH7 and VIA at init. We should do so for ICH9 too. Corresponding to flashrom svn r1365. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: David Hendricks <dhendrix@google.com>
-rw-r--r--ichspi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ichspi.c b/ichspi.c
index 19e52d2..99c4613 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1288,6 +1288,8 @@ int ich_init_spi(struct pci_dev *dev, uint32_t base, void *rcrb,
msg_pdbg("0x06: 0x%04x (HSFC)\n", tmp2);
prettyprint_ich9_reg_hsfc(tmp2);
+ tmp = mmio_readl(ich_spibar + ICH9_REG_FADDR);
+ msg_pdbg("0x08: 0x%08x (FADDR)\n", tmp);
tmp = mmio_readl(ich_spibar + ICH9_REG_FRAP);
msg_pdbg("0x50: 0x%08x (FRAP)\n", tmp);
msg_pdbg("BMWAG 0x%02x, ", ICH_BMWAG(tmp));
OpenPOWER on IntegriCloud