Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/mainboard/protectli/vault_ehl/bootblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,32 @@
#include <bootblock_common.h>
#include <superio/ite/common/ite.h>
#include <superio/ite/it8613e/it8613e.h>
#include <device/pnp_ops.h>
#include <superio/ite/common/ite_gpio.h>


#define GPIO_DEV PNP_DEV(0x2e, IT8613E_GPIO)
#define UART_DEV PNP_DEV(0x2e, IT8613E_SP1)

static void ite_set_gpio_iobase(u16 iobase)
{
pnp_enter_conf_state(GPIO_DEV);
pnp_set_logical_device(GPIO_DEV);
pnp_set_iobase(GPIO_DEV, PNP_IDX_IO1, iobase);
pnp_exit_conf_state(GPIO_DEV);
}


void bootblock_mainboard_early_init(void)
{
ite_reg_write(GPIO_DEV, 0x25, 0x04); /* mux: GP12 instead of PCIRST1# */
ite_reg_write(GPIO_DEV, 0x29, 0xc1);
ite_reg_write(GPIO_DEV, 0x2a, 0x00); /* Disable FAN_CTL4 */
ite_reg_write(GPIO_DEV, 0x2c, 0x41); /* disable k8 power seq */
ite_reg_write(GPIO_DEV, 0x2d, 0x02); /* PCICLK=25MHz */
ite_gpio_setup(GPIO_DEV, 12, ITE_GPIO_INPUT, ITE_GPIO_SIMPLE_IO_MODE, ITE_GPIO_PULLUP_ENABLE);
ite_set_gpio_iobase(0xa00);

ite_kill_watchdog(GPIO_DEV);
ite_enable_serial(UART_DEV, CONFIG_TTYS0_BASE);
}
Expand Down
4 changes: 3 additions & 1 deletion src/mainboard/protectli/vault_ehl/devicetree.cb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ chip soc/intel/elkhartlake
end
device pnp 2e.5 off end # Keyboard
device pnp 2e.6 off end # Mouse
device pnp 2e.7 off end # GPIO
device pnp 2e.7 on # GPIO
io 0x62 = 0xa00
end
device pnp 2e.a off end # CIR
end
chip drivers/pc80/tpm
Expand Down
Loading