blob: 383cae068bdff48b828c4b137fd96fae9e5d1d4e [file] [log] [blame]
Simon Glass4a56f102015-01-27 22:13:47 -07001/*
2 * Copyright (C) 2015, Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
Gabriel Huauf70353a2015-05-11 23:18:25 -07008#include <asm/gpio.h>
Simon Glass4a56f102015-01-27 22:13:47 -07009#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
Gabriel Huauf70353a2015-05-11 23:18:25 -070016int arch_early_init_r(void)
17{
18 /* do the pin-muxing */
19 gpio_ich6_pinctrl_init();
20
21 return 0;
22}
23
Simon Glass4a56f102015-01-27 22:13:47 -070024int board_early_init_f(void)
25{
Bin Meng6e0150f2015-03-31 11:25:03 +080026 lpc47m_enable_serial(SERIAL_DEV, UART0_BASE, UART0_IRQ);
Simon Glass4a56f102015-01-27 22:13:47 -070027
28 return 0;
29}
30
31void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio)
32{
33 return;
34}
35
36int board_eth_init(bd_t *bis)
37{
38 return pci_eth_init(bis);
39}