1 /*
2  * Copyright (C) 2015, Google, Inc
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #include <common.h>
8 #include <asm/gpio.h>
9 #include <asm/ibmpc.h>
10 #include <asm/pnp_def.h>
11 #include <netdev.h>
12 #include <smsc_lpc47m.h>
13 
14 #define SERIAL_DEV PNP_DEV(0x2e, 4)
15 
16 int arch_early_init_r(void)
17 {
18 	/* do the pin-muxing */
19 	gpio_ich6_pinctrl_init();
20 
21 	return 0;
22 }
23 
24 int board_early_init_f(void)
25 {
26 	lpc47m_enable_serial(SERIAL_DEV, UART0_BASE, UART0_IRQ);
27 
28 	return 0;
29 }
30 
31 void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio)
32 {
33 	return;
34 }
35 
36 int board_eth_init(bd_t *bis)
37 {
38 	return pci_eth_init(bis);
39 }
40