diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2017-05-22 13:13:37 -0500 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-01-22 22:33:57 +0000 |
commit | 5513c0a21646c0c5fd901d1b960bad4e54cfcc3b (patch) | |
tree | 35ceaf8b2dfe5f3031f6d36dd98e10358c3c49ab /src/mainboard/asus/kgpe-d16/mainboard.c | |
parent | 31eeda1c44d4055113e6a64e3a2e4d7a22ae4e0a (diff) | |
download | coreboot-5513c0a21646c0c5fd901d1b960bad4e54cfcc3b.tar.xz |
mb/asus/kgpe-d16: Enable IPMI KCS access
The on-board BMC contains a hardware KCS interface. Allow
access to it over LPC.
Change-Id: Ia251334ae44668c2260d8d2e816f85f1f62faac6
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Reviewed-on: https://review.coreboot.org/c/19821
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/asus/kgpe-d16/mainboard.c')
-rw-r--r-- | src/mainboard/asus/kgpe-d16/mainboard.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/asus/kgpe-d16/mainboard.c b/src/mainboard/asus/kgpe-d16/mainboard.c index 02859369af..d41a038461 100644 --- a/src/mainboard/asus/kgpe-d16/mainboard.c +++ b/src/mainboard/asus/kgpe-d16/mainboard.c @@ -46,6 +46,8 @@ void set_pcie_dereset(void) * enable the dedicated function in kgpe-d16 board. * This function is called earlier than sr5650_enable. *************************************************/ +#define BMC_KCS_BASE 0xca2 + static void mainboard_enable(struct device *dev) { printk(BIOS_INFO, "Mainboard KGPE-D16 Enable. dev=0x%p\n", dev); @@ -66,6 +68,13 @@ static void mainboard_enable(struct device *dev) set_pcie_dereset(); /* get_ide_dma66(); */ + + /* Enable access to the BMC IPMI via KCS */ + struct device *lpc_sio_dev = dev_find_slot_pnp(BMC_KCS_BASE, 0); + struct resource *res = new_resource(lpc_sio_dev, BMC_KCS_BASE); + res->base = BMC_KCS_BASE; + res->size = 1; + res->flags = IORESOURCE_IO | IORESOURCE_ASSIGNED | IORESOURCE_FIXED; } /* override the default SATA PHY setup */ |