| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the interest of making long-term branch maintenance incur as little
technical debt on us as possible, we should not maintain any files on
the branch we are not actually using.
This has the added effect of making it extremely clear when merging CLs
from the main branch when changes have the possibility to affect us.
The follow-on CL adds a convenience script to actually pull updates from
the main branch and generate a CL for the update.
BUG=b:204206272
BRANCH=ish
TEST=make BOARD=arcada_ish && make BOARD=drallion_ish
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note that currently CONFIG_SYSCON=y is required. There's an ongoing
PR (https://github.com/zephyrproject-rtos/zephyr/pull/38762) to remove
that requirement in favor of simply detecting an enabled node in DT
via the compatible string.
BRANCH=none
BUG=b:179900857, b:165777478, b:200642229
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: Idad1f53afbda503e0e0b2fdf2931d5267a391d4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3177749
Reviewed-by: Sam Hurst <shurst@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Migrate the BBRAM driver to the upstream version.
BRANCH=none
BUG=b:195843756
TEST=zmake testall
Cq-Depend: chromium:3147080
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I441e58f94c4874e268aad36df2f036a88187801b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3147230
Tested-by: Yuval Peress <peress@google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, there is no different power-state for NPCX7/9. Move the
power-states node to npcx.dtsi.
BUG=none
BRANCH=none
TEST=zmake testall
TEST=Check Lazor can enters sleep by 'idlestats'
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I31688dcc42015a4648845b0df4a1712c65e5aaaa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3068842
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SHI is supported in all npcx family chips. Its dts node should be
declared in the common location (i.e. npcx.dtsi.)
BRANCH=none
BUG=b:192295048
TEST=build lazor
TEST=with CL:2993220, build herobrine_npcx7 and herobrine_npcx9 with
CONFIG_CROS_SHI_NPCX enabled
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: I6b6d9ba9a666d86a0993fa59c3cb7ff8249b7595
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2993926
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
cros-kb-raw@400a3000 is a npcx chip node. Move it to npcx.dtsi &
overwrite the pin control setting in the corresponding dts file.
For the status property in cros_kb_raw, npcx kbsan only has one
hardware instance. NPCX cros_kb_raw driver doesn't use status property
to enable the device. Remove status setting in cros_kb_raw node.
Compared with 'gpio.inc' for boards based on trogdor, the keyboard
doesn't use KSO13, 14. Remove KSO13, 14 in 'trogdor.dts'.
BUG=none
BRANCH=none
TEST=zmake testall
TEST=Check all keys work on volteer & lazor by "ksstate on".
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Ie352b91ee13b18fa9079001ab7c3685f059ba299
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2931750
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verify that npcx9 configuration and drivers work.
BRANCH=none
BUG=b:188605676
TEST=flash brya, check that LEDs work and console turns on
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I334ffc504da81ee6a6bb11b245b01a364ea05c6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2909754
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The fiu0 node is common to all npcx family chips. So it can live in
npcx.dtsi.
BRANCH=none
BUG=b:188605676
TEST=build kohaku, trogdor, and volteer
Cq-Depend: chromium:2916719
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Ied2ceaf04c32a2bf748c37bf70c303d3a6c94aab
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2909753
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The the upstream changes to support npcx9 there have been some changes
to the nuvoton dtsi structure. These allow us to now depend on the
more generic npcx7.dtsi instead of the specific npcx7m6fb.dtsi. It also
moves some of the common code of the npcx family away from the more
specific npcx7.
BRANCH=none
BUG=b:188605676
TEST=build volteer, trogdor, and kohaku
Change-Id: I552bad25c2d9392059ab5dcb0684a2bdac01d545
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2909752
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NPCX series ROM code changes the chip basic setting by firmware binary
header for loading the firmware from flash to RAM. All the NPCX series
chips could use it, so those configuration options are moved to
upstream.
The ecst chip version automatic select by CONFIG_SOC_NPCX7MNX.
Currently, the project setting doesn't set to the expected chip part
number. Change the following project to select the target chip &
configure ecst header:
- volteer: npcx7m7fc
- trogdor: npcx7m6fc
- kohaku: npcx7m6fc
BUG=b:184448653
BRANCH=none
TEST=zmake testall
TEST=volteer boot to OS
Cq-Depend: chromium:2872415
Signed-off-by: Yuval Peress <peress@chromium.org>
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Ieed6c21536401f70950ddd1f18d243b127d896ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2867128
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the binman device-tree input into the Zephyr build system's DTS,
which allows overriding parts of the binman settings on a
board/project specific basis using device-tree.
In the process, we need to move the flash offset and size to
device-tree instead of Kconfig, because Kconfig is not including
during device-tree preprocessing. This is overall, a net-good change,
as this should never been Kconfig in the first place. This assumes
the existing Kconfig defaults of 512 KB of flash with 256 KB sections,
however can still be overridden via device-tree.
BUG=b:184388037
BRANCH=none
TEST=zmake testall
manually investigate the flash output for lazor using dump_fmap
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I424ea15454d5cd02947642116673bebcad3406cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2860987
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add power management support for the NPCX family.
BUG=b:184653704
BRANCH=none
TEST=zmake testall
TEST=Verify deep sleep on Volteer (with next CL) and measure power.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I86eef50c13742e7ca717da38a92636e589af6c58
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2855527
Reviewed-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL fixes some potential leaks for the SHI driver:
1. Replace irq_lock/irq_unlock with __disable_irq/__enable_irq because
irq_lock/irq_unlock leave some system exceptions still enabled.
These may block the SHI driver's execution which requires hard
timing.
2. Change the interrupt priority of SHI from 2 to 1.
BRANCH=none
BUG=b:182600858
TEST=Verify the SHI function on Lazor
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: If0ea355b5f300054ce8f7ae53de12f99a6d6aba6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2835526
Tested-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: CH Lin <chlin56@nuvoton.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CL:2819147 fixed the name of nodes in devoce-tree file following
rules:
If object is 'phandles', use underscores for object name.
If not, such as 'node' or 'property', use hyphens for object name.
Modify the related files for build pass.
BUG=none
BRANCH=none
TEST=zmake testall
Cq-Depend: chromium:2819147
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I70284ecb168234493d04b8b26433ec7009232132
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817684
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In NPCX7mnFA, the old SHI module and the new SHI module co-exist in this
chip. We need to set DEVALTF.bit7 to enable the new version of the SHI
module. In the latter npcx7 variants and npcx9 chips, only the new SHI
module is supported. Because NPCX7mnFA chip variants are not included in
the zephyr repo. We can remove the version control setttng.
BUG=b:182600858
BRANCH=none
TEST=Test host command "version" and "Hello" on npcx7_evb and the host
emulator.
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: I43b2fb5294f39e2bf04a0794c9d54e87c8e0ce33
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2799335
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the support for SHI (Serial Host Interface) driver. This is used to
transfer host commands between EC and ARM-based AP.
BUG=b:182600858
BRANCH=none
TEST=Test host command "version" and "Hello" on npcx7_evb and the host
emulator.
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: I5f290fe910600162764f5728f094dd0f42d508ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2786887
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This implements cros_rtc_npcx driver for Zephyr OS-based EC. For the
NPCX7 chip, NPCX Monotonic Counter(MTC) provides a time-keeping
function with a resolution of one second. MTC is selected to implement
the cros_rtc_npcx driver.
BUG=b:178230662
BRANCH=None.
TEST=zmake testall
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Ibd9e27efe4a8b84cdac6d61539742c4f3eb93fce
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2767056
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL configures the initial setting for debug interface.
It will also select the device pin to JTAG0 or JTAG1 by adding either
&dbg {
pinctrl-0 = <&alt5_njen0_en>;
status = "okay";
};
or
&dbg {
pinctrl-0 = <&alt5_njen1_en>;
status = "okay";
};
to the board's dts file.
BUG=b:179809145
BRANCH=None.
TEST=observe the registers are set correctly.
Cq-Depend: chromium:2717588, chromium:2717589, chromium:2717590
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: I0e3cdeed2974a535bd6d6d0ddaaf291db1d8e1dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2712142
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: CH Lin <chlin56@nuvoton.com>
Tested-by: CH Lin <chlin56@nuvoton.com>
|
|
Move all bbram logic to a common npcx.dtsi file included in
both volteer and kohaku. Updates the bbram access logic in
zephyr/shim/src/system.c to use devicetree. Updates the unit
tests to match.
BRANCH=none
BUG=b:178807203
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I2a7c65b92a395c622e8cfe751e4e98b3173e38fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2669271
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
|