[coreboot-gerrit] Change in coreboot[master]: mb/asrock/g41c-gs: Add decode range for Environment Controller

Arthur Heymans (Code Review) gerrit at coreboot.org
Sat Dec 30 15:23:10 CET 2017


Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/23048


Change subject: mb/asrock/g41c-gs: Add decode range for Environment Controller
......................................................................

mb/asrock/g41c-gs: Add decode range for Environment Controller

This seems to have been forgotten in the original patch which added
the Asrock G41C-GS R2.0, but all variants have a similar SuperIO and
set the Environment Controller IO decode address to the same value.

TEST: see if the Linux module w832627dhg can properly read the
sensors fan/temp/etc... (currently not further configured so values
could be garbage).

Change-Id: Ibff3dffaf0f5c32c3b12336a23839dee501e7160
Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
M src/mainboard/asrock/g41c-gs/romstage.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/48/23048/1

diff --git a/src/mainboard/asrock/g41c-gs/romstage.c b/src/mainboard/asrock/g41c-gs/romstage.c
index 07edfb4..9acf6c1 100644
--- a/src/mainboard/asrock/g41c-gs/romstage.c
+++ b/src/mainboard/asrock/g41c-gs/romstage.c
@@ -82,6 +82,8 @@
 	/* Decode range */
 	pci_write_config16(PCI_DEV(0, 0x1f, 0), LPC_EN, CNF1_LPC_EN
 			| KBC_LPC_EN | LPT_LPC_EN | COMA_LPC_EN);
+	/* GEN1_DEC Enable IO range 0x290-29c */
+	pci_write_config32(LPC_DEV, 0x84 , 0x000c0290);
 }
 
 void mainboard_romstage_entry(unsigned long bist)

-- 
To view, visit https://review.coreboot.org/23048
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibff3dffaf0f5c32c3b12336a23839dee501e7160
Gerrit-Change-Number: 23048
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171230/4fab4d3c/attachment.html>


More information about the coreboot-gerrit mailing list