baytrail: Expose IOSF as ACPI object
The kernel iosf driver uses HID INT33BD to probe and be provided the 12 bytes in PCI for access. BUG=chrome-os-partner:17279 BRANCH=none TEST=build and boot on rambi, load iosf_mbi driver and verify that it gets address 0xe00000d0 Change-Id: I865eafe664f00f21d1ebb967c291083830d895b9 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/180098 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/5021 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
73c0a05bc7
commit
2e65796481
|
@ -228,6 +228,27 @@ Method (_OSC, 4)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* IOSF MBI Interface for kernel access */
|
||||||
|
Device (IOSF)
|
||||||
|
{
|
||||||
|
Name (_HID, "INT33BD")
|
||||||
|
Name (_CID, "INT33BD")
|
||||||
|
Name (_UID, 1)
|
||||||
|
|
||||||
|
Name (RBUF, ResourceTemplate ()
|
||||||
|
{
|
||||||
|
/* MCR / MDR / MCRX */
|
||||||
|
Memory32Fixed (ReadWrite, 0, 12, RBAR)
|
||||||
|
})
|
||||||
|
|
||||||
|
Method (_CRS)
|
||||||
|
{
|
||||||
|
CreateDwordField (^RBUF, ^RBAR._BAS, RBAS)
|
||||||
|
Store (Add (MCFG_BASE_ADDRESS, 0xD0), RBAS)
|
||||||
|
Return (^RBUF)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// LPC Bridge 0:1f.0
|
// LPC Bridge 0:1f.0
|
||||||
#include "lpc.asl"
|
#include "lpc.asl"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue