diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-06-10 18:21:08 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-27 15:57:26 +0000 |
commit | 83583a5d9b6dc21b724463ff1880d163b558294a (patch) | |
tree | 45c08018c14c23af769c2d46220791dbca964b7f /zephyr/boards/arm/npcx_evb | |
parent | 88b7bf8f40e8100eb338917ff1c9b1f82c449530 (diff) | |
download | chrome-ec-83583a5d9b6dc21b724463ff1880d163b558294a.tar.gz |
zephyr: Initial image for npcx_evb/npcx9
Initial image for npcx_evb/npcx9 supporting basic UART functionality
and basic commands.
BUG=none
BRANCH=none
TEST=test basic console functionality on npcx9_evb
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I0cdf12823df35ec6aaba7a48c5d1698cc814703a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3033231
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/boards/arm/npcx_evb')
-rw-r--r-- | zephyr/boards/arm/npcx_evb/Kconfig.board | 6 | ||||
-rw-r--r-- | zephyr/boards/arm/npcx_evb/Kconfig.defconfig | 1 | ||||
-rw-r--r-- | zephyr/boards/arm/npcx_evb/npcx9_evb.dts | 21 | ||||
-rw-r--r-- | zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig | 33 |
4 files changed, 61 insertions, 0 deletions
diff --git a/zephyr/boards/arm/npcx_evb/Kconfig.board b/zephyr/boards/arm/npcx_evb/Kconfig.board index d7cdd067da..0ac4a80833 100644 --- a/zephyr/boards/arm/npcx_evb/Kconfig.board +++ b/zephyr/boards/arm/npcx_evb/Kconfig.board @@ -10,3 +10,9 @@ config BOARD_NPCX7_EVB depends on SOC_NPCX7M6FB || SOC_NPCX7M6FC || SOC_NPCX7M7FC # Allow generating initial 0 line coverage. select HAS_COVERAGE_SUPPORT + +config BOARD_NPCX9_EVB + bool "NPCX9 Evaluation Board" + depends on SOC_NPCX9M3F || SOC_NPCX9M6F + # Allow generating initial 0 line coverage. + select HAS_COVERAGE_SUPPORT diff --git a/zephyr/boards/arm/npcx_evb/Kconfig.defconfig b/zephyr/boards/arm/npcx_evb/Kconfig.defconfig index 81268a4636..c0c874ad26 100644 --- a/zephyr/boards/arm/npcx_evb/Kconfig.defconfig +++ b/zephyr/boards/arm/npcx_evb/Kconfig.defconfig @@ -4,3 +4,4 @@ config BOARD default "npcx7_evb" if BOARD_NPCX7_EVB + default "npcx9_evb" if BOARD_NPCX9_EVB diff --git a/zephyr/boards/arm/npcx_evb/npcx9_evb.dts b/zephyr/boards/arm/npcx_evb/npcx9_evb.dts new file mode 100644 index 0000000000..4ab68cdde1 --- /dev/null +++ b/zephyr/boards/arm/npcx_evb/npcx9_evb.dts @@ -0,0 +1,21 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/dts-v1/; + +#include <cros/nuvoton/npcx9.dtsi> + +/* + * #include <nuvoton/npcx9m3f.dtsi> + * #include <nuvoton/npcx9m6f.dtsi> + */ +#include <nuvoton/npcx9m6f.dtsi> +#include "npcx_evb.dtsi" + +&uart1 { + status = "okay"; + current-speed = <115200>; + pinctrl-0 = <&altj_cr_sin1_sl2 &altj_cr_sout1_sl2>; +}; diff --git a/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig b/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig new file mode 100644 index 0000000000..cfb3a263e8 --- /dev/null +++ b/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig @@ -0,0 +1,33 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Zephyr Kernel Configuration +CONFIG_SOC_SERIES_NPCX9=y +# NPCX9 soc list +# CONFIG_SOC_NPCX9M3F +# CONFIG_SOC_NPCX9M6F +CONFIG_SOC_NPCX9M6F=y + +# Platform Configuration +CONFIG_BOARD_NPCX9_EVB=y + +# Serial Drivers +CONFIG_SERIAL=y +CONFIG_UART_INTERRUPT_DRIVEN=y + +# Enable console +CONFIG_CONSOLE=y +CONFIG_UART_CONSOLE=y + +# Pinmux Driver +CONFIG_PINMUX=y + +# GPIO Controller +CONFIG_GPIO=y + +# Clock configuration +CONFIG_CLOCK_CONTROL=y + +# WATCHDOG configuration +CONFIG_WATCHDOG=y |