summaryrefslogtreecommitdiff
path: root/zephyr/include/soc/nuvoton_npcx/reg_def_cros.h
Commit message (Collapse)AuthorAgeFilesLines
* zephyr: npcx: support SHI driverJun Lin2021-03-311-0/+83
| | | | | | | | | | | | | | | | | 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>
* zephyr: add cros_rtc_npcx driver for npcx7 seriesMulin Chao2021-03-241-0/+15
| | | | | | | | | | | | | | | | | 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>
* drivers: Add cros_flash driver for npcx chipMulin Chao2021-01-151-0/+94
| | | | | | | | | | | | | | | | | | | Add a driver that implements the cros_flash interface on the npcx chip. BUG=b:174874876 TEST=pass build with related patches. TEST=combine with related patches, use console commands to test all the implemented flash APIs. Change-Id: I435569928ead955079d8299d7d056894066b5929 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2598212 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630167 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* drivers: add NPCX7 cros_kb_raw driverSimon Glass2021-01-151-0/+59
NPCX keyboard scanning module is supported by up to 18 open-drain output signals and 8 input signals. Switch-based keyboard matrices are supported by Schmitt trigger inputs that have internal pull-up resistors. For power efficiency, the inputs include interrupt and wake-up capability so that pressing/releasing keys can be identified without scanning the keyboard matrix in either Active, Sleep or Deep Sleep power state. The CL also includes: — Add npcx cros_kb_raw device tree declarations. — cros_kb_raw api implementations - Enable Volteer keyboard scan task BRANCH=none BUG=b:167405015, b:172676906 TEST=build pass by zmake configure -B ./build projects/experimental/volteer. TEST=check all the keys on volteer platform by "ksstate". Change-Id: I1cbdaa0e81cbb4447daede82774711f4d50f613d Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Signed-off-by: Mulin Chao <MLChao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2523940 Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630148 Tested-by: Jack Rosenthal <jrosenth@chromium.org>