crownbay.c 411 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <asm/ibmpc.h>
  8. #include <asm/pnp_def.h>
  9. #include <smsc_lpc47m.h>
  10. int board_early_init_f(void)
  11. {
  12. lpc47m_enable_serial(PNP_DEV(LPC47M_IO_PORT, LPC47M_SP1),
  13. UART0_BASE, UART0_IRQ);
  14. lpc47m_enable_kbc(PNP_DEV(LPC47M_IO_PORT, LPC47M_KBC),
  15. KBD_IRQ, MSE_IRQ);
  16. return 0;
  17. }