conga-qeval20-qa3.c 624 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <winbond_w83627.h>
  8. #include <asm/gpio.h>
  9. #include <asm/ibmpc.h>
  10. #include <asm/pnp_def.h>
  11. int board_early_init_f(void)
  12. {
  13. /*
  14. * The FSP enables the BayTrail internal legacy UART (again).
  15. * Disable it again, so that the Winbond one can be used.
  16. */
  17. setup_internal_uart(0);
  18. /* Enable the legacy UART in the Winbond W83627 Super IO chip */
  19. winbond_enable_serial(PNP_DEV(WINBOND_IO_PORT, W83627DHG_SP1),
  20. UART0_BASE, UART0_IRQ);
  21. return 0;
  22. }
  23. int arch_early_init_r(void)
  24. {
  25. return 0;
  26. }