mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-09 06:13:21 +09:00
![Stefan Roese](/assets/img/avatar_default.png)
This patch adds support for the DFI BayTrail BT700 QSeven SoM installed on the DFI Q7X-151 baseboard. The baseboard is equipped with the Nuvoton NCT6102D Super IO chip providing the UART as console. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
31 lines
629 B
C
31 lines
629 B
C
/*
|
|
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <nuvoton_nct6102d.h>
|
|
#include <asm/gpio.h>
|
|
#include <asm/ibmpc.h>
|
|
#include <asm/pnp_def.h>
|
|
|
|
int board_early_init_f(void)
|
|
{
|
|
#ifdef CONFIG_INTERNAL_UART
|
|
/* Disable the legacy UART which is enabled per default */
|
|
nct6102d_uarta_disable();
|
|
#else
|
|
/*
|
|
* The FSP enables the BayTrail internal legacy UART (again).
|
|
* Disable it again, so that the Nuvoton one can be used.
|
|
*/
|
|
setup_internal_uart(0);
|
|
#endif
|
|
|
|
/* Disable the watchdog which is enabled per default */
|
|
nct6102d_wdt_disable();
|
|
|
|
return 0;
|
|
}
|