summaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/mal10/bootblock.c
blob: 5c40e2dc6ce26c79ba976caad728c9c9d534eeea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0-only */

#include <bootblock_common.h>
#include <intelblocks/lpc_lib.h>
#include <ec/kontron/kempld/kempld.h>
#include <variant/gpio.h>

static void init_cpld(void)
{
	/* Set up LPC decoding for CPLD I/O port ranges */
	lpc_open_pmio_window(0x0A80, 2);

	/* Enable console serial ports */
	lpc_io_setup_comm_a_b();
	kempld_enable_uart_for_console();
}

void bootblock_mainboard_early_init(void)
{
	variant_early_gpio_configure();
	init_cpld();
}

void bootblock_mainboard_init(void)
{
}