summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'cros/main' into firmware-volteer-13672.B-mainAbe Levkoy2021-01-2661-277/+544
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sync with main. Includes the following changes: 1fff129e5 (m/master, cros/main) zmake: remove prefer-zephyr-sdk from project config 7d2680152 zephyr: kohaku/volteer: unset prefer-zephyr-sdk e40faf973 zephyr: Use Chrome EC's libgcc implementation over the compiler's 774e4bfab drawcia: Set gyroscope translation matrix 6bd8ba080 voema: Initialize the vivaldi keyboard. 0ba6f7f8c zork: add support SSFC e10667e30 voxel: Enable CONFIG_KEYBOARD_VIVALDI 061ca8397 Metaknight: Fix wrong words 09926c20b woomax: Modify strength value of PS8818 for USB-C0 signal quality 6bf5cfa64 usb_mux: Send missed disconnect mode in S3/S0ix 3f64cdcb6 usb_mux: Use atomic operations for updating the flag 67bf75c9b tcpmv2: Re-discover cable if the port parter is PD 2.0 bde820f24 tcpmv2: ensure the USB mux state is only changed in the PD task 7a09b754e docs: add porting considerations for Ztest e8faab25e dedede: Add MKBP_EVENT to baseboard affbf150d usb_mux: Send missed disconnect mode in S3/S0ix 7ebc7659f usb_mux: Use atomic operations for updating the flag 5305a5d61 zephyr: volteer: move CONFIG_SHIMMED_TASKS 8aefdfec0 guybrush: Configure keyboard 10a919e01 ctn730: Print payload and handle download mode b1d414b77 pchg: Initialize pchg chips on startup 3c5f55ace zephyr: provide a header for cpu.h e9eefa1d9 tcpmv2: Re-discover cable if the port parter is PD 2.0 bfc29b475 zephyr: test: update unit tests for zmake 0f7a6d893 zephyr: test: provide Kconfig defaults for tests c109df3a4 Trogdor: Don't make pressing a key a wake source if no keyboard fbca51787 pd: fix superspeed mux steering on UFP c6baaa7c8 guybrush: implement usb_pd_policy stubs d289734a5 TBT: Correct pdcable command 24c5daa48 tcpmv2: ensure the USB mux state is only changed in the PD task eb3d6b6b4 guybrush: Enable BOARD_RESET_AFTER_POWER_ON d032dc3c0 octopus: set CONFIG_BC12_MAX14637_DELAY_FROM_OFF_TO_ON_MS to 100ms 8b5963199 max14637: Switch should not be kept open when PD adapter is disconnected 7ac3b8771 Metaknight: Add temp sensor to read temperature 6fdd5a2eb elemi: Change thermal and fan configuration BUG=none TEST=make buildall BRANCH=firmware-volteer-13672.B-main Change-Id: I9bf1672754ba15e339ee88286e42e52402bc366d
| * zmake: remove prefer-zephyr-sdk from project configJack Rosenthal2021-01-262-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No projects set this anymore. BUG=b:178363068 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ib28017048695a5dbabaead83de49c85363fde665 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2647537 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org> Commit-Queue: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org>
| * zephyr: kohaku/volteer: unset prefer-zephyr-sdkJack Rosenthal2021-01-262-34/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | coreboot-sdk is working now, this hack can go away. BUG=b:178363068 BRANCH=none TEST=compile without -t coreboot-sdk, run on device Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ifc5b05557ecf623e709bfd2b464648bd24197e1c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2647536 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org> Commit-Queue: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org>
| * zephyr: Use Chrome EC's libgcc implementation over the compiler'sPatrick Georgi2021-01-263-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc's libgcc is built with a compile time notion of what an architecture's ABI will look like. If that happens to be wrong, you're out of luck. Instead, use our own implementation which, while written in assembly (and as such not as flexible as it could be) is processed with the right set of flags. BUG=b:178363068 BRANCH=none TEST=zephyr boots on kohaku when built with coreboot-sdk. Signed-off-by: Patrick Georgi <pgeorgi@google.com> Change-Id: I6d27bb48478081b6c2ff8927734492282e55e898 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648666 Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Patrick Georgi <pgeorgi@chromium.org>
| * drawcia: Set gyroscope translation matrixEvan Green2021-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CTS tests are failing because sensor values from axis 1 and 2 are negated. When the test expects 360 degrees, -360 degrees gets reported. Set the standard base translation matrix to resolve this. BUG=b:175996778 TEST=Try CTS BRANCH=None Signed-off-by: Evan Green <evgreen@chromium.org> Change-Id: I9ede658cef042caf72b81d08e4c47de4c7b5e820 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648730 Tested-by: Kazuhiro Inaba <kinaba@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Kazuhiro Inaba <kinaba@chromium.org> Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org>
| * voema: Initialize the vivaldi keyboard.David Huang2021-01-262-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize the vivaldi keyboard. BUG=b:177274193 BRANCH=main TEST=manual 1. Scan all key. 2. Check action key function. 3. Check ALT + Volup + H. 4. Check ALT + Volup + R. 5. Check Refresh (F2) + powerbutton (EC reboot). 6. Check ESC + Refresh + powerbutton. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: Ib949e96910130971b41c3dd6017ac9b6f7e08ff8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637155 Reviewed-by: Keith Short <keithshort@chromium.org>
| * zork: add support SSFCZick Wei2021-01-263-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add support SSFC for zork, add support base sensor as below: SSFC_BASE_GYRO_BMI160 = 1, SSFC_BASE_GYRO_LSM6DSM = 2, SSFC_BASE_GYRO_ICM426XX = 3, BUG=b:173753906 BRANCH=zork TEST=make buildall Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I10749d819b852861ac5a32d69f2b872527633082 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2641706 Reviewed-by: Edward Hill <ecgh@chromium.org>
| * voxel: Enable CONFIG_KEYBOARD_VIVALDIBen Chen2021-01-262-6/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL implements vivald function row config for voxel keyboard. BUG=b:177043612 BRANCH=main TEST=verify keycode is correct in `evtest` Change-Id: I02d59bf1ec9fac802f0b47f38bba1cd3915573b8 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2620732 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org>
| * Metaknight: Fix wrong wordsYu-An Chen2021-01-264-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Fix wrong words. BUG=None BRANCH=main TEST=None Signed-off-by: yu-an.chen@quanta.corp-partner.google.com Change-Id: I9af86d352d00403dd66012fdac2c639454ca1518 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2644789 Reviewed-by: Diana Z <dzigterman@chromium.org>
| * woomax: Modify strength value of PS8818 for USB-C0 signal qualityMichael5 Chen12021-01-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | According the USB TX test result, modity ps8818 setting. BUG=b:175351902 BRANCH=zork TEST=manual Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: I2a6892365b283f52c6accd8cb73facd1973dd68a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2641715 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
| * docs: add porting considerations for ZtestPaul Fagerburg2021-01-261-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new section to the Ztest documentation providing details of what sorts of EC unit tests are not good candidates for porting to Ztest. BUG=b:172240633, b:172240757 BRANCH=None TEST=N/A Signed-off-by: Paul Fagerburg <pfagerburg@google.com> Change-Id: I3010dfb338e8e9c835c55b10a79a2e4dce703f96 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648397 Tested-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
| * dedede: Add MKBP_EVENT to baseboardEvan Green2021-01-267-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CtsSensorTestCases is failing on Drawcia because it requests 100 events from accelerometer and gyroscope but gets zero. We can read sensor events just fine, but they never seem to push to the kernel. Add CONFIG_MKBP_EVENT into the baseboard, and then clean up all the one-off variants that have added this themselves. Also, add some accel commands specific to drawcia for easier debugging. BUG=b:171939568 BRANCH=none TEST=Use amstan's script, which amounts to cat /dev/iio:deviceN Signed-off-by: Evan Green <evgreen@chromium.org> Change-Id: Ia796ec2f9a08d3628dcabb4b5fca425693af4099 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2638636 Reviewed-by: Diana Z <dzigterman@chromium.org>
| * usb_mux: Send missed disconnect mode in S3/S0ixMadhusudanarao Amara2021-01-263-8/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the Type-C devices are connected in S0 and when DUT enters S3/S0ix, if the type-C devices are disconnected and re-connected, Kernel won't receive the disconnected state from EC once DUT boots to S0 as EC moves on and updates the new connected state to Kernel Mux driver. This leads to failure of Type-C device detection on resuming to S0 from S3/S0iX. To overcome this scenario, adding an explicit condition to send previous disconnect state to Kernel Mux driver once initial mux request is received upon resuming from S3/S0iX. Missing Disconnect mode Patch Details: Set disconnect latch flag for the init and disconnect requests For AP to EC PD command: EC_CMD_USB_PD_CONTROL -Check disconnect latch flag if it is true set pd.enabled = 0 For AP to EC mux command: EC_CMD_USB_PD_MUX_INFO -Check the disconnect latch flag if it is true then send disconnect mode -Reset the disconnect latch flag -Send host event EC_HOST_EVENT_USB_MUX for configuring the virtual mux with the latest Mux configuration BUG=b:176604380 BRANCH=None TEST=Type C devices in s0ix disconnect/connect or swapping across the ports scenarios tested Change-Id: Ic38d3632cb0fadb29393405e13ed3606a740c81e Signed-off-by: Madhusudanarao Amara <madhusudanarao.amara@intel.corp-partner.google.com> Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2632551 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
| * usb_mux: Use atomic operations for updating the flagMadhusudanarao Amara2021-01-261-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Atomic operations used in updating the LPM flag BUG=None BRANCH=None TEST=Disconnect typeC devices and then connect back, devices are detected Signed-off-by: Madhusudanarao Amara <madhusudanarao.amara@intel.corp-partner.google.com> Change-Id: I6c3fa4b9c63436a16465012fe715ce28995ed179 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648145 Tested-by: Ayushee Shah <ayushee.shah@intel.com> Reviewed-by: Tanu Malhotra <tanu.malhotra@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
| * zephyr: volteer: move CONFIG_SHIMMED_TASKSJack Rosenthal2021-01-252-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was in the board config, which is for hardware configuration. Project configuration needs to go in prj.conf. BUG=none BRANCH=none TEST=compile Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I3c91ca93722b9bc112218ef911bd076e386a762c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2647534 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
| * guybrush: Configure keyboardRob Barnes2021-01-253-2/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configure keyboard based on zork. Enable keyboard tasks. Enable pwm for keyboard backlight. BUG=b:178213641 BRANCH=None TEST=Build Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: Iae9d31c9849a3500dbd000829bd1439901a6d1b6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645076 Reviewed-by: Diana Z <dzigterman@chromium.org>
| * ctn730: Print payload and handle download modeDaisuke Nojiri2021-01-251-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes ctn730 driver print payload and handle download mode. BUG=b:173235954 BRANCH=trogdor TEST=CoachZ Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I74626c726c18c30a039fc521e419688796db9c3b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2646124 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
| * pchg: Initialize pchg chips on startupDaisuke Nojiri2021-01-251-16/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes pchg task disable the interrupt on shutdown and initialize pchg chips on start-up. Tested as follows: 1. Run dut-control power_state:on -> off -> on. 2. Run dut-control power_state:reset. Do 1 and 2 with and without a stylus attached and verify pchg task remains under control. BUG=b:176725734, b:173235954 BRANCH=trogdor TEST=CoachZ Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I0b1b5501975ad6c8a89041639d3fa90a71b4e9b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643586 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
| * zephyr: provide a header for cpu.hJack Rosenthal2021-01-251-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a minimal header for cpu.h, which is used by both panic_output.c and system.c. BUG=b:174481378,b:178011288 BRANCH=none TEST=compiles with panic_output.c Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I16ca7350d58bc392d87a6f0bbf9d6080e607998d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2647951 Reviewed-by: Yuval Peress <peress@chromium.org>
| * tcpmv2: Re-discover cable if the port parter is PD 2.0Ayushee Shah2021-01-251-12/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the cables has been queried with PD 3.0, but the port partner supports PD 2.0, re-discover the cable capabilities. BUG=b:178077239 BRANCH=None TEST=Tested with PD2.0 dock and PD3.0 cable, able to enter Thunderbolt mode. Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Change-Id: I559f57a64a525a7ee0ae8744f88ec347688fe880 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643580 Reviewed-by: Keith Short <keithshort@chromium.org>
| * zephyr: test: update unit tests for zmakePaul Fagerburg2021-01-2515-131/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many of the options in CMakeLists.txt and prj.conf are no longer necessary with zmake and Kconfig handling them automatically now. BUG=b:178220157 BRANCH=none TEST=`zmake testall` Signed-off-by: Paul Fagerburg <pfagerburg@google.com> Change-Id: I845f42c4b51214f28ab7771734232fec763c04f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645696 Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
| * zephyr: test: provide Kconfig defaults for testsPaul Fagerburg2021-01-252-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we're building a unit test, provide defaults for many of the hardware options that don't need to be included in a unit test, or have to be there for the linker's sake but aren't actually used. BUG=b:178220157 BRANCH=none TEST=`zmake testall` Signed-off-by: Paul Fagerburg <pfagerburg@google.com> Change-Id: Iaab2a3a3a8175e7e08099467947cf183b707cef6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645695 Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
| * Trogdor: Don't make pressing a key a wake source if no keyboardWai-Hong Tam2021-01-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the board doesn't have a task to scan keys, it doesn't have an internal keyboard. Don't make pressing a key (the event EC_MKBP_EVENT_KEY_MATRIX) a wake source in this case. BRANCH=Trogdor BUG=b:178231341 TEST=Checked the wakemask bit:0 EC_MKBP_EVENT_KEY_MATRIX is unset $ ectool mkbpwakemask get event MBKP event wake mask: 0x00000406 Change-Id: I5a8f208ad2727e135f7d8a756b697152af6cfcf0 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645744 Reviewed-by: Douglas Anderson <dianders@chromium.org>
| * pd: fix superspeed mux steering on UFPVincent Palatin2021-01-253-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the device has a USB superspeed UFP (which is uncommon, this is either servo v4.1 or a laptop port in SS device-mode), if we connect as a sink *before* trying PD communication, we should connect the SS mux without waiting for the partner PD comm capability as we might never be able to communicate with it over PD. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=b:150614702 BRANCH=servo TEST=use the sink mode enabled by 'cc pdsnk', connect to a USB-C Chromebook, try both video output on USB-C->mini-DP and USB 3.0. Change-Id: Iea0409fce2cb7aca089814ae406a7c05848dd8e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637647 Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
| * guybrush: implement usb_pd_policy stubsRob Barnes2021-01-251-5/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | Implement pd stubs in usb_pd_policy. Based on zork implementation. BUG=b:175400400 TEST=Build BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I4b87518bf758d3eb7245ad4eafd5a99dd824a150 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613225 Reviewed-by: Diana Z <dzigterman@chromium.org>
| * TBT: Correct pdcable commandAyushee Shah2021-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL changes the revision field in the pdcable console command to check the PD revision instead of checking the VDM version. BUG=None BRANCH=None TEST=Able to get the 'Cable Rev' field as 3.0 for PD 3.0 cables Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Change-Id: I7e10b2e352bc78c23c8578361b577d04a9491e7a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643576 Reviewed-by: Tanu Malhotra <tanu.malhotra@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org>
| * tcpmv2: ensure the USB mux state is only changed in the PD taskKeith Short2021-01-251-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The USB mux code does not provide any mutex protection. In addition the virtual USB mux code must be run from the PD task to handle synchronization of the EC_CMD_USB_PD_MUX_ACK host command. Move the USB mux updates into the common power state handler for the type-C state machine. BUG=b:178186846 BRANCH=volteer TEST=make buildall TEST=Connect Gatkex to Voxel, execute EC reboot and verify assertion is fixed. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I0a18d0f5c51eedb4ecb0c275ea1235f7838246a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2644843 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Chiranjeevi Rapolu <chiranjeevi.rapolu@intel.corp-partner.google.com>
| * guybrush: Enable BOARD_RESET_AFTER_POWER_ONRob Barnes2021-01-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was required on Zork. It's also needed on guybrush. BUG=None TEST=Build BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I7a81cd61cff2f39bf4d6a76da9fef5453c2e52dc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645074 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
| * octopus: set CONFIG_BC12_MAX14637_DELAY_FROM_OFF_TO_ON_MS to 100msyu-an.chen2021-01-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set CONFIG_BC12_MAX14637_DELAY_FROM_OFF_TO_ON_MS to 100 ms BUG=b:177265749 BRANCH=octopus TEST=make buildall -j 8 Signed-off-by: yu-an.chen@quanta.corp-partner.google.com Change-Id: I175b8df258c92b155857a0b41d930fe157420a31 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2644781 Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Reviewed-by: Marco Chen <marcochen@chromium.org> Commit-Queue: Marco Chen <marcochen@chromium.org> Auto-Submit: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
| * max14637: Switch should not be kept open when PD adapter is disconnectedyu-an.chen2021-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Root Cause: D+ and D- of PD adapter are shorted so chip would detect PD adapter as the DCP. As a result, chip would set USB 2 switch open based on product spec. Later on once USB 2.0 storage is attached, DUT can't recognize it because USB 2.0 data path is blocked by chip now before introducing this CL. Solution: Whenever adapter or USB client device is disconnected from a port of DUT, we re-trigger the bc12_detect() so chip will be off then on for detecting the status again. In this case, the D+/D- are NC so chip will detect it as the SDP and keep this status afterward. When USB 2.0 storage is connected later, bc12_detect will not be called again due to DUT is in source role. At this moment, USB switch is closed so USB 2.0 path is good. And there is no BC12 detecting cycle happened so we will not hit issue resolved in CL:*2364342 as well. When adapter is connected again, bc12_detect will be triggered for detecting DCP / SDP / CDP. BUG=b:177265749 BRANCH=octopus TEST=make buildall -j 8 TEST=check lsblk , usb2 device is exist after reproduce step Signed-off-by: yu-an.chen@quanta.corp-partner.google.com Change-Id: I769e9f97daf86992259d8da0bbb38a1068bd8a5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2626791 Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Reviewed-by: Marco Chen <marcochen@chromium.org> Commit-Queue: Marco Chen <marcochen@chromium.org>
| * Metaknight: Add temp sensor to read temperatureYu-An Chen2021-01-252-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | Add temp sensor for reading temperature. BUG=b:177854439 BRANCH=main TEST=In console input "temps" to check temperature. Signed-off-by: yu-an.chen@quanta.corp-partner.google.com Change-Id: Ifc9c3d5c2e93ddd8267353fa9fd31367e539c3d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637154 Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
| * elemi: Change thermal and fan configurationDevin Lu2021-01-251-32/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes thermal halt/alert, fan maximum/off temperature point and fan minimum/maximum speed. BUG=b:177635236 BRANCH=firmware-volteer-13672.B-main TEST=Thermal team verified thermal policy is expected. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I165dde7585aff055659187ab08511584c836cd4b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639432 Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* | usb_mux: Send missed disconnect mode in S3/S0ixMadhusudanarao Amara2021-01-253-8/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the Type-C devices are connected in S0 and when DUT enters S3/S0ix, if the type-C devices are disconnected and re-connected, Kernel won't receive the disconnected state from EC once DUT boots to S0 as EC moves on and updates the new connected state to Kernel Mux driver. This leads to failure of Type-C device detection on resuming to S0 from S3/S0iX. To overcome this scenario, adding an explicit condition to send previous disconnect state to Kernel Mux driver once initial mux request is received upon resuming from S3/S0iX. Missing Disconnect mode Patch Details: Set disconnect latch flag for the init and disconnect requests For AP to EC PD command: EC_CMD_USB_PD_CONTROL -Check disconnect latch flag if it is true set pd.enabled = 0 For AP to EC mux command: EC_CMD_USB_PD_MUX_INFO -Check the disconnect latch flag if it is true then send disconnect mode -Reset the disconnect latch flag -Send host event EC_HOST_EVENT_USB_MUX for configuring the virtual mux with the latest Mux configuration BUG=b:176604380 BRANCH=None TEST=Type C devices in s0ix disconnect/connect or swapping across the ports scenarios tested Change-Id: Ic38d3632cb0fadb29393405e13ed3606a740c81e Signed-off-by: Madhusudanarao Amara <madhusudanarao.amara@intel.corp-partner.google.com> Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2632551 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* | usb_mux: Use atomic operations for updating the flagMadhusudanarao Amara2021-01-251-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Atomic operations used in updating the LPM flag BUG=None BRANCH=None TEST=Disconnect typeC devices and then connect back, devices are detected Signed-off-by: Madhusudanarao Amara <madhusudanarao.amara@intel.corp-partner.google.com> Change-Id: I6c3fa4b9c63436a16465012fe715ce28995ed179 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648145 Tested-by: Ayushee Shah <ayushee.shah@intel.com> Reviewed-by: Tanu Malhotra <tanu.malhotra@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* | tcpmv2: Re-discover cable if the port parter is PD 2.0Ayushee Shah2021-01-251-12/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the cables has been queried with PD 3.0, but the port partner supports PD 2.0, re-discover the cable capabilities. BUG=b:178077239 BRANCH=None TEST=Tested with PD2.0 dock and PD3.0 cable, able to enter Thunderbolt mode. Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Change-Id: I559f57a64a525a7ee0ae8744f88ec347688fe880 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643580 Reviewed-by: Keith Short <keithshort@chromium.org>
* | tcpmv2: ensure the USB mux state is only changed in the PD taskKeith Short2021-01-251-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The USB mux code does not provide any mutex protection. In addition the virtual USB mux code must be run from the PD task to handle synchronization of the EC_CMD_USB_PD_MUX_ACK host command. Move the USB mux updates into the common power state handler for the type-C state machine. BUG=b:178186846 BRANCH=volteer TEST=make buildall TEST=Connect Gatkex to Voxel, execute EC reboot and verify assertion is fixed. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I0a18d0f5c51eedb4ecb0c275ea1235f7838246a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2644843 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Chiranjeevi Rapolu <chiranjeevi.rapolu@intel.corp-partner.google.com>
* | Merge remote-tracking branch 'cros/main' into firmware-volteer-13672.B-mainAbe Levkoy2021-01-24252-1153/+4657
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sync with main. Include the following changes: 20681487b (m/master, cros/main) Metaknight: Support motion sensor 2nd source 103b3360b zephyr: volteer: redefine the flash node with the correct unit 2ff2c55ad ec3po: fix python3 related unittest failures 3a9d44910 zephyr: volteer: make compiling with features disabled easier 70dda8714 voxel: add new batteryand remove the unused battery 741fa015c zephyr: Add support for EC_CMD_GET_PROTOCOL_INFO in eSPI 5f293a7d2 guybrush: Enable linker time optimizations 1f526a648 guybrush: Remove undef of ADC and SWITCH 3a00c9152 test: port accel_cal to Ztest 5215f4c6d volteer: Add a license header to prj.conf 6847ca81a zephyr: Add support for CONFIG_POWER_BUTTON/X86 fcadc1fba zephyr: Add support for CMD_AP_RESET_LOG 78acb0eea zephyr: Add support for CHIPSET_RESET_HOOK 9c2c2455b config: Ensure VBUS measurement consistency 3a128c51d zephyr: volteer: Configure charge VBUS measurement 7ae4c0c3d config: Fix inconsistent VBUS measurement config a18f2c571 volteer: change mutex for Zephyr 3ccae3be7 zephyr: add bmi260, bma2x2,and tcs3400 support 90995b4a5 zephyr: add motion sense support 90dea6194 zephyr: Add support for BOARD_RESET_AFTER_POWER_ON 099240ecf magolor: Add motion sensor config for kx022/icm-426xx 35c316042 flash: remove unused asserts 147e95ad2 zephyr: test_util: improve EC compatibility 2e2a2bef9 volteer: Move x86 power info into a separate file 032bc72c4 zephyr: Add support for CPU throttling a459eb9cf pchg: Avoid notifying host for false events 0b58c3ca7 zephyr: volteer: enable S0ix d5ac31e51 zephyr: enable power sequencing for kohaku 4fb279799 zephyr: power: add shim option for S0ix 22c91115c sasuke : change LED gpio setting 78aa2873a dp_alt_mode: Exit DP mode on Exit Mode NAK 337ecb754 Madoo: LED function c4e22d8bb baseboard/octopus: Increase delay before hibernate 6f8c85f75 charge_manager: Notify PD when new power is different than requested 0fcc70032 TCPMv1/TCPMv2: Add functions providing requested voltage and current 94a436afa magolor: Add new battery b8eeefccf ioexpander: Fix interrupt handler signal 94dd77896 config: Provide default VCONN Swap delay c5caae72d config: Make VCONN Swap delay a documented option 326814921 Madoo: Fix main board charger can't wake from hibernate 0a5c0b106 No init.rom section support in Zephyr bcbd95309 doc: README: drop the (chroot) not efrom the set_gbb_flags command 0afe93c52 genesis: Redefine GPIO BJ_ADP_PRESENT_L 251827028 TCPMv2: Support BIST Test Mode 2034650b0 TCPMv2: Test that PE ignores invalid BIST requests ea4a53732 charge_manager: Create mock cc65a4bc8 TCPMv2: Ignore BIST messages when appropriate 9231ab698 charge_manager: Expose get_vbus_voltage function 2547bf1c0 reland: zephyr: Update hooks shim to match ECOS 51dfc5be5 servo_updater.py: Make script more reliable and improve error reporting 5c64785a3 ambassador: Update fan and thermal settings. 6fc9c34b8 TCPMv2: TD.PD.SRC.E5 Compliance failure - service event loop as high priority 0e364a685 OCPC: Init VSYS to VBAT when starting charge 080a1be65 include: Fix typos in gpio.wrap. ed57bea6f common:test: refactor test_util.h to accommodate Zephyr 542725bac volteer: i2c: rename i2c-keys node to named-i2c-ports 19c36a2bb cleanup: elemi: Remove unused sensor id b9fef5e33 adlrvp-p: Enable temperature sensor config - CONFIG_TEMP_SENSOR. 77b23e66c Intelrvp: Enable power configs. 5c8236e74 Ezkinil: Update thermal table b0b409cb1 voxel: update thermal table 0000d3461 ec3po: log with %r rather than %s for most areas b62994fb4 ec3po: console log printing in py2 and py3 51a975ec8 ec3po: open without a buffer 6719aaa6b ec3po: make py3 and py2 compatible wrt imports 2acde897b stats_manager: formatting fix for md file output 05dbb0a1d usb_mux: Correction in sending the Host event IRQ=0 1a84412cb magolor: config thermal active-high GPIO b123ecf67 Lazor: Modify SWITCHCAP_PG_CHECK_TIMEOUT and _WAIT 2e830d314 TCPMv2: Do not check for SinkTxOk in FRS-Mode 2eae769ad TCPMv2: TCPMv2 Send message with timed response should hard reset within range 5fef5654c servo_v4p1: clean-up and USB-C timings 1c0e83be5 genesis: Define GPIO line for USB C port polarity. 45f3f87ec SYV682: Update Driver for B revision silicon 6a87ebfed Zephyr: Create public headers for bmi260, bma2x2, and tcs3400 0fb58a57b chip/npcx/pwm: update comment d356bcf61 sasukette: Initial EC image b2c274f2d Coachz: Add BASE_EN debounce time to 350ms 8014ff8dd adlrvp: Remove Mutex from bb_retimer_powerhandle() 8df726849 pd: fix RX re-enabling with the integrated PHY 90237d36d servo_v4p1: improve board ID support 44af79021 servo_v4p1: use usb_mux implementation for the TUSB1064 driver e67f0cd70 usb_mux: add a full TUSB1064 driver 8b88ec0e0 adlrvp: Rename TGL chipset type to ADL chipset 319603690 mp4245: Add a function to retrieve vbus and ibus 28e7a812d tcpm: Add USB-PD messaging support for stm32gx driver e82929c18 TCPMv2: DPM: Make dpm_get_source_pdo __overridable 420978182 kukui: extend delay time for getting board id 77b45ffae lantis: vivaldi keyboard initialization 0dad2dea9 elan_sensor_pal: Type definition fp_sensor_info_t c4cb760a6 zephyr: gpio: use nodelabel named gpios 6980d49db volteer: jhl8040r: define and bind reset and ls-en gpios 2f6508af6 dts: binding: add an explicit binding for named-gpios b5855281c zephyr: Add support for vstore 9418a359d zephyr: get the retimer i2c address from the device tree db9593c59 volteer: dts: define and instantiate the retimer device on the i2c mix bus 50cfda251 zephyr: Increase volteer image size 04c39c214 TBT: Correct is_rev3_vdo() function 91ec9cfb9 elemi: Remove CONFIG_USB_PD_TBT_COMPAT_MODE 7b450c05f voxel: Create voxel_apmodentry board config d64d5ca86 zephyr: Shim the DECLARE_HOST_COMMAND Change-Id: I68752f0c7198290abd84b2d3374ca3494647339a
| * Metaknight: Support motion sensor 2nd sourceYu-An Chen2021-01-234-51/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support motion sensor 2nd source: -Lid : KX022 -Base : LSM6DSM BUG=b:177868819 BRANCH=main TEST=rework KX022/LSM6DSM on DUT, check ectool motionsense lid_angle is correct. Signed-off-by: yu-an.chen@quanta.corp-partner.google.com Change-Id: If61addd7ca182ff9c3d3e87e1f77076236a006d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2641705 Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
| * zephyr: volteer: redefine the flash node with the correct unitFabio Baltieri2021-01-231-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the build warning: Zmake/ERROR: warning: unit address and first address in 'reg' (0x10070000) don't match for /flash@10090000 Caused by the flash memory node having a different unit and mem start, introduced in 50cfda251. Does not change anything in practice but it triggers a warning in the device tree compile phase. Looking at the code, it seems like we could potentially just suppress the check and warning entirely [1], but that is normally a good warning to catch dts misconfigurations, and the fix is easy enough as redefining the whole node and deleting the old one. [1] https://github.com/zephyrproject-rtos/zephyr/blob/a8d3c8e142e2a4a8ec9fb52bf0aa42ee2c7fd7cc/scripts/dts/gen_defines.py#L53-L55 BUG=none BRANCH=none TEST=warning is gone, did a full readelf -a diff of the two binaries, they match TEST=zmake testall Change-Id: Iab64c0219933c83f6b52789fc00b525864c543f8 Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645126 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org>
| * ec3po: fix python3 related unittest failuresRuben Rodriguez Buchillon2021-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new way to open the ttys was making 2 tests fail. This change addresses that by aligning the expectations with the actual calls. BRANCH=None BUG=b:173654272 TEST=./util/ec3po/run_tests.sh Ran 44 tests in 0.089s OK Change-Id: Ib550ab31436a8da093ec0af2bb0c61bb345647b2 Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645699 Reviewed-by: Matthew Blecker <matthewb@chromium.org>
| * zephyr: volteer: make compiling with features disabled easierJack Rosenthal2021-01-232-38/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many of the board configuration files depend on certain Kconfig features, but this dependency was not reflected in the CMakeLists.txt or the interrupts we enable. This allows compiling with USB-C, CBI, charging, battery, or power sequencing disabled, which is useful as a debugging technique to see if one feature is interfering with another. BUG=none BRANCH=none TEST=compile with CBI, USB-C, and battery disabled, clean compile and things work Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I687805d9649badb15d1f2d099f41521f8da10197 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645082
| * voxel: add new batteryand remove the unused batteryBen Chen2021-01-232-24/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | add new battery AP18C8K, and remove battery L17L3PB0 BUG=b:177969026 BRANCH=cros/main TEST=Make sure battery can cutoff by console "cutoff" or "ectool cutoff" Change-Id: I7fc44eb8cad3e2d804040210571562076b1ac601 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639420 Reviewed-by: Keith Short <keithshort@chromium.org>
| * zephyr: Add support for EC_CMD_GET_PROTOCOL_INFO in eSPISimon Glass2021-01-231-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With ECOS this is defined in the lpc driver. Do the same for Zephyr, but put it in the shim, since the driver itself is on the Zephyr side. BUG=b:177604307 BRANCH=none TEST=build volteer for zephyr (see that the new code is included) make BOARD=volteer -j8 Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I7e3487a450fa3408aa9acc0e5b31b3af7080c8cd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645077 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
| * guybrush: Enable linker time optimizationsRob Barnes2021-01-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Enable CONFIG_LTO BUG=None BRANCH=None TEST=Build Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I0e52ffd8d8b63e9e4e8d19a717e4329eae8c58fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645079 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
| * guybrush: Remove undef of ADC and SWITCHRob Barnes2021-01-231-4/+0
| | | | | | | | | | | | | | | | | | | | | | BRANCH=none BUG=None TEST=Build Change-Id: I34ecf137aa1e1b763cc30649ce1b9eb51a0431d3 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645078 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
| * test: port accel_cal to ZtestPaul Fagerburg2021-01-226-34/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG=b:172240633 BRANCH=none TEST=build for both EC and Ztest: `TEST_LIST_HOST=accel_cal make runhosttests` `zmake configure --test -B build/accel_cal zephyr/test/accel_cal` Signed-off-by: Paul Fagerburg <pfagerburg@google.com> Change-Id: Ie787403b36d775d4185cafad8ca134561a97794b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645198 Tested-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
| * volteer: Add a license header to prj.confSimon Glass2021-01-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file does not currently have a license header. There is no technical reason why it cannot and the upload check requires it. So add one. BUG=b:178099673 BRANCH=none TEST=build volteer for zephyr make BOARD=volteer -j8 Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ia77b3b1fcca83857a09413515e3912f59b14ad92 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643620 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
| * zephyr: Add support for CONFIG_POWER_BUTTON/X86Simon Glass2021-01-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These options do not seem to be needed for correct operation since there are no #ifdefs that use them. Still, we should add them for completeness and in case something changes. BUG=b:177604307 BRANCH=none TEST=build volteer for zephyr make BOARD=volteer -j8 Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I9afe5af942a6001b3dc7b90fa6f53222e122d7f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643618 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
| * zephyr: Add support for CMD_AP_RESET_LOGSimon Glass2021-01-225-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the options for this along with the the host command that presses it into service. BUG=b:178104134 BRANCH=none TEST=build for zephyr See that host command 121 is processed without error now: 21-01-21 12:14:50.829 [7.981900 HC 0x121] Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I63b8586a6e2065cbfba8de81d3690cd2f7082c9a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643617 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
| * zephyr: Add support for CHIPSET_RESET_HOOKSimon Glass2021-01-223-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the options for this and call the hook when enabled. We could avoid the #ifdef by always having espi_reset_handler(). I'm not sure if there is a better way. BUG=b:178104134 BRANCH=none TEST=build for zephyr not sure how to test this feature? Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I68d15bb112bc708af6f65befd08f05cb6bc209e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2642891 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>