blob: 036beb1146dcac2f68461ae64fe4a8797ebebe6b [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Meng08e484c2014-12-17 15:50:36 +08002/*
3 * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
Bin Meng08e484c2014-12-17 15:50:36 +08004 */
5
Simon Glass97589732020-05-10 11:40:02 -06006#include <init.h>
Bin Meng08e484c2014-12-17 15:50:36 +08007#include <asm/ibmpc.h>
8#include <asm/pnp_def.h>
9#include <smsc_lpc47m.h>
10
Bin Meng08e484c2014-12-17 15:50:36 +080011int board_early_init_f(void)
12{
Bin Menga2f61ba2015-08-24 01:00:08 -070013 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 Meng08e484c2014-12-17 15:50:36 +080017
18 return 0;
19}