Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <asm/ibmpc.h> |
| 9 | #include <asm/pnp_def.h> |
Bin Meng | ee18d64 | 2014-12-17 15:50:45 +0800 | [diff] [blame] | 10 | #include <netdev.h> |
Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 11 | #include <smsc_lpc47m.h> |
| 12 | |
| 13 | #define SERIAL_DEV PNP_DEV(0x2e, 4) |
| 14 | |
Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 15 | int board_early_init_f(void) |
| 16 | { |
Bin Meng | 6e0150f | 2015-03-31 11:25:03 +0800 | [diff] [blame] | 17 | lpc47m_enable_serial(SERIAL_DEV, UART0_BASE, UART0_IRQ); |
Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 18 | |
| 19 | return 0; |
| 20 | } |
Bin Meng | 9b64969 | 2014-12-17 15:50:38 +0800 | [diff] [blame] | 21 | |
| 22 | void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio) |
| 23 | { |
| 24 | return; |
| 25 | } |
Bin Meng | ee18d64 | 2014-12-17 15:50:45 +0800 | [diff] [blame] | 26 | |
| 27 | int board_eth_init(bd_t *bis) |
| 28 | { |
| 29 | return pci_eth_init(bis); |
| 30 | } |