diff options
author | Stefan Roese <sr@denx.de> | 2016-08-15 13:50:49 +0200 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-08-16 11:44:09 +0800 |
commit | b1ad6c696631f07b5fe109378516abcb79ded1f9 (patch) | |
tree | 28fa5d60592a682aa3c646f1ce571e69b751abcd /board/dfi/dfi-bt700/dfi-bt700.c | |
parent | 303dfc2e5efeaebfb7f01f2e59e5870e645376ca (diff) | |
download | u-boot-b1ad6c696631f07b5fe109378516abcb79ded1f9.tar.gz |
x86: Add DFI BT700 BayTrail board support
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>
Diffstat (limited to 'board/dfi/dfi-bt700/dfi-bt700.c')
-rw-r--r-- | board/dfi/dfi-bt700/dfi-bt700.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/board/dfi/dfi-bt700/dfi-bt700.c b/board/dfi/dfi-bt700/dfi-bt700.c new file mode 100644 index 0000000000..8645bdc795 --- /dev/null +++ b/board/dfi/dfi-bt700/dfi-bt700.c @@ -0,0 +1,30 @@ +/* + * 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; +} |