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>
This commit is contained in:
@@ -217,6 +217,9 @@ chip northbridge/amd/amdfam10/root_complex # Root complex
|
|||||||
chip drivers/pc80/tpm
|
chip drivers/pc80/tpm
|
||||||
device pnp 4e.0 on end # TPM module
|
device pnp 4e.0 on end # TPM module
|
||||||
end
|
end
|
||||||
|
chip drivers/generic/generic # BMC KCS
|
||||||
|
device pnp ca2.0 on end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
device pci 14.4 on # Bridge
|
device pci 14.4 on # Bridge
|
||||||
device pci 1.0 on end # VGA
|
device pci 1.0 on end # VGA
|
||||||
|
@@ -46,6 +46,8 @@ void set_pcie_dereset(void)
|
|||||||
* enable the dedicated function in kgpe-d16 board.
|
* enable the dedicated function in kgpe-d16 board.
|
||||||
* This function is called earlier than sr5650_enable.
|
* This function is called earlier than sr5650_enable.
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
#define BMC_KCS_BASE 0xca2
|
||||||
|
|
||||||
static void mainboard_enable(struct device *dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard KGPE-D16 Enable. dev=0x%p\n", 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();
|
set_pcie_dereset();
|
||||||
/* get_ide_dma66(); */
|
/* 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 */
|
/* override the default SATA PHY setup */
|
||||||
|
Reference in New Issue
Block a user