summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* USB MUX: Generalize mux ACKDiana Z2021-08-1438-66/+248
| | | | | | | | | | | | | | | | | | | | Currently, only the virtual mux driver uses the mux ACK feature, but the actual wait for the host command ACK is a part of the usb_mux general code. Generalize this mux ACK wait so it's available if needed in the future for more muxes. Additionally, moving this wait out of the mux set will allow us to lock the muxes intelligently between tasks, without keeping the muxes locked during the inactive ACK wait. BRANCH=None BUG=b:172222942,b:186777984 TEST=tast typec.Mode*.manual on voxel Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I61a043425a482cc6f3170548c888d91ec20c2a82 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078411 Reviewed-by: Keith Short <keithshort@chromium.org>
* ps8xxx: Simplify firmware version logicCaveh Jalali2021-08-141-21/+18
| | | | | | | | | | | | | | This removes a test that we know is always true before fetching the firmware version number from the chip. BRANCH=none BUG=none TEST=buildall passes Change-Id: Ie3096f80cb229291681ebe6c48f69a4b7a4d7be3 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093036 Reviewed-by: Keith Short <keithshort@chromium.org>
* nipperkin: Remove motion sensor and ANX retimer codeBhanu Prakash Maiya2021-08-146-264/+3
| | | | | | | | | | | | BUG=b:194031783 BRANCH=None TEST=make BOARD=nipperkin Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Change-Id: I5dcf1bd231e472e99761ff5a24ea8de7dc21f069 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3095010 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: volteer: Set fixed PD debug levelKeith Short2021-08-141-0/+2
| | | | | | | | | | | | | | | | Set a fixed PD debug level to match cros-ec builds for better size comparisons. BUG=none BRANCH=none TEST=zmake testall TEST=Boot zephyr on Volteer Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I07a4ae25901db05c8cec1485b70ffe29bb49b4f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093490 Commit-Queue: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* nipperkin: Initial EC imageBhanu Prakash Maiya2021-08-1310-0/+802
| | | | | | | | | | | | | | | | | | Create the initial EC image for the nipperkin variant by copying the guybrush reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.5.0). BUG=b:194031783 BRANCH=None TEST=make BOARD=nipperkin Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Change-Id: Ie7b7207a7fee40b120e14199ad3d41e8c0f9d108 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093489 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* ps8xxx: Remove redundant & operator on functionsCaveh Jalali2021-08-131-27/+27
| | | | | | | | | | | | | This removes redundant usage of the address operator on function names. BRANCH=none BUG=none TEST=buildall passes Change-Id: Idd9fbe03af90e3ee75f6b420041a0c9bf67be884 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093034 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: herobrine_npcx9: Enable tab autocompletionWai-Hong Tam2021-08-131-1/+3
| | | | | | | | | | | | | | | | | Convenient to list all possible arguments for developers who are not very familiar with the Zephyr commands. The RW code size increases from 196,200 to 197,280 bytes (diff: 1,080 bytes). BRANCH=None BUG=b:187352210, b:192253134 TEST=Typed TAB and checked all possible arguments showing up. Change-Id: I97622f32d62a9447b7b33ee085ce5413e4096f9c Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3094310 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* boten: Check pen detection on initarthur.lin2021-08-131-0/+7
| | | | | | | | | | | | | | | | | | | The Pen detection is detecting by interrupt. However, it will miss the event on init if stylus already into garage. This patch adds checking pen detection on init. BRANCH=dedede BUG=b:196258408 TEST=make buildall -j On Boten, Resume from battery cutoff or EC hibernate. Make sure stylus is charging. Signed-off-by: arthur.lin <arthur.lin@lcfc.corp-partner.google.com> Change-Id: Ie74f4c391d658c7b9fd886267b62d21a99de77df Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093652 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* IOEX: nct38xx: Map Type-C port to IOEX portVijay Hiremath2021-08-132-3/+28
| | | | | | | | | | | | | | | | Default function assumes Type-C port number to be same as the I/O expander number. This logic can differ based on the board design hence added overridable function to map Type-C port to I/O expander port. BUG=none BRANCH=none TEST=make buildall -j Change-Id: Iec9deba7d2a6bf981664ec8d1665f54dfa2905b6 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3076471 Reviewed-by: caveh jalali <caveh@chromium.org>
* rt1718s: implement adc readTing Shen2021-08-132-6/+119
| | | | | | | | | | | | | | | | | | | | Cherry uses the VBUS1 adc channel in RT1718S to check the VBUS voltage on port 1. Thus add this function for Cherry. BUG=b:196001868 TEST=1) manually check the readings of ADC_VBUS1 2) Combined with board/ side changes, `ectool usbpdpower` shows correct value BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I243f28b2bd4e8541257afcacb50a024a72e301fd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3040801 Reviewed-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* console: Fix logs printed for some commandsLukasz Hajec2021-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | E.g. in servod console there is always 'Disabling uart timestamps.' printed, no matter what we enter to dut-control - on/off. This patch fixes that issue. BRANCH=none BUG=b:173654272 TEST=Perform manual testing: "sudo servod --board=nocturne" "dut-control cr50_uart_timestamp:on" "dut-control cr50_uart_timestamp:off" observe proper logs in servod console. Signed-off-by: Lukasz Hajec <lha@semihalf.com> Change-Id: I52cde5e4a9cd70fdc3e9d9513f8aa4126c5f09f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3077540 Reviewed-by: Michał Barnaś <mb@semihalf.com> Reviewed-by: Matthew Blecker <matthewb@chromium.org>
* 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>