Exemplo n.º 1
0
static void chipset_init(void)
{
        /* stop the mainboard from rebooting */
        /* inspired by coreboot, src/southbridge/amd/sb700/sb700_early_init.c,
         * sb700_lpc_init(), where the comment says:
         * NOTE: Set BootTimerDisable, otherwise it would keep rebooting!!
         * This bit has no meaning if debug strap is not enabled. So if the
         * board keeps rebooting and the code fails to reach here, we could
         * disable the debug strap first.
         */
        u32 reg32 = pci_read_config32(PCI_ADDR(0, 0x14, 0, 0x4C));
        reg32 |= 1 << 31;
	pci_write_config32(PCI_ADDR(0, 0x14, 0, 0x4C), reg32);


	/* Enable LPC decoding  */
	pci_write_config8(PCI_ADDR(0, 0x14, 3, 0x44), (1<<6));
	pci_write_config8(PCI_ADDR(0, 0x14, 3, 0x48), (1 << 1) | (1 << 0));

	superio_init();
}
Exemplo n.º 2
0
static void chipset_init(void)
{
	southbridge_init();
	superio_init();
}
Exemplo n.º 3
0
static void chipset_init(void)
{
	superio_init();
}