From 68c71182665d4e08bd1141dc9147044973e7d88f Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 7 Jul 2017 13:49:08 +0800 Subject: autoport: move spi_uvscc and spi_lvscc to devicetree.cb Change-Id: I36866cc793b3ddf9a78fed2e2840958d08327e7d Signed-off-by: Iru Cai Reviewed-on: https://review.coreboot.org/20486 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Arthur Heymans --- util/autoport/bd82x6x.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'util/autoport') 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"}, -- cgit v1.2.3