summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* nct38xx: Split after-reset timestabilize-14151.B-mainDevin Lu2021-08-1310-19/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | Split after-reset time for NCT3807 and NCT3808, since the after-reset time is not the same. From the datasheet (section 4.4.2 Reset Timing) as following: * | Min | Max | * ----------------------+-------+-------+ * NCT3807 (single port) | x | 1.5ms | * ----------------------+-------+-------+ * NCT3808 (dual port) | x | 3ms | * ----------------------+-------+-------+ Currently the after-reset time for NCT3807 is zero. Change to 2ms to fit specification as well. BUG=none BRANCH=none TEST=On Redrix. Initial success with NCT3807. TEST=On Dirinboz. Initial success with NCT3807. TEST=make buildall. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I1f47f57c0d8955946b1c2522e1a1736739217f41 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3068492 Reviewed-by: caveh jalali <caveh@chromium.org>
* zephyr: asurada: reload watchdog on each flash writeDino Li2021-08-131-0/+8
| | | | | | | | | | | | | | | | If AP sends write flash command continuously, EC might not have chance to go back to hook task to touch watchdog. Reload watchdog on each flash write to prevent the reset. BRANCH=none BUG=b:195954913 TEST=no watchdog reset during software sync. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I27bf921f1162f6d91b97918162c938985933f432 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088972 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* woomax: gyro sensor add 2nd source icm40608Michael5 Chen12021-08-133-1/+79
| | | | | | | | | | | | | | | | | gyro sensor add 2nd source icm-40608 BUG=b:196286186 BRANCH=zork TEST=make BOARD=woomax 1. Set CBI SSFC 0x03 and using command "watch ectool motionsense lid_angle" for sensor icm-40608. 2. Using command "watch ectool motionsense lid_angle" for BMI160. Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: I8db74d6e42858f0e7c6f5c60b22f811c6ab0d190 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088971 Reviewed-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* Revert "gimble: configure PPVAR_SYS"Scott Chao2021-08-131-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 9c379fca35116534de74aceec99a50d106f947e2. Reason for revert: <This will let battery charging keep at 0.4A, power team is checking on it. Before that, I think we need to revert this change.> Original change's description: > gimble: configure PPVAR_SYS > > The PPVAR_SYS must same as battery voltage(3 cells * 4.4V) > > BUG=b:196184163 > BRANCH=none > TEST=make -j BOARD=gimble > > Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> > Change-Id: Ibc0c9104fba00f33ab2168b78455ca809a746643 > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088964 > Reviewed-by: caveh jalali <caveh@chromium.org> Bug: b:196184163 Change-Id: I98042c503316ba1c91e16f4403471ad761f88818 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093346 Auto-Submit: Scott Chao <scott_chao@wistron.corp-partner.google.com> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
* herobrine_npcx9: Remove AP_RST_L and WARM_RESET_L 1.8V flagWai-Hong Tam2021-08-121-2/+2
| | | | | | | | | | | | | | | The AP_RST_L and WARM_RESET_L GPIOs are moved to the pins that are already operate at 1.8V, which are not configurable. The 1.8 flags are unnecessary. BRANCH=None BUG=b:192253134 TEST=Built the herobrine_npcx9 image successfully. Change-Id: I0c5b64ea18b7eada57aca65374d88037e546a609 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3039385 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
* guybrush: Move Motion and ANX CONFIG flags to guybrushBhanu Prakash Maiya2021-08-125-8/+5
| | | | | | | | | | | | | | | | Motion sensor are only supported in guybrush convertible designs. Parade retimer is currently used by guybrush reference and OEM board. ANX flags are only required in guybrush reference board. BUG=b:194031783 BRANCH=None TEST=make BOARD=nipperkin make BOARD=guybrush Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Change-Id: Ia84f8396510ad833d033bb6743e22bbbdc4d5204 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088587 Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: shim: cleanup comments and code in console.cDenis Brockus2021-08-121-5/+8
| | | | | | | | | | | | | | | BUG=none BRANCH=none TEST=none Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: Iab1f8a1274e94491590697ad1efffdca46cb8e4c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088235 Commit-Queue: Keith Short <keithshort@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: asurada: set CONFIG_HOSTCMD_DEBUG to HCDEBUG_OFFDenis Brockus2021-08-121-0/+4
| | | | | | | | | | | | | | | BUG=b:195948807 BRANCH=none TEST=zmake configure -b $PROJ_HAYATO TEST=boot and verify non-error [HC 0x%x] output does not happen Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: Idd872d7d61c04efc71dc843fa7d6b1438dd89ed0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3087620 Commit-Queue: Keith Short <keithshort@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: shim: add CONFIG_HOSTCMD_DEBUG shimDenis Brockus2021-08-123-8/+46
| | | | | | | | | | | | | | | BUG=b:195948807 BRANCH=none TEST=zmake configure -b $PROJ_HAYATO Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I6de387725db11ad00356c7cf47cb9c0e2e109652 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3087619 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable KeyboardWealian Liao2021-08-129-6/+100
| | | | | | | | | | | | | | | | | | This CL enables keyboard function for npcx7/9_evb. The keyboard sets to the following config: * kso0-12 are selected for keyboard scan * enable CONFIG_CROS_KB_RAW_NPCX_KSO_HIGH_DRIVE * set keyscan_config to meet the config in npcx_evb board.c BRANCH=none BUG=none TEST='ksstate on' & check actual key setting Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I059e1f8d07558a0f465769ecffd4246dcda1a608 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3077764 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: Fix keyscan_configWealian Liao2021-08-122-4/+2
| | | | | | | | | | | | | | | | DT_DRV_COMPAT doesn't have the compatible node. Fix it to use cros_keyscan. BRANCH=none BUG=none TEST=zmake testall TEST=check volteer & lazor key by "ksstate on" Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ib1280f64ac2fa42539fb93d24922626c9adf2278 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088960 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* Chronicler: Undefine CONFIG_KEYBOARD_REFRESH_ROW3Yu-An Chen2021-08-121-4/+0
| | | | | | | | | | | | | | | Undefine CONFIG_KEYBOARD_REFRESH_ROW3 BUG=b:196174935 BRANCH=volteer TEST=Check recovery hotkey is working. Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I4c0e0106a874652b10bf74113c7957030eb229f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3086787 Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
* qcom: Increase the delay between powering on the switchcap and the PMICWai-Hong Tam2021-08-121-2/+5
| | | | | | | | | | | | | | Measured the delay on Herobrine IOB + Trogdor MLB is ~200ms. Pick a larger delay 300ms. BRANCH=None BUG=None TEST=Booted AP successfully. Change-Id: Iaba20995e23c2f2041601c9fc17f35a1cb9300c4 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3083184 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
* eldrid: dropping eldrid_npcx796stabilize-14150.882.B-mainstabilize-14150.74.B-mainstabilize-14150.64.B-mainstabilize-14150.43.B-mainstabilize-14150.376.B-mainrelease-R94-14150.B-mainYH Lin2021-08-123-10/+0
| | | | | | | | | | | | | eldrid_npcx796 variant is only used for EVT and hence deprecated. BRANCH=firmware-volteer-13672.B BUG=b:196059702 TEST=make BOARD=eldrid Signed-off-by: YH Lin <yueherngl@chromium.org> Change-Id: I6b593b8b412674fa4330fa4fe30d0c522fea3a69 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088585 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
* Cappy2: Add EC_CBI_WPwangganxiang2021-08-121-2/+1
| | | | | | | | | | | | | | | Add EC_CBI_WP pin to EC. BUG=b:195103187 BRANCH=keeby TEST=make BOARD=cappy2 pass Signed-off-by: wangganxiang <wangganxiang@huaqin.corp-partner.google.com> Change-Id: If0c181a2c690d4425590e54bbc9fe46b054fa288 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088959 Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* asurada/cherry/goroh: add missing newlineTing Shen2021-08-123-3/+3
| | | | | | | | | | | | | | | | Add a newline to the debug message to make it easier to read. BUG=none TEST=none BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ice108ca54cc4247c1d76c9f29c1392f15a4de5b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3087982 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
* gimble: configure PPVAR_SYSScott Chao2021-08-121-0/+8
| | | | | | | | | | | | | The PPVAR_SYS must same as battery voltage(3 cells * 4.4V) BUG=b:196184163 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ibc0c9104fba00f33ab2168b78455ca809a746643 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088964 Reviewed-by: caveh jalali <caveh@chromium.org>
* bq25710: add min system voltage configurationScott Chao2021-08-122-0/+33
| | | | | | | | | | | | | Add this function to let each board can control it. BUG=b:196184163 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ic47c67e11eba1bfadef5f5942cff9fcad8b49ad2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3086786 Reviewed-by: caveh jalali <caveh@chromium.org>
* primus: enable CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRYScott Chao2021-08-121-0/+1
| | | | | | | | | | | BUG=b:196287208 BRANCH=none TEST=make -j BOARD=primus Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I7a3a484b1a4f47292688698fb49c833e19bffc35 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088967 Reviewed-by: caveh jalali <caveh@chromium.org>
* chip/mt_scp: add define to support wait decode interrupt in scpYunfei Dong2021-08-121-0/+1
| | | | | | | | | | | | | | | Add define to support irq in scp: VDEC_CAP_IRQ_IN_SCP BIT(16). BRANCH=none BUG=b:184793035 TEST=make BOARD=cherry_scp Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Change-Id: I7d4583f7c4bce07c6fb4f22bd9152edb23fe9e05 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3054225 Reviewed-by: Tzung-Bi Shih <tzungbi@chromium.org> Commit-Queue: Tzung-Bi Shih <tzungbi@chromium.org> Tested-by: Tzung-Bi Shih <tzungbi@chromium.org>
* gimble: set 90% input current limitstabilize-14149.B-mainWill Tsai2021-08-121-0/+15
| | | | | | | | | | | | BUG=b:196186949 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Will Tsai <will_tsai@wistron.corp-partner.google.com> Change-Id: I4b1675ad17b05267191c8a6262d7bb9cc7a05265 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088598 Reviewed-by: Boris Mittelberg <bmbm@google.com> Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
* delbin: gyro sensor add 2nd source icm-40608Michael5 Chen12021-08-123-4/+75
| | | | | | | | | | | | | | | | | gyro sensor add 2nd source icm-40608 BUG=b:192990527 BRANCH=volteer TEST=make BOARD=delbin 1. Set CBI SSFC 0x2 and using command "watch ectool motionsense lid_angle" for sensor icm-40608. 2. Using command "watch ectool motionsense lid_angle" for BMI260. Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: I4a9fef206cdbd49106deaa1411a3481bbd18d78c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3011103 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* TCPMv2: Fix ordering of Vbus application in Attached.SRC entryDiana Z2021-08-111-12/+24
| | | | | | | | | | | | | | | | | | | Per the TCPCI spec figures, we should be setting the CC lines and enabling Auto Discharge Disconnect before attempting to source Vbus. Doing these things out of order may cause Vbus sourcing to appear to fail when a TCPC is waiting for ADD to set before enabling Vbus. BRANCH=None BUG=b:195966013 TEST=on guybrush, verify both C0 and C1 successfully detect that they are sourcing Vbus with an unpowered Apple 3-in-1 dongle Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Icb0bd221a7d8eb069b74327c27894e5d92e95329 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088003 Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org>
* zephyr: rename kconfig PLATFORM_EC_VBOOTJack Rosenthal2021-08-1116-21/+21
| | | | | | | | | | | | | | | | | | | Rename CONFIG_PLATFORM_EC_VBOOT to CONFIG_PLATFORM_EC_VBOOT_EFS2, since this is what is actually toggled by the config. EFS2 is only a small component of verified boot, and we have many boards which don't actually use it (e.g., trogdor family) for verified boot, making the existing name very confusing. BUG=none BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I68ea5815b4a001c680fc78196bb7a02815799b52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088164 Commit-Queue: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* Trondo: Free up flash spaceDiana Z2021-08-111-0/+3
| | | | | | | | | | | | | | Trondo is nearly out of space on ToT, so remove the PRL debug strings in order to free up some bytes. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I8534495ed82f2c27cd9b2b9a293e7117a67e3062 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078410 Reviewed-by: Keith Short <keithshort@chromium.org>
* Bobba: Free up flash spaceDiana Z2021-08-111-0/+1
| | | | | | | | | | | | | | Bobba needs more flash space on ToT, so remove the PRL debug strings. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iacb3a95cda12bb6c6c29eb3cfbc55cfe54287258 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078409 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Eldrid: Free space on NPCX796 boardDiana Z2021-08-111-0/+3
| | | | | | | | | | | | | Remove the PD PRL debug strings in order to free up space on this board. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Id8deceaf28ffbecbe6ce1d9accdf66726d7af9d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078408 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: npcx: SHI: select the host interface to SHI explicitlyJun Lin2021-08-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | We use the property 'hif-type-auto' in the node /booter-variant to track if the booter of a NPCX chip series sets the host interface type or not. If it is not set, the SHI driver should set it explicitly. BRANCH=none BUG=none TEST=pass "zmake testall" TEST=verify the HIF_TYP_SEL field in DEVCNT register is set correctly. Signed-off-by: Jun Lin <CHLin56@nuvoton.com> Change-Id: Ic96d03a6eaf347638684f533ea8ff0e447f95b40 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3067145 Tested-by: CH Lin <chlin56@nuvoton.com> Tested-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Keith Short <keithshort@chromium.org> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* zephyr: npcx_evb: Enable eSPIWealian Liao2021-08-114-0/+12
| | | | | | | | | | | | | | This CL enables eSPI for npcx7/9_evb. BUG=none BRANCH=none TEST=Read EC host register by eSPI host emulator. Cq-Depend: chromium:3074381 Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I9308095eb5cca8fdcd6466fe776d699e3a4a97c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3077761 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: cleanup Zephyr v2.5 ifdefsJack Rosenthal2021-08-114-47/+1
| | | | | | | | | | | | | | We no longer support version 2.5. Drop these obsolete ifdefs. BUG=b:195571108 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I85985108bcf175a2756a2f8096b0aa9e3c22fce5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3086368 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* zephyr: zmake: drop support for v2.5Jack Rosenthal2021-08-113-9/+9
| | | | | | | | | | | | | | v2.5 is now unused, cleanup the last tidbits in zmake supporting it. BUG=b:195571108 BRANCH=none TEST=zephyr/zmake/run_test.sh Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Iea93f1d8703ad7e9c5c9bac18af0c47aed1e9a7b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3086367 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* volet: general cleanup CONFIG_USB_PD_TCPM_RT1715Ben Chen2021-08-111-3/+0
| | | | | | | | | | | | | | | | | | CONFIG_USB_PD_TCPM_RT1715 is already defined by the volteer baseboard header. Cleanup the predefine in volet portion. BUG=none BRANCH=volteer TEST=make buildall PASS Change-Id: I1688369a2ea8533781871de1a3ab6eaa2ceb789a Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3068497 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Isaac Lee <isaaclee@google.com> Reviewed-by: YH Lin <yueherngl@chromium.org> Commit-Queue: Isaac Lee <isaaclee@google.com>
* zephyr: asurada: enable zephyr_print use printkDenis Brockus2021-08-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | Asurada is not currently able to output fast enough using shell_fprintf and they timeout unrelated functionality. For this case it will be allowed to use a define CONFIG_PLATFORM_EC_CONSOLE_USES_PRINTK to force zephyr_print to use printk BUG=b:193585176 BRANCH=none TEST=zmake configure -b $PROJ_HAYATO TEST=boot asurada Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: Ia9c3d38754e298e3ef7fe8e72ff1e30a7dc775d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3082329 Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: shim: zephyr_print option to use printkDenis Brockus2021-08-112-1/+20
| | | | | | | | | | | | | | | | | | | | Some devices are not able to output fast enough using shell_fprintf and they timeout unrelated functionality. For this case it will be allowed to use a define CONFIG_PLATFORM_EC_CONSOLE_USES_PRINTK to force zephyr_print to use printk BUG=b:193585176 BRANCH=none TEST=zmake configure -b $PROJ_HAYATO Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I8a08fc730637e1d9e2b612b877572fac235a4be4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3082328 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* eel: initial commitTing Shen2021-08-113-1/+15
| | | | | | | | | | | | | | | | | Eel is the detachable keyboard (Hammer derivative) for Wormdingler project. BUG=b:195625351 TEST=make BRANCH=trogdor Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I01449f0058c857e52d5b40e7fb69d9474e3b18b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3084326 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* zephyr: zmake: drop "print-versions" subcommandJack Rosenthal2021-08-113-50/+0
| | | | | | | | | | | | | | | | This command was intended for use in ebuild, but never instrumented. Remove the dead code. BUG=b:195571108 BRANCH=none TEST=zephyr/zmake/run_tests.sh Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I68d3da2e4dfdb4a44b5a58d2b8e2c01da373c06f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3086366 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: drop v2.5 support from all projectsJack Rosenthal2021-08-117-7/+0
| | | | | | | | | | | | | | | | Remove support for v2.5 for all projects which still indicate it's supported. BUG=b:195571108 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I5c22e382545741181866a4e88cb3d486a392f2f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3086365 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: update gitlab external CI to use v2.6 on all buildsJack Rosenthal2021-08-111-8/+7
| | | | | | | | | | | | | | | 2.5 support is going away. Drop any builds which use 2.5 still. BUG=b:195571108 BRANCH=none TEST=gitlab pipeline results UI Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I9f18f934db9267e3f074c82fa6f64c603c62b842 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3086364 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: cros_kb_raw_npcx: Add output high driver config optionWealian Liao2021-08-113-1/+13
| | | | | | | | | | | | | | | This CL adds a Kconfig option 'CROS_KB_RAW_NPCX_KSO_HIGH_DRIVE' for npcx output buffer high driver function. BUG=none BRANCH=none TEST=zmake testall Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I91f98581f43ca88991345b2e23ab11e5b99353be Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3077763 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: herobrine_npcx9: enable shell historyJack Rosenthal2021-08-111-0/+3
| | | | | | | | | | | | | | | | Enable the shell history for developer convenience. BUG=b:192253134 BRANCH=none TEST=compiles Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Id48cc36ba54d03879434fca7bf992d44cfcabbb7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3087835 Commit-Queue: Wai-Hong Tam <waihong@google.com> Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* delbin: Remove delbin_npcx796cMichael5 Chen12021-08-103-8/+0
| | | | | | | | | | | | | | | | Remove delbin_npcx796c because it will cause image size is too big. BUG=b:195968642 BRANCH=firmware-volteer-13672.B TEST=make BOARD=delbin Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: I0ec0b86e442d15a99662963df790c7bb76113b06 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3084401 Reviewed-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: lazor: add keyscan parametersKeith Short2021-08-102-1/+30
| | | | | | | | | | | | | Add the keyscan parameters specific to the Lazor board. BUG=b:195945894 BRANCH=none TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I07718e093c2ac1c12f6af854d4656fb4f224db32 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3083723 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: volteer: add keyscan parametersKeith Short2021-08-102-1/+30
| | | | | | | | | | | | | Add the keyscan parameters specific to the Volteer board. BUG=b:195945894 BRANCH=none TEST=verify keyboard on Volteer Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I36af888faf9a9401f61aee3c7ed5bd31cb308be0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3083722 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: Create devicetree node for keyscanKeith Short2021-08-103-0/+117
| | | | | | | | | | | | | | Create devicetree node to specify the keyscan runtime parameters. BUG=b:195945894 BRANCH=none TEST=zmake testall TEST=verify keyboard on Volteer with next CL Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I4dbf5e4f2205f31651d33b6ffc1ecd1dd6696795 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3083721 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: hooks: change priority to uint16_tFabio Baltieri2021-08-101-1/+1
| | | | | | | | | | | | | | | | | Priority field goes from 0 to HOOK_PRIO_LAST, so 16 bits are enough. Switching to a 2 bytes field allows struct zephyr_shim_hook_list to pack up in 12 bytes, saves a bit of ram. BRANCH=none BUG=b:195521227 TEST=build and run on volteer Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ia8899d3d47a3c38ed20dfa5121d375a4419567f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3080573 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: shim: reimplement hooks using iterablesFabio Baltieri2021-08-104-36/+26
| | | | | | | | | | | | | | | | | | Reimplement the hooks shim code using Zephyr iterable sections. Keep the existing hook_registry based structure, gets rid of the per-hook init functions and instead initializes all the list nodes from a single init call. BRANCH=none BUG=b:195521227 TEST=build and run on volteer Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ic166d214ee1dcd1431ec484e5014cb297f7fb8c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3069399 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: shim: reimplement mkbp_event using iterablesFabio Baltieri2021-08-103-48/+12
| | | | | | | | | | | | | | | Rewrite the MKBP events shim using iterable sections. BRANCH=none BUG=b:195521227 TEST=build and run on volteer Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ia96fb9ec06b1a86b1be293209db317a361ae4741 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3069398 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: shim: reimplement host commands using iterablesFabio Baltieri2021-08-104-59/+14
| | | | | | | | | | | | | | | | | Rewrite the host command shim using Zephyr iterable sections. This allows initializing the HC structure statically and gets rid of the runtime init code entirely. BRANCH=none BUG=b:195521227 TEST=build and run on volteer Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I94a55f8eb3e1d58de6a1d93c31b6170a5541a1fc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3010284 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* firmware_builder: Make cros lint happyCraig Hesling2021-08-101-15/+24
| | | | | | | | | | | | | | BRANCH=none BUG=none TEST=cros lint ./firmware_builder.py TEST=./firmware_builder.py --help TEST=./firmware_builder.py --metrics $(mktemp /tmp/fwbld.XXX) test TEST=./firmware_builder.py --metrics $(mktemp /tmp/fwbld.XXX) build Signed-off-by: Craig Hesling <hesling@chromium.org> Change-Id: I0c2b03d3197fc021e93ce8a0029cdd465b9eb457 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3082336 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
* firmware_builder: Add printing of make commandsCraig Hesling2021-08-101-2/+7
| | | | | | | | | | | | | | | This helps people parsing the build output log to understand what commands were invoked. BRANCH=none BUG=b:195718112 TEST=./firmware_builder.py --metrics <(echo) test TEST=./firmware_builder.py --metrics <(echo) build Signed-off-by: Craig Hesling <hesling@chromium.org> Change-Id: Iacceae2bba3db3631456a5d5012fc933730031ba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3082335 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>