blob: 55095deeadd7100856977e012f7f9b47a47c52a2 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Mengb2e02d22014-12-17 15:50:36 +08002/*
3 * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
Bin Mengb2e02d22014-12-17 15:50:36 +08004 */
5
6#include <common.h>
Simon Glass691d7192020-05-10 11:40:02 -06007#include <init.h>
Bin Mengb2e02d22014-12-17 15:50:36 +08008#include <asm/ibmpc.h>
9#include <asm/pnp_def.h>
10#include <smsc_lpc47m.h>
11
Bin Mengb2e02d22014-12-17 15:50:36 +080012int board_early_init_f(void)
13{
Bin Meng4dd02a72015-08-24 01:00:08 -070014 lpc47m_enable_serial(PNP_DEV(LPC47M_IO_PORT, LPC47M_SP1),
15 UART0_BASE, UART0_IRQ);
16 lpc47m_enable_kbc(PNP_DEV(LPC47M_IO_PORT, LPC47M_KBC),
17 KBD_IRQ, MSE_IRQ);
Bin Mengb2e02d22014-12-17 15:50:36 +080018
19 return 0;
20}