Florian Zumbiehl just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/383
-gerrit
commit 7ffbce8021e7368637ef3581dffa88ce475e186b
Author: Florian Zumbiehl <florz(a)florz.de>
Date: Tue Nov 1 20:19:04 2011 +0100
add support for setting the vt8237 to uncond. power on after loss of power
Change-Id: Iccc0dcd9f82e525c6c3abcec9f4ed0f2de581e63
Signed-off-by: Florian Zumbiehl <florz(a)florz.de>
---
src/southbridge/via/vt8237r/Kconfig | 4 ++++
src/southbridge/via/vt8237r/lpc.c | 9 +++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/southbridge/via/vt8237r/Kconfig b/src/southbridge/via/vt8237r/Kconfig
index d0a6deb..e4f73da 100644
--- a/src/southbridge/via/vt8237r/Kconfig
+++ b/src/southbridge/via/vt8237r/Kconfig
@@ -31,3 +31,7 @@ config BOOTBLOCK_SOUTHBRIDGE_INIT
string
default "southbridge/via/vt8237r/bootblock.c"
depends on SOUTHBRIDGE_VIA_VT8237R
+
+config VT8237R_ON_AFTER_POWER_LOSS
+ bool
+
diff --git a/src/southbridge/via/vt8237r/lpc.c b/src/southbridge/via/vt8237r/lpc.c
index 4b3064a..ad0327a 100644
--- a/src/southbridge/via/vt8237r/lpc.c
+++ b/src/southbridge/via/vt8237r/lpc.c
@@ -511,6 +511,15 @@ static void vt8237_common_init(struct device *dev)
*/
pci_write_config8(dev, 0x5b, 0xb);
+#if CONFIG_VT8237R_ON_AFTER_POWER_LOSS
+ /* make it so the board unconditionally powers on after loss of power */
+ enables = pci_read_config8(dev, 0x58);
+ pci_write_config8(dev, 0x58, enables & ~0x02);
+ outb(0x0d, 0x70);
+ outb(0x00, 0x71);
+ pci_write_config8(dev, 0x58, enables);
+#endif
+
/* Set 0x58 to 0x43 APIC and RTC. */
pci_write_config8(dev, 0x58, 0x43);
Florian Zumbiehl just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/374
-gerrit
commit 222716b03e7f0eb2f09929c5860e7d45e749f73c
Author: Florian Zumbiehl <florz(a)florz.de>
Date: Tue Nov 1 20:17:41 2011 +0100
compile code for CONFIG_SOUTHBRIDGE_VIA_K8T800_OLD
make code dependent on CONFIG_SOUTHBRIDGE_VIA_K8T800 also be included
for CONFIG_SOUTHBRIDGE_VIA_K8T800_OLD
Change-Id: I9f4624d08de2790fb513a88ed6207e28e7fbc733
Signed-off-by: Florian Zumbiehl <florz(a)florz.de>
---
src/southbridge/via/k8t890/romstrap.inc | 2 +-
src/southbridge/via/vt8237r/lpc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/southbridge/via/k8t890/romstrap.inc b/src/southbridge/via/k8t890/romstrap.inc
index 5b24948..a3814b0 100644
--- a/src/southbridge/via/k8t890/romstrap.inc
+++ b/src/southbridge/via/k8t890/romstrap.inc
@@ -33,7 +33,7 @@ __romstrap_start:
* Below are some Dev0 Func2 HT control registers values,
* depending on strap pin, one of below lines is used.
*/
-#if CONFIG_SOUTHBRIDGE_VIA_K8M800 || CONFIG_SOUTHBRIDGE_VIA_K8T800
+#if CONFIG_SOUTHBRIDGE_VIA_K8M800 || CONFIG_SOUTHBRIDGE_VIA_K8T800 || CONFIG_SOUTHBRIDGE_VIA_K8T800_OLD
tblpointer:
.long 0x50220000, 0X619707C2
diff --git a/src/southbridge/via/vt8237r/lpc.c b/src/southbridge/via/vt8237r/lpc.c
index e599517..b1e1afe 100644
--- a/src/southbridge/via/vt8237r/lpc.c
+++ b/src/southbridge/via/vt8237r/lpc.c
@@ -298,7 +298,7 @@ static void vt8237r_init(struct device *dev)
pci_write_config8(dev, 0x48, 0x0c);
#else
- #if CONFIG_SOUTHBRIDGE_VIA_K8T800
+ #if CONFIG_SOUTHBRIDGE_VIA_K8T800 || CONFIG_SOUTHBRIDGE_VIA_K8T800_OLD
/* It seems that when we pair with the K8T800, we need to disable
* the A2 mask
*/
Florian Zumbiehl just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/375
-gerrit
commit 365b40e2392e3f0bbc57297daf5daa79c3b5d223
Author: Florian Zumbiehl <florz(a)florz.de>
Date: Tue Nov 1 20:18:27 2011 +0100
configure VT8237R ROM decode according to CONFIG_ROM_SIZE
Change-Id: I217813f42a52f759bf1010f4c5af62f3c6e5ec6b
Signed-off-by: Florian Zumbiehl <florz(a)florz.de>
---
src/southbridge/via/vt8237r/lpc.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/southbridge/via/vt8237r/lpc.c b/src/southbridge/via/vt8237r/lpc.c
index b1e1afe..4b3064a 100644
--- a/src/southbridge/via/vt8237r/lpc.c
+++ b/src/southbridge/via/vt8237r/lpc.c
@@ -447,7 +447,10 @@ static void vt8237_common_init(struct device *dev)
* 0 FFC00000h-FFC7FFFFh
* So 0x7f here sets ROM decode to FFC00000-FFFFFFFF or 4Mbyte.
*/
- pci_write_config8(dev, 0x41, 0x7f);
+#if CONFIG_ROM_SIZE > 0x400000
+#error ROMs larger than 4MB are not supported by VT8237
+#endif
+ pci_write_config8(dev, 0x41, (~(0xff>>((CONFIG_ROM_SIZE+(512*1024-1))/(512*1024))))&0x7f);
#endif
/*
Florian Zumbiehl just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/391
-gerrit
commit e108b6d924cffe8634faffb599f2309039dbcb28
Author: Florian Zumbiehl <florz(a)florz.de>
Date: Wed Nov 2 09:46:34 2011 +0100
fix superiotool for NCT6776F
The current code exits config mode of the NCT6776F immediately after
detection, so the register dump shows all 0xffs. This patch adds code to
re-enter config mode for the register dump so that the register contents
can be read.
Change-Id: I4ad0c108b6411a665e31f55dea4b91ca77d1a5f7
Signed-off-by: Florian Zumbiehl <florz(a)florz.de>
---
util/superiotool/nuvoton.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/util/superiotool/nuvoton.c b/util/superiotool/nuvoton.c
index 6a1a75c..ed2eabc 100644
--- a/util/superiotool/nuvoton.c
+++ b/util/superiotool/nuvoton.c
@@ -255,7 +255,9 @@ void probe_idregs_nuvoton(uint16_t port)
printf("Found Nuvoton %s (id=0x%02x) at 0x%x\n",
get_superio_name(reg_table, chip_id), chip_id, port);
chip_found = 1;
+ enter_conf_mode_winbond_fintek_ite_8787(port);
dump_superio("Nuvoton", reg_table, port, chip_id, LDN_SEL);
+ exit_conf_mode_winbond_fintek_ite_8787(port);
return;
}