summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* corori: Initial EC imageIan Feng2021-08-1711-0/+1581
| | | | | | | | | | | | | | | | | | | | Create the initial EC image for the corori variant by copying the lalala 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:194356176 BRANCH=None TEST=make BOARD=corori Signed-off-by: Ian Feng <ian_feng@compal.corp-partner.google.com> Change-Id: I3aa0c1317b926c6f39e1d5a669f57c75151861aa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3070319 Reviewed-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* driver/amd_stt: Add AMD STT driverRob Barnes2021-08-166-0/+190
| | | | | | | | | | | | | | | | | | Add a driver for writing Skin Temperature Tracking (STT) sensor readings to the SB-RMI interface. STT readings are used to maximize the SOc performance while keeping the skin temperature within specification. BUG=b:176994331 TEST=Build and run on guybrush BRANCH=None Change-Id: If655545158e7dc05946bc67686b1b0b40a40a713 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078050 Reviewed-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Raul E Rangel <rrangel@chromium.org> Commit-Queue: Raul E Rangel <rrangel@chromium.org>
* driver/sb_rmi: Add AMD SB-RMI driverRob Barnes2021-08-166-0/+264
| | | | | | | | | | | | | | | | | | Add Side-Band Remote Management Interface driver. SB-RMI can be used to manage power limits of the SOC. SB-RMI uses a soft mail box for executing transactions. BUG=b:176994331 TEST=Build BRANCH=None Change-Id: Ie185985e4c8d2c2d915b2ae2447709ddc16adda6 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078049 Tested-by: Rob Barnes <robcb85@gmail.com> Commit-Queue: Raul E Rangel <rrangel@chromium.org> Reviewed-by: Fanli Zhou <fanliccc@gmail.com> Reviewed-by: Raul E Rangel <rrangel@chromium.org>
* haboki: add gpio EC_CBI_WPZick Wei2021-08-161-2/+1
| | | | | | | | | | | | | | | This patch assign gpio EC_CBI_WP to GPH5. BUG=b:188368049 BRANCH=keeby TEST=make BOARD=haboki Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Iab3a49c53019fc053e2500ea1c8f7a37cfd20936 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3097246 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* USB MUX: Introduce flag to clear mux state in G3Diana Z2021-08-162-0/+25
| | | | | | | | | | | | | | | | | | Some muxes may need to be re-set after they've power cycled, and many muxes are tied to the S5 power rails. Introduce a flag which can be used to indicate a mux needs to re-run init and is no longer in LPM after the G3 state has been hit. BRANCH=None BUG=b:195045790 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I8bd4184dbea629edf106dbee32f811620ebda0dd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093086 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* ps8xxx: Check for register access errorsCaveh Jalali2021-08-161-7/+15
| | | | | | | | | | | | | | This adds error checking to ps8815_disable_rp_detect_workaround_check. BRANCH=none BUG=none TEST=buildall passes Change-Id: I6c901893e0f5f8ea02fbcb0e6dc082671f13a172 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3087984 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* ps8xxx: Increase FW init delay to 50msCaveh Jalali2021-08-161-1/+1
| | | | | | | | | | | | | | | The latest app note indicates the ps8815 firmware may take up to 50ms to be ready. BRANCH=none BUG=b:186189039 TEST=buildall passes Change-Id: Ibc5ee2e6030d19b91d6c0b8a493aa05dd31c77e4 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3087983 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: Add switchcap for herobrine_npcx9 to device treeMichał Barnaś2021-08-166-26/+19
| | | | | | | | | | | | | | | This patch removes custom switchcap logic and uses device tree implementation instead. BRANCH=main BUG=b:194211207 TEST=Compile and flash Zephyr's EC for herobrine_npcx9 Powering on and off should work correctly Change-Id: Ice51e097c2126e78c6dbfb933a10724cf0374f67 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3089119 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: add support for switchcap in device treeMichał Barnaś2021-08-166-1/+165
| | | | | | | | | | | | | | | | | | This commit adds support for switchcap definition in device tree. It will allow to remove board specific files which implemented the switchcap functionalities. This will unify the logic between different board in zephyr. BRANCH=main BUG=b:194211207 TEST=Use linked TEST commits to see example of definitions for lazor Use GPIO or LN9310 version, build and flash to lazor. Board should be able to boot correctly. Signed-off-by: Michał Barnaś <mb@semihalf.com> Change-Id: Ib80a73dcb2db95e2dcf48e33f876a39246fd506a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3085670 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: npcx_evb: Enable RTCWealian Liao2021-08-163-0/+9
| | | | | | | | | | | | | This CL enables RTC for npcx7/9_evb. BUG=none BRANCH=none TEST='rtc' console command Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Icc5d79d16ba2e4073ce39d38f0942a050d128e82 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088961 Reviewed-by: Keith Short <keithshort@chromium.org>
* usbpd: do not enter DP mode in S5->S3 transitionEric Yilun Lin2021-08-161-2/+3
| | | | | | | | | | | | | | | | | If DUTs enter mode in S5->S3, and the mux would be re-configured after in S3 and make the DP alt mode not correctly function. BUG=b:194031794 TEST=plug DP dongle in S5/G3 on Asurada, boot to S0, and see display BRANCH=asurada Change-Id: Iee0ea2549e68ca7effc8cc538c22f4d388f10943 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093347 Reviewed-by: Ruibin Chang <Ruibin.Chang@ite.com.tw> Reviewed-by: Diana Z <dzigterman@chromium.org> Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw> Commit-Queue: Eric Yilun Lin <yllin@google.com>
* ps8xxx: Refactor role control delay logicCaveh Jalali2021-08-141-8/+13
| | | | | | | | | | | | | | | | | | This refactors how we deal with ps8xxx_role_control_delay. An array of booelans is replaced with an array of delay values with default of 0ms. Instead of checking the array to determine whether a 1ms delay should be performed, the array unconditionally specifes the delay to be performed. The default 0ms delay is equivalent to the previous "false" entry. BRANCH=none BUG=b:186189039 TEST=buildall passes Change-Id: Ie351c58442eb206f38cea7a1f30dd1789a8c8025 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3084330 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* 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>