summaryrefslogtreecommitdiff
path: root/util/autoport
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2017-07-07 13:49:08 +0800
committerPatrick Rudolph <siro@das-labor.org>2017-11-01 15:27:20 +0000
commit68c71182665d4e08bd1141dc9147044973e7d88f (patch)
treef9e0ebe8556fcb217dc1ce431e58193c5b9c5e04 /util/autoport
parent66f1f382cd3bd5a7250e0a7ad35d9a1c505de47a (diff)
autoport: move spi_uvscc and spi_lvscc to devicetree.cb
Change-Id: I36866cc793b3ddf9a78fed2e2840958d08327e7d Signed-off-by: Iru Cai <mytbk920423@gmail.com> Reviewed-on: https://review.coreboot.org/20486 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'util/autoport')
-rw-r--r--util/autoport/bd82x6x.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/util/autoport/bd82x6x.go b/util/autoport/bd82x6x.go
index 796bc0fee5..ce06a8167b 100644
--- a/util/autoport/bd82x6x.go
+++ b/util/autoport/bd82x6x.go
@@ -205,10 +205,6 @@ func (b bd82x6x) Scan(ctx Context, addr PCIDevData) {
/* SPI init */
MainboardIncludes = append(MainboardIncludes, "southbridge/intel/bd82x6x/pch.h")
- /* FIXME:XX Move this to runtime. */
- for _, addr := range []uint16{0x38c8, 0x38c4} {
- MainboardInit += fmt.Sprintf("\tRCBA32(0x%04x) = 0x%08x;\n", addr, inteltool.RCBA[addr])
- }
FADT := ctx.InfoSource.GetACPI()["FACP"]
@@ -246,6 +242,8 @@ func (b bd82x6x) Scan(ctx Context, addr PCIDevData) {
"p_cnt_throttling_supported": (FormatBool(FADT[104] == 1 && FADT[105] == 3)),
"c2_latency": FormatHexLE16(FADT[96:98]),
"docking_supported": (FormatBool((FADT[113] & (1 << 1)) != 0)),
+ "spi_uvscc": fmt.Sprintf("0x%x", inteltool.RCBA[0x38c8]),
+ "spi_lvscc": fmt.Sprintf("0x%x", inteltool.RCBA[0x38c4] &^ (1 << 23)),
},
PCISlots: []PCISlot{
PCISlot{PCIAddr: PCIAddr{Dev: 0x14, Func: 0}, writeEmpty: false, additionalComment: "USB 3.0 Controller"},