diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-01-12 17:43:14 +0800 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2024-07-14 09:58:34 +0000 |
commit | 3f0bb2fb0741d81327184489656e375d7190a852 (patch) | |
tree | f2b5d83ff5943316e2c47ae84372ef2e42922271 /util/autoport/main.go | |
parent | 779f3c06f8abf66461c66caa287d17733feab1d9 (diff) |
autoport: Add support for Haswell-Lynx Point platform
Tested with the following devices (not exhaustive):
- Dell Latitude E7240
- Dell Precision M6800 and M4800
- Asrock Z87E-ITX
- Asrock Z87M OC Formula
- Asrock Fatal1ty Z87 Professional
Change-Id: I4f6e8c97b5122101de2f36bba8ba9f8ddd5b813a
Signed-off-by: Iru Cai <mytbk920423@gmail.com>
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/30890
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'util/autoport/main.go')
-rw-r--r-- | util/autoport/main.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/util/autoport/main.go b/util/autoport/main.go index 21dbbf07ab..8a3ee6c83e 100644 --- a/util/autoport/main.go +++ b/util/autoport/main.go @@ -31,9 +31,12 @@ type PCIDevice interface { } type InteltoolData struct { - GPIO map[uint16]uint32 - RCBA map[uint16]uint32 - IGD map[uint32]uint32 + GPIO map[uint16]uint32 + RCBA map[uint16]uint32 + IOBP map[uint32]uint32 + IGD map[uint32]uint32 + MCHBAR map[uint16]uint32 + PMBASE map[uint16]uint32 } type DMIData struct { @@ -253,6 +256,7 @@ type DevTreeNode struct { SubVendor uint16 SubSystem uint16 Chip string + Ops string Comment string } @@ -380,6 +384,10 @@ func WriteDev(dt *os.File, offset int, alias string, dev DevTreeNode) { fmt.Fprintf(dt, " # %s", dev.Comment) } fmt.Fprintf(dt, "\n") + if dev.Ops != "" { + Offset(dt, offset+1) + fmt.Fprintf(dt, "ops %s\n", dev.Ops) + } if dev.Chip == "pci" && dev.SubSystem != 0 && dev.SubVendor != 0 { Offset(dt, offset+1) fmt.Fprintf(dt, "subsystemid 0x%04x 0x%04x\n", dev.SubVendor, dev.SubSystem) |