summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* zephyr: lazor: uptick zephyr version to 2.6Yuval Peress2021-06-231-1/+1
| | | | | | | | | | | | BRANCH=none BUG=b:190731415 TEST=flash EC and verify sysjump TEST=flash EC and verify it boots to OS Change-Id: Ibe83899b95342524b70c6cd982544d51ffd262df Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2976755 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: trogdor: set EC chip type to NPCX797Keith Short2021-06-233-3/+3
| | | | | | | | | | | | | | | | | | | Change the trogdor default chip type to NPCX797FC to allow for a larger image size. BUG=none BRANCH=none TEST=zmake testall TEST=Boot zephyr image on lazor TEST=Boot trogdor-zephyr AP image and verify EC software sync Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Iabe9d7e817a8db55acc7cdb40f3c4e108d38fb5d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2954923 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Tested-by: Yuval Peress <peress@chromium.org> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* trogdor: Separate the board_hibernate() to a separate fileWai-Hong Tam2021-06-233-12/+19
| | | | | | | | | | | | | | | Move the board_hiberante() from board.c to a separate file hibernate.c. This makes Zephyr easier to include the code. BRANCH=None BUG=b:191803008 TEST=Built the trogdor image successfully. Change-Id: Ie3749b9db72fc5b0535cfb6f9ef92499b3b46b82 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980447 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* trogdor: Move USB-C related functions and configs to usbc_config.cWai-Hong Tam2021-06-233-294/+323
| | | | | | | | | | | | | | | Move the functions and configs from board.c into the shared file, usbc_config.c. So this code can be used by Zephyr. BRANCH=None BUG=b:191803008 TEST=Built the trogdor image and checked PD negotiation. Change-Id: I500baf13705d18517332992fd83258fe69735a3a Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980446 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* trogdor: Move GPIO functions to a header fileWai-Hong Tam2021-06-232-12/+25
| | | | | | | | | | | | | | | | | At present these functions are declared static in board.c which means they cannot be implemented in a different file. With zephyr we need to split the files up a bit. Move the declarations to a header file instead. BRANCH=None BUG=b:191803008 TEST=Built the trogdor image successfully. Change-Id: Ic9ad9ec210b61c2a92e36119bb635524136988ab Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980445 Reviewed-by: Keith Short <keithshort@chromium.org>
* trogdor: Move the switchcap code outWai-Hong Tam2021-06-233-17/+23
| | | | | | | | | | | | | | Move the switchcap implementation to another file so it can be more readily used by the Zephyr OS build. BRANCH=None BUG=b:191803008 TEST=Built the trogdor image successfully. Change-Id: I7b42f29b79e53d97c0cd86abf61f3a9f7db96de9 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980444 Reviewed-by: Keith Short <keithshort@chromium.org>
* Revert "Trogdor: Add interrupt on CCD_MODE_ODL to enable SBU mux"Wai-Hong Tam2021-06-232-24/+1
| | | | | | | | | | | | | | | | | This reverts commit 2966f2f98ac039e80be84aa6b450474652336175. The latest hardware places H1 SBU lines in front of the PPC chip. So the PPC internal mux state doesn't affect H1 anymore. We don't need the workaround, which fixed PPC blocking H1 SBU lines. So revert it. BRANCH=None BUG=b:184071830 TEST=Tested plugging a monitor and then plugging CCD. CCD worked fine. Change-Id: Ifa62e15dc39701ba2c0ddbd7ad0ab6274b254d11 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980443 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
* Remove options now in Kconfig from config_allowed.txtHarry Cutts2021-06-231-18/+0
| | | | | | | | | | | BUG=none TEST=none BRANCH=none Change-Id: I6a8365564a7633b7dde5621e744d314f3eca542f Signed-off-by: Harry Cutts <hcutts@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2981122 Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: volteer: switch volteer boards to Zephyr v2.6Fabio Baltieri2021-06-232-2/+2
| | | | | | | | | | | | | | | Change the volteer based board build config to build against Zephyr v2.6, as it seems to run correctly against those. BRANCH=none BUG=b:190731415 TEST=ran on volteer, boots to the system fine, nothing suspicious in the console. Change-Id: I21b545a8359991830e0a42f1e76667af1904e4c3 Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2982545 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: Increase priority of shell threadSam Hurst2021-06-231-0/+16
| | | | | | | | | | | | | | | | Increase the priority of the shell thread so console commands like waitms and sysjump work properly. BRANCH=none BUG=b:184643483,b:189220025 TEST=Verified that "sysjump rw" works properly and firmware_ECWatchdog test passed. Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: I3676508d4ccc79e700833da30c27a4d7b391b240 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2957584 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* Cozmo: support factory keyboard test.Sue Chen2021-06-233-0/+30
| | | | | | | | | | | | | | | | | | | | | connector-to-GPIO map: {-1, -1}, {GPIO_KSO_H, 4}, {GPIO_KSO_H, 0}, {GPIO_KSO_H, 1}, {GPIO_KSO_H, 3}, {GPIO_KSO_H, 2}, {-1, -1}, {-1, -1}, {GPIO_KSO_L, 5}, {GPIO_KSO_L, 6}, {-1, -1}, {GPIO_KSO_L, 3}, {GPIO_KSO_L, 2}, {GPIO_KSI, 0}, {GPIO_KSO_L, 1}, {GPIO_KSO_L, 4}, {GPIO_KSI, 3}, {GPIO_KSI, 2}, {GPIO_KSO_L, 0}, {GPIO_KSI, 5}, {GPIO_KSI, 4}, {GPIO_KSO_L, 7}, {GPIO_KSI, 6}, {GPIO_KSI, 7}, {GPIO_KSI, 1}, {-1, -1}, {GPIO_KSO_H, 5}, {-1, -1}, {GPIO_KSO_H, 6}, {-1, -1}, {-1, -1}, BUG=none BRANCH=icarus TEST=`ectool kbfactorytest` PASS. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ifc22d87f84ce86dee6f68b33a2a9a2964f71170f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2936262 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Sasukette: add battery swelling functionMike Lee2021-06-232-3/+175
| | | | | | | | | | | | | | | | | | According to OEM request, add battery swelling function. 1. modify voltage_max 8800mV according to battery spec 2. modify charging_max_c = 50 according to swelling request 3. add battery swelling function BUG=b:187441287 BRANCH=dedede TEST=make -j BOARD=sasukette TEST=test department test swelling function pass Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: Ie6dedff3df071e5abbece4a00133f1c5663acbf1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2883379 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* magma: add New battery COSMX AP20CBLBen Chen2021-06-232-0/+32
| | | | | | | | | | | | | | new battery config : AP20CBL BUG=b:189887888 BRANCH=dedede TEST=Check found battery info in console and cutoff work. Change-Id: Ib140adf5eaed4636eb235933f86de8a5386ea23b Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2968563 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Homestar:LED:Use display SoC to control charge LEDtongjian2021-06-232-1/+4
| | | | | | | | | | | | | | | | | | | | | Currently, Homestar uses the state of charge provided from the battery. This isn't the same as the SoC shown on the screen because Powerd compensates it based on the full factor and the low battery shutdown threshold. This change makes Homestar use the display SoC for the charge LED module so that the charge LED and the display SoC synchronously work. BUG=b:187539586 TEST=make -j BOARD=homestar Verify build on EVT board BRANCH=Trogdo Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com> Change-Id: I953aca48d18b32655d82fbd9a8c315534a8326bf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965815 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* rt1718s: set OVP to 23VSue Chen2021-06-232-0/+14
| | | | | | | | | | | | | | Set VBUS_VOL_SEL to 20V (4'b1111). BUG=b:191609106 BRANCH=none TEST=boot up system by plugging in adapter to typc port 1 with battery on Cherry dut. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: If3c3a82b2e0dbcecb1adaa62cb5d8ade4bae1942 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977866 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Chronicler: Add battery ATL-3S1P-606072Yu-An Chen2021-06-232-17/+15
| | | | | | | | | | | | | | | | | Support new battery ATL-3S1P-606072 BUG=b:190685811 BRANCH=volteer TEST=ensure battery can cutoff by console "cutoff" or "ectool batterycutoff" and resume by plug in adapter. Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I3d8b11c71b45339fec63d9639232c8b987eecdd0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2967853 Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Auto-Submit: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Reviewed-by: YH Lin <yueherngl@chromium.org> Commit-Queue: YH Lin <yueherngl@chromium.org>
* zephyr: enable related configs for flash driver on it8xxx2Tim Lin2021-06-234-18/+104
| | | | | | | | | | | | | | | | | | | | These flash related configs have to be enabled for the flash driver of it8xxx2. This CL also distinguishes the flash configs into header file of it8xxx2 and npcx. BUG=b:187192628 BRANCH=none TEST=zmake -lDEBUG configure -b -B zephyr/build_ite \ zephyr/projects/it8xxx2_evb zmake -lDEBUG configure -b -B zephyr/build_volteer \ zephyr/projects/volteer/volteer Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com> Change-Id: Ic6a2e89a24676d6ac484a389c938ab0692971be0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952280 Reviewed-by: Keith Short <keithshort@chromium.org>
* gimble: remove tuning MP2964Scott Chao2021-06-232-42/+0
| | | | | | | | | | | | | We don't need to tune MP2964 timing which already confirmed by MPS. BUG=b:191719288 BRANCH=none TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I171b333d38bd483c75535b3fae00934ca2e61165 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977869 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* zephyr: lazor: Enable configs to match the original CrOS EC settingWai-Hong Tam2021-06-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | Enable the following configs: * keyboard backlight control * power sequence sleep failure detection * resume-init and suspend-complete hooks The following configs are not enabled because not enough code RAM: * accel sensor spoof mode * sysrq event emulation BRANCH=None BUG=b:190224781, b:183054226 TEST=Checked the following console commands showing up: kblight, sleeptimeout Change-Id: I2bd12f27d1688da64917ada978edb65e817aeafa Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941802 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* mt8192: move power_signal to includeDenis Brockus2021-06-225-31/+25
| | | | | | | | | | | | | | | | | | enum power_signal was duplicated in a few places and really belonged in an include file. This has been created as include/power/mt8192.h BUG=b:180980668 BRANCH=none TEST=make buildall Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: Ibdcecc73feffcfa6d5b72fa8ef503f1802e14925 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980811 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* drawcia: Add battery ATL GB-S20-4473A9-01H&020HTommy Chung2021-06-222-0/+34
| | | | | | | | | | | | | BUG=b:191726915 BRANCH=dedede TEST=Make sure battery charging, battery cutoff works. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: Ie5895499df9baea80b5966736c6d42a504ad68b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977863 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* zephyr: remove deprecated macro for power management nopYuval Peress2021-06-222-3/+3
| | | | | | | | | | | | | | | Zephyr v2.6 deprecated the macro device_pm_control_nop, remove the use in our repo to avoid warnings. BRANCH=none BUG=b:190731415 TEST=zmake configure -b zephyr/projects/trogdor/lazor Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I515de7e62e3496ca9ddb55b05ca195fa91e35cc1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980434 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* zephyr: Migrate to v2.6 deferred work APIsYuval Peress2021-06-222-3/+29
| | | | | | | | | | | | | | | | Update deferred work API calls to work with v2.6. Currently, these will give warnings, but most of these have been replaced completely in upstream Zephyr's main branch. BRANCH=none BUG=b:190731415 TEST=zmake configure -b zephyr/projects/trogodr/lazor Change-Id: I99e71089439656a8a45ff35ce489e21ad60f2143 Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980433 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* zephyr: asurada: move power/it8xxx2 to be in power/mt8192Denis Brockus2021-06-224-16/+10
| | | | | | | | | | | | | | | | | | | | The power_signal_list was mistakenly moved to a new file power/it8xxx2.c and is used by both zephyr and cros-ec. This moves the content of this file into where it belongs at power/mt8192.c BUG=b:180980668 BRANCH=none TEST=make buildall Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I687f097bee37ac5211c3a7d04019e2dd70207889 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980111 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Yuval Peress <peress@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org>
* Guybrush: Reset TCPCs in dead battery mode after charger removalDiana Z2021-06-221-0/+10
| | | | | | | | | | | | | | | | | | | When we're requested to set our charge port to None, indicating our previous charge port was either removed or switched to no longer being a sink role, reset any TCPCs which were in dead battery mode. This does not provide any increased risk of brown out, since we already lost our active charge port and would disable both board PPCs. BRANCH=None BUG=b:183660105 TEST=on guybrush, cut off the battery and boot with a charger. Remove the charger and ensure the TCPC is fully reset after removal Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I0538b179075cbcc35f00f9710151183413dea2fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2970785 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* zephyr: Add a Python script to compare configsSimon Glass2021-06-221-0/+45
| | | | | | | | | | | | | | Add this in an effort to encourage Fabio to submit his, which I suspect is considerably better. BUG=b:177604307 BRANCH=none TEST=run the script on my tree and check the output manually Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I67d36be265eaccf07413eb0c16299e569470161c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2957552 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zmake: Report errors and warningsSimon Glass2021-06-221-1/+8
| | | | | | | | | | | | | | | | Both Cmake and ninja can report errors and warnings which are currently lost, unless debugging is on. Update the filters to handle all warnings/errors the same. BUG=b:184298184 BRANCH=none TEST=manually tested after seeing errors/warnings along the way Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ib1893e3d634e22962623f132672e6df80d00da20 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2957551 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: hayato: Add XHCI init interruptSimon Glass2021-06-223-1/+10
| | | | | | | | | | | | | | | | This interrupt appears to be missing from the GPIO list. Add it. Note: It is marked as open-drain so I am not sure how to describe it in the gpio_map, but have made an attempt. BUG=b:189855648 BRANCH=none TEST=see that it builds OK with the new interrupt handler Change-Id: Id6c23cc67a17fd221eb977faab18e6bdfa14f324 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2957550 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: hayato: Enable USB-C supportSimon Glass2021-06-223-4/+72
| | | | | | | | | | | | | | Add the required Kconfig options for this feature and bring in the associated source code. Add the interrupts also. BUG=b:189855648 BRANCH=none TEST=with other CLs, build asurada for Zephyr Change-Id: Iac1cb23ccd66eac06339d12372dd0ae7eb85941d Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2935952 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: tcpm: Update ITE driver to support zephyr namesSimon Glass2021-06-221-0/+16
| | | | | | | | | | | | | | | There is a name mismatch with some of the registers needed in this driver. Use #define for now until we can change these in ECOS, or remove the ECOS code. BUG=b:189855648, b:190860075 BRANCH=none TEST=with other CLs, build asurada for Zephyr Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I73da708c6e876db092b345ff7e0b28d99960b4d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2957548 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zmake: block hypothesis health checks for CQYuval Peress2021-06-224-3/+19
| | | | | | | | | | | | | | | | | | Allow passing a --cq flag to zmake for running a CQ pass. When done, zmake will remove flaky features such as hypothesis health checks which cause pytests to fail when taking longer than "expected". Note that the health checks ignore the deadline set on each function and will still fail if they deem the test to have run too long. BRANCH=none BUG=b:190229270, b:190957007 TEST=sudo emerge chromeos-base/zephyr-build-tools && \ zmake --cq testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: Iaf9a38e0bbd65f0be9521019a615279d8b5fbb49 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977586 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: gpio: Fix assert for init_gpios()Wealian Liao2021-06-221-2/+1
| | | | | | | | | | | | | | | gpio_pin_interrupt_configure() without interrupt flag generates the assert. Change to use gpio_pin_configure(). BUG=b:190731415 BRANCH=none TEST=Lazor boot to OS screen Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I2e4b816ba52a8746bb694ad55d551b427868302a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977861 Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Yuval Peress <peress@chromium.org>
* guybrush: Adjust PS8811 Chan B pre-shootRob Barnes2021-06-222-3/+7
| | | | | | | | | | | | | | | Change PS8811 pre-shoot from 3dB to 1.5dB. This was incorrectly set to 3dB due to a misunderstanding of the datsheet. BUG=b:186586795 TEST=Boot guybrush BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I49e150433408fc2b44fafb4bed406166f110fbeb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2964957 Reviewed-by: Rock Chiu <rock.chiu@paradetech.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* primus: remove tuning MP2964Scott Chao2021-06-222-42/+0
| | | | | | | | | | | | | We don't need to tuning MP2964 timing which already confirmed by MPS. BUG=b:191719287 BRANCH=none TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ief219d418dee74949b50d99af3580a973198136d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977868 Reviewed-by: caveh jalali <caveh@chromium.org>
* Cozmo: Remove CONFIG_SYSTEM_UNLOCKEDSue Chen2021-06-221-2/+0
| | | | | | | | | | | | | | | Disable CONFIG_SYSTEM_UNLOCKED for faft_ec_fw_qual test. BUG=b:191221606 BRANCH=icarus TEST=firmware_ECSystemLocked and firmware_PDProtocol.ec_wp pass. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I325078cd04b85fbb91069e6fe2d557d3f64bb6ea Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977857 Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org> Commit-Queue: Chen-Tsung Hsieh <chentsung@chromium.org>
* gimble: configure EC GPIO/ I2C channelWill Tsai2021-06-227-404/+80
| | | | | | | | | | | BUG=b:191426540 b:191323539 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Will Tsai <will_tsai@wistron.corp-partner.google.com> Change-Id: I8662597d49d935027af51ff355efec0da2271a8a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2962199 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* Chronicler: Remove unused sensorsYu-An Chen2021-06-226-311/+13
| | | | | | | | | | | | | | This commit remove sensors and tablet mode, since Chronicler doesn't support that. BUG=b:191064600 BRANCH=volteer TEST=Verified boot without sensors initial. Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Icecae77ba5897ba08a21417c731301b48ac26230 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2962196 Reviewed-by: Raymond Wong <wongraymond@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* qcom: Enable AP_RST_L interrupt on sysjump to RWWai-Hong Tam2021-06-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | The AP_RST_L interrupt is default disabled. It avoids unnecessary power signal messages in G3/S5 as the signal is floating (no power). The interrupt is then enabled during S5->S3 and disabled during S3->S5. However, when sysjump to RW, the interrupt is back to default disabled. This causes the `apreset` command fails to sample the AP_RST_L signal and forces to execute a cold reboot sequence. We should enable AP_RST_L interrupt when the initial power state is S0, the sysjump to RW scenario. BRANCH=Trogdor BUG=b:185551931 TEST=Tested on Coachz, reboot EC, sysjump to RW, perform `apreset` which executes a warm AP reboot. Change-Id: I7eae5f2bcacfebeeee529aa7ad96409cfe9122e9 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977573 Reviewed-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Alexandru M Stan <amstan@chromium.org>
* Jelboz: Change condition AC >= 40W to boot OSMichael5 Chen12021-06-211-0/+2
| | | | | | | | | | | | | | | | Change condition AC >= 40W to boot OS for AC only. BUG=b:188936765 BRANCH=zork TEST=manual 1. Insert 45W AC and boot to OS for AC only. 2. EC reset (Refresh + Power button) boot to OS for 45W AC only. Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: Ifefbeae97f81b91ccc3996226349f2c19e985da3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2914712 Reviewed-by: Edward Hill <ecgh@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org>
* trogdor: Drop the workaround of hibernateWai-Hong Tam2021-06-211-10/+0
| | | | | | | | | | | | | | | We added the hibernate workaround for the boards without the pull-up rework. The latest Trogdor revision has the external pull-up. So it doesn't need the workaround for the bug b/170324206. BRANCH=None BUG=b:184071830, b:170324206 TEST=Built the Trogdor image. Change-Id: I62cb3126b4ed4b2c38f04f0b3c937130c1b6fe9a Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2971866 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
* trogdor: Drop the support of legacy board revisionsWai-Hong Tam2021-06-214-58/+0
| | | | | | | | | | | | | | The older board revisions use a different EC part. No way to support it using the same EC image. Totally drop the support. BRANCH=None BUG=b:184071830 TEST=Built the Trogdor image. Change-Id: Ib495d69eeb1b4894c87b45ad86a29fd43a0befd9 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2971865 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
* guybrush: Enable base accel sensor fifoRob Barnes2021-06-211-0/+5
| | | | | | | | | | | | | | | Enable accel sensor fifo on guybrush boards. The base accel sensor relies on interrupts and fifo. BUG=b:191619818, b:187620322 TEST=Pass kernel_CrosECSysfsAccel BRANCH=None Change-Id: I697d254579fa86fa6ce5748a547142001de8048f Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2976200 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* Metaknight: Reduce i2c frequency to support eeprom 2nd sourceYu-An Chen2021-06-212-1/+29
| | | | | | | | | | | | | Reduce i2c eeprom port frequency to 400kHz from 1000KHz. BUG=b:191414126 BRANCH=dedede TEST=check ectool cbi set/get working in Both source Signed-off-by: yu-an.chen@quanta.corp-partner.google.com Change-Id: I00b0b4b7a8657d934bd139b31546147d3c851c20 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2972524 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* ocpc: Disable linear precharge at ocpc reset stateMike Lee2021-06-211-0/+7
| | | | | | | | | | | | | | | | | | When linear precharge is enabled, it may affect the charging behavior from the primary charger IC. Therefore as a part of the reset process, we need to disable linear precharge to make sure primary charger can work normally. BUG=b:191347747 BRANCH=dedede TEST=make BOARD=storo pass, and test C0 port can charge normally. Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: I4c186214aead442fbec99ac0e43df891dd98b302 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2972526 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* zephyr: npcx: Fix sysjump to ROWealian Liao2021-06-211-2/+1
| | | | | | | | | | | | | | | | | | For npcx, sysjump to RO needs the PLATFORM_EC_RO_HEADER_SIZE information in RW image. However, the dependency of PLATFORM_EC_RO_HEADER lets RW image can't get this information. This CL removes the dependency of PLATFORM_EC_RO_HEADER in Kconfig for those configs & lets RW get this information back. BRANCH=none BUG=none TEST='sysjump RO' correct & without abnormal delay. Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I434216a4bcde6663cf363372206566b210236bad Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2975170 Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Yuval Peress <peress@chromium.org>
* ectool: Fix array size check for pchg_state_textDaisuke Nojiri2021-06-211-1/+3
| | | | | | | | | | | | | | This patch fixes the runtime check for pchg_state_text size and adds BUILD_ASSERT. BUG=b:182600604, b:173235954 BRANCH=none TEST=Verify 'ectool pchg 0' prints states properly on CoachZ. Change-Id: Id6c6bfb979dbb4f11b1ee3dcaa0b7dc0710dfc54 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2973571 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
* Chronicler: Modify default daughterboard configurationYu-An Chen2021-06-211-2/+2
| | | | | | | | | | | | | | Setup default daughterboard of fw_config to DB_USB3_ACTIVE BUG=b:191551619 BRANCH=volteer TEST=Check DUT can initial correct db without fw_config Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ia963a776ed1cd481699318931be8f12c15487131 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2972535 Reviewed-by: YH Lin <yueherngl@chromium.org> Commit-Queue: YH Lin <yueherngl@chromium.org>
* pazquel: Initial EC imageYunlong Jia2021-06-218-0/+1157
| | | | | | | | | | | | | | | | | | Create the initial EC image for the pazquel variant by copying the trogdor 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:187232137 BRANCH=Trogdor TEST=make BOARD=pazquel Signed-off-by: Yunlong Jia <yunlong.jia@ecs.corp-partner.google.com> Change-Id: Ic898116fc93a3ac51d50f34b24c13c33a452a25f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2939856 Reviewed-by: Philip Chen <philipchen@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org>
* Voema: set SYV682X HV_ILIM to 5.5ADavid Huang2021-06-211-0/+2
| | | | | | | | | | | | | Set CONFIG_SYV682X_HV_ILIM to 5.5A on voema. BUG=b:179217436 BRANCH=volteer TEST=Use i2cxfer check syv682x setting. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: Ibea60b97014850d7dda5e195dd433f0522ea236e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965805 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
* voxel: support factory keyboard test.David Huang2021-06-212-0/+21
| | | | | | | | | | | | | | | | | | | | | connector-to-GPIO map: {-1,-1}, { 0, 5}, { 1, 1}, { 1, 0}, { 0, 6}, { 0, 7}, {-1,-1}, {-1,-1}, { 1, 4}, { 1, 3}, {-1,-1}, { 1, 6}, { 1, 7}, { 3, 1}, { 2, 0}, { 1, 5}, { 2, 6}, { 2, 7}, { 2, 1}, { 2, 4}, { 2, 5}, { 1, 2}, { 2, 3}, { 2, 2}, { 3, 0}, {-1,-1}, { 0, 4}, {-1 -1}, { 8, 2}, {-1,-1}, {-1,-1}, BUG=b:174411155 BRANCH=volteer TEST=`ectool kbfactorytest` PASS. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: Id9466e525efba3799bf2d0183de6a0cddc669385 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2944524 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>