Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> |
Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 6 | #include <init.h> |
Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 7 | #include <asm/ibmpc.h> |
| 8 | #include <asm/pnp_def.h> |
| 9 | #include <smsc_lpc47m.h> |
| 10 | |
Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 11 | int board_early_init_f(void) |
| 12 | { |
Bin Meng | a2f61ba | 2015-08-24 01:00:08 -0700 | [diff] [blame] | 13 | lpc47m_enable_serial(PNP_DEV(LPC47M_IO_PORT, LPC47M_SP1), |
| 14 | UART0_BASE, UART0_IRQ); |
| 15 | lpc47m_enable_kbc(PNP_DEV(LPC47M_IO_PORT, LPC47M_KBC), |
| 16 | KBD_IRQ, MSE_IRQ); |
Bin Meng | 08e484c | 2014-12-17 15:50:36 +0800 | [diff] [blame] | 17 | |
| 18 | return 0; |
| 19 | } |