summaryrefslogtreecommitdiff
path: root/zephyr/include
diff options
context:
space:
mode:
authorJun Lin <CHLin56@nuvoton.com>2021-04-19 19:22:21 +0800
committerCommit Bot <commit-bot@chromium.org>2021-04-23 02:56:01 +0000
commit8d411971acc3a9ebf35918a40e6814a430121b8b (patch)
tree8b38c7e67d451e41987d93e18121a814f507ed8b /zephyr/include
parent0121fb418dd855982af442824ed1d3b89486ae0c (diff)
downloadchrome-ec-8d411971acc3a9ebf35918a40e6814a430121b8b.tar.gz
zephyr: shi: npcx: Improve SHI driverstabilize-RUST-13932.B-main
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>
Diffstat (limited to 'zephyr/include')
-rw-r--r--zephyr/include/cros/nuvoton/npcx.dtsi2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/include/cros/nuvoton/npcx.dtsi b/zephyr/include/cros/nuvoton/npcx.dtsi
index 30a4e402c8..62f4b6b861 100644
--- a/zephyr/include/cros/nuvoton/npcx.dtsi
+++ b/zephyr/include/cros/nuvoton/npcx.dtsi
@@ -90,7 +90,7 @@
shi: shi@4000f000 {
compatible = "nuvoton,npcx-cros-shi";
reg = <0x4000f000 0x120>;
- interrupts = <18 2>;
+ interrupts = <18 1>;
clocks = <&pcc NPCX_CLOCK_BUS_APB3 NPCX_PWDWN_CTL5 1>;
pinctrl-0 = <&altc_shi_sl>;
shi-cs-wui =<&wui_io53>;