Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015, Google, Inc |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Gabriel Huau | f70353a | 2015-05-11 23:18:25 -0700 | [diff] [blame] | 8 | #include <asm/gpio.h> |
Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 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 | |
Gabriel Huau | f70353a | 2015-05-11 23:18:25 -0700 | [diff] [blame] | 16 | int arch_early_init_r(void) |
| 17 | { |
| 18 | /* do the pin-muxing */ |
| 19 | gpio_ich6_pinctrl_init(); |
| 20 | |
| 21 | return 0; |
| 22 | } |
| 23 | |
Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 24 | int board_early_init_f(void) |
| 25 | { |
Bin Meng | 6e0150f | 2015-03-31 11:25:03 +0800 | [diff] [blame] | 26 | lpc47m_enable_serial(SERIAL_DEV, UART0_BASE, UART0_IRQ); |
Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 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 | } |