summaryrefslogtreecommitdiff
path: root/board
Commit message (Collapse)AuthorAgeFilesLines
* ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ishJack Rosenthal2021-11-051926-256288/+0
| | | | | | | | | | | | | | | | | | | | | | In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* boten: modify battery fet register definestabilize-ambassador-14268.43.B-ishstabilize-14324.72.B-ishstabilize-14324.62.B-ishstabilize-14324.41.B-ishstabilize-14324.13.B-ishstabilize-14321.B-ishstabilize-14312.B-ishstabilize-14285.B-ishstabilize-14268.67.B-ishstabilize-14268.52.B-ishstabilize-14268.51.B-ishstabilize-14267.B-ishrelease-R97-14324.B-ishrelease-R96-14268.B-ishfirmware-cr50-stab-mp-14300.B-ishfirmware-cr50-stab-14294.B-ishfirmware-chameleon-14280.B-ishfactory-ambassador-14265.B-isharthur.lin2021-09-291-9/+9
| | | | | | | | | | | | | | | Modify correct fet register define to fix vsys drop issue. BRANCH=dedede BUG=None TEST=make buildall -j flash on boten, verify that VSYS remains up. Signed-off-by: arthur.lin <arthur.lin@lcfc.corp-partner.google.com> Change-Id: I98cfdff1b1b2e7a64a38e92c4272605de0aaf453 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3193204 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* nipperkin: update fw_config fieldZick Wei2021-09-292-25/+23
| | | | | | | | | | | | | | Update cbi fw_config field follow b:196909635 BUG=b:196909635 BRANCH=none TEST=make BOARD=nipperkin Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I877b0b7db788680f513686100ad3d5f5e6d59b1e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3144411 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* gooey: modify battery fet register definearthur.lin2021-09-291-9/+9
| | | | | | | | | | | | | | | | Modify correct fet register define to fix vsys drop issue. BRANCH=keeby BUG=b:198405407 TEST=make buildall -j flash on gooey, verify that VSYS remains up. Signed-off-by: arthur.lin <arthur.lin@lcfc.corp-partner.google.com> Change-Id: I4555c535c75521b5eac63024cf2a172fb6f8020a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3185799 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Coachz: Enable CONFIG_LTODiana Z2021-09-291-0/+1
| | | | | | | | | | | | | | | Coachz is down to 100's of bytes of free flash on ToT. Enable LTO to free up about 9k in flash space. BRANCH=None BUG=None TEST=make -j BOARD=coachz shows 9k+ free flash Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ib49e4f41780c7df5ebdeabf91dface0fea2f0234 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3192234 Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* bugzzy : remove leakage of LCD powerYongBeum.Ha2021-09-281-1/+5
| | | | | | | | | | | | | | | | TSP_TA is leakage source on LCD off or Power Off. Set TSP_TA to low when LCD Power is off. BUG=b:201355826 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: Ie7e178248a9ff8cf7c13cb0311f4a9c8cb397ce4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3189453 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* docs: replace "master" with "HEAD" in URLsTom Hughes2021-09-281-3/+3
| | | | | | | | | | | | | | find . -name '*.md' | xargs sed -i 's#refs/heads/master#HEAD#g' find . -name '*.md' | xargs sed -i 's#+/master#+/HEAD#g' BRANCH=none BUG=none TEST=view in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Iaac99ddc3463c8c7bb08038214e3eb22951db6a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3188552 Reviewed-by: Diana Z <dzigterman@chromium.org>
* kano: configure PD port 1 dual retimersstabilize-14249.B-mainli feng2021-09-282-1/+13
| | | | | | | | | | | | | | BUG=b:185952716 BRANCH=none TEST=make -j BOARD=kano Signed-off-by: li feng <li1.feng@intel.com> Change-Id: I1868de9fe45fc93e9a658b1f52f3bae3276c23c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3180804 Tested-by: David Huang <david.huang@quanta.corp-partner.google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* rammus: gryo sensor add 2nd source ICM40608Michael5 Chen12021-09-285-2/+98
| | | | | | | | | | | | | | | | gryo sensor add 2nd source icm40608 BUG=b:192817920 BRANCH=rammus TEST=make BOARD=rammus Set CBI SSFC 0x10 and using command "watch ectool motionsense lid_angle" for icm-40608. Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: If64ee373c0c63e074b11b8a37c9d67c70d409f40 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3180700 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Commit-Queue: Gwendal Grignou <gwendal@chromium.org>
* cherry: enable DPSEric Yilun Lin2021-09-281-0/+1
| | | | | | | | | | | | | | | Enable Dynamic PDO Selection to provide a more efficient charging. BUG=b:196911733 TEST=Pass PD FAFT and FAFT-EC BRANCH=none Change-Id: Ie615d63fbca54bf70412367e8f3befabd7db5832 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3124474 Tested-by: Eric Yilun Lin <yllin@google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Eric Yilun Lin <yllin@google.com>
* Pico: enable TABLET_MODE_L interruptSue Chen2021-09-281-1/+2
| | | | | | | | | | | | | | | | BUG=b:200098147 BRANCH=icarus TEST=1. Switch to tablet mode for DUT 2. Reboot the DUT 3. Closing the lid to NB mode make sure DUT leave tablet mode. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I7f3dfbd5950370dd9615ec4568da3b1ca8512b80 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162468 Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* Pico: Add new sku id for convertible skuSue Chen2021-09-281-1/+1
| | | | | | | | | | | | | | | SKU 2 -> convertible + Wifi6 BUG=none BRANCH=icarus TEST=none Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I606993a6749d0797e9742fca84a4ec5f27eb7a1c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162464 Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* taeko: add thermal configurationamber.chen2021-09-282-8/+8
| | | | | | | | | | | | | | BUG=b:201021109 BRANCH=main TEST=make -j BOARD=taeko Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: Idb65b11870ada152f64ab02bf6209ad155352b90 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3182320 Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* Add math_lib for 32 bit boards that use pd_timerDenis Brockus2021-09-277-0/+21
| | | | | | | | | | | | | | | | | | pd_timer was changed to use bitmask_uint64 to create the equivalent of BIT(o) for uint64_t bitmasks BUG=none BRANCH=none TEST=make buildall Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I7cc6a24771a9c5e1050fa1c3ff1391ef77518b80 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3182631 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Yuval Peress <peress@google.com> Reviewed-by: Yuval Peress <peress@google.com>
* galtic/galtic360: Modify keyboard config.Michael5 Chen12021-09-251-1/+1
| | | | | | | | | | | | | | | | Base on keyboard printing, modify keyboard function key define. BUG=b:175857578 BRANCH=dedede TEST=manual Check keyboard function key behavior. Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: Ie63a338a8f08d6d1541f53bdfc34da83753823af Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162474 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
* anahera: Enable search keyDevin Lu2021-09-241-1/+1
| | | | | | | | | | | | | BUG=b:197850509 BRANCH=none TEST=On Anahera, make sure search key works. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I7787ab8a40bc06264918534556cb2898b2cb5b52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3180702 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* Redrix: Enable search keyDevin Lu2021-09-241-1/+1
| | | | | | | | | | | | BUG=none BRANCH=none TEST=On Redrix, make sure search key works. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I2bb65db54fd10b5b3282728852ac6d9e094ad354 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3180701 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* bugzzy : tune usb muxYongBeum.Ha2021-09-241-0/+7
| | | | | | | | | | | | | | | tune usb mux for port c1. BUG=b:198258596 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I1bd9eab824cd9a3c3c87c4639be315943acc5ec1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3139527 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
* bugzzy : correct sensor on lidYongBeum.Ha2021-09-242-2/+1
| | | | | | | | | | | | | | | | sensor setting on lid is wrong. correct setting on lid from GMR to LIS2DS BUG=b:200831783 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I784cf9c234f37c1513321efc92243b112d45b162 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3177803 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
* bugzzy : add enable signal for USB AYongBeum.Ha2021-09-243-1/+11
| | | | | | | | | | | | | | | add power enable signal for USB A port BUG=b:192170188 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: Ib0392f4caacd2f7a7607653def89ed1cbd9e069e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3144984 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
* taeko/taeland: add fan controlamber.chen2021-09-233-21/+3
| | | | | | | | | | | | | BUG=b:194774929 BRANCH=main TEST=make -j BOARD=taeko Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: Iaefd277fe17dcf3bebbcd304f6eb7fb33f72cab7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3146779 Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* brask: Change maximum power for typecDavid Huang2021-09-231-2/+2
| | | | | | | | | | | | | | Add typec support power to 100W. BUG=b:197702356 BRANCH=None TEST=make buildall success. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I8e8527cdfe80a59e05cef6a2aa7962c6fe90a255 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3178340 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* brya: Modify thermal_paramsOwen_Ou2021-09-232-26/+27
| | | | | | | | | | | | | | | | | Modify brya's thermal_params. BUG=b:181271666 BRANCH=none TEST=make -j BOARD=brya and flash brya p2 can boot. Signed-off-by: Owen_Ou <Owen_Ou@compal.corp-partner.google.com> Change-Id: I00c3991e2b27d1ac16489bed43204d388a557ae5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3132312 Tested-by: Owen Ou <owen_ou@compal.corp-partner.google.com> Auto-Submit: Owen Ou <owen_ou@compal.corp-partner.google.com> Commit-Queue: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
* Moonbuggy: Update thermal tableSue Chen2021-09-231-5/+5
| | | | | | | | | | | | | | | BUG=b:188596619 BRANCH=puff TEST=none Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I79f79ef06c98dd3e83ba17b65aaf3ce1bc6de071 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3143408 Reviewed-by: Jeff Chase <jnchase@google.com> Reviewed-by: Joe Tessler <jrt@chromium.org> Reviewed-by: Matthew Ziegelbaum <ziegs@chromium.org> Tested-by: Joe Tessler <jrt@chromium.org> Commit-Queue: Jeff Chase <jnchase@google.com>
* nipperkin: support HDMI power controlZick Wei2021-09-232-2/+22
| | | | | | | | | | | | | | | | This patch add gpio: EN_PWR_HDMI, HDMI_DATA_EN control, set low when suspend, set high when resume. BUG=b:193395015 BRANCH=none TEST=check GPIO status in s0 and suspend. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I21155b5f572ed9d5a9ca01eb5dd9fc91c12b6344 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3167614 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* tomato: board rev2 gpio updateTing Shen2021-09-231-6/+6
| | | | | | | | | | | | | | | | | | | GPA4/GPA5: kb backlight -> Programming I2C GPA3: Test point -> KB_BL_PWM GPA6: Test point -> EN_KB_BL Since the PWM pin changed, this CL breaks kb backlight on old boards. BUG=b:199829459 TEST=pass factory test BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I33c42708b7694aeb625ea5b0879b3ac08ec81f67 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3160457 Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* Revert "DP/TBT/USB4: Retimer WA resolved Brya TBT lane bonding issue in AP mode"madhusudanarao amara2021-09-231-14/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit f0985f8a11585f6a704aa94a8354bd5b934619ac. Reason for revert: Issue is resolved after setting the Force BB Retimer GPIO (GPP_E4) to 0. It is a coreboot change. BUG=b:195375738 BRANCH=None TEST=TBT enumerated no lane bonding issue is observed with above coreboot code change with reverted EC WA. Signed-off-by: madhusudanarao amara <madhusudanarao.amara@intel.corp-partner.google.com> Change-Id: I09a8a53aec9ba3757189a091606922bc7a133ba7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162936 Reviewed-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Commit-Queue: caveh jalali <caveh@chromium.org>
* primus: update thermal tableTerry Chen2021-09-231-3/+15
| | | | | | | | | | | | | | | Update thermal table(V1) for settings provided by thermal team on 2021-09-23. BUG=b:200836803 TEST=make -j BOARD=primus TEST=test pass by thermal team Signed-off-by: Terry Chen <terry_chen@wistron.corp-partner.google.com> Change-Id: I1f72e26d9d6ae9b48738688e4331ebcd05949f18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3177900 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* cherry: enable CONFIG_USB_PORT_POWER_DUMB_CUSTOM_HOOKTing Shen2021-09-231-1/+1
| | | | | | | | | | | | | | | | | | | CL:3023017 does not work as expected because usb_port_power_dump module still controls the power power. This CL disables the hooks in usb_port_power_dump and enables the interrupt function usb_a0_interrupt instead. BUG=b:193499785 TEST=verify USB-A port works after this change BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I56196f2a062d6b3358a9a4330e7f33ab546f5d1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3174606 Reviewed-by: Rong Chang <rongchang@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* board/guybrush-dewat: Minor cleanupGwendal Grignou2021-09-232-35/+33
| | | | | | | | | | | | | | | Remove g_bmi323 static variable, use same structure as bmi160. Fill motion_sensors array with index in order. BUG=b:195264765 BRANCH=none TEST=compile Change-Id: I2c16fa64db7786bf5ff977cd6626c3d9de9b66b4 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3172268 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* Blipper: Add beetley related configurationwuzhongtian2021-09-235-24/+251
| | | | | | | | | | | | | | | | | Add the relevant configuration of beetley to the blipper ec code BUG=b:199479277 BRANCH=dedede TEST=make BOARD=blipper pass,and we have done some tests on the modified Blipper device,the basic functions are normal. Signed-off-by: wuzhongtian <wuzhongtian@huaqin.corp-partner.google.com> Change-Id: Ie6e246755779201faa12f6f48670b018b816351f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3151049 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Shou-Chieh Hsu <shouchieh@chromium.org> Tested-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com> Commit-Queue: Shou-Chieh Hsu <shouchieh@chromium.org>
* board: Do not enable gyroscope by defaultGwendal Grignou2021-09-237-60/+1
| | | | | | | | | | | | | | | | | | | | | Enable gyroscope only when the AP needs it. It is not used by the EC. For lid calculation, set frequency at 10HZ, the drivers will calculate higher frequencies when needed. Modify other boards as well: Use awk '/\.type = MOTIONSENSE_TYPE_GYRO,/ { check_config=1 } \ /\.config = / { if (check_config) { print FILENAME,$0 } } \ /\.type = MOTIONSENSE_TYPE_[^G]/ { check_config=0 }' board/*/sensors.c | \ cut -d ' ' -f 1' to locate the impacted files (board.c as well). BUG=none BRANCH=none TEST=Check rotation is still working on brya Change-Id: I45d82d00c30e35541df80d1b7805f8302b3d98ff Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3170174 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: shim: implement a generic led_get_brightness_rangeFabio Baltieri2021-09-221-1/+1
| | | | | | | | | | | | | | | | | | | Implement a generic led_get_brightness_range function using static values from the device tree. This is currently ignoring led_id, but no pwm_led based device is using it right now anyway, so this could cover all existing use cases. BRANCH=none BUG=b:177452529 TEST=called the function, verified the values in runtime Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I67dc7564eb6724e401961261ff5cc5892899ad5f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3170401 Reviewed-by: Yuval Peress <peress@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: shim: define led_color_map from the devicetreeFabio Baltieri2021-09-221-1/+1
| | | | | | | | | | | | | | | | | | | This adds a set of properties for color mapping in the device tree for the pwm-leds device, and maps them to the internal "struct pwm_led_color_map". BRANCH=none BUG=b:177452529 TEST=compared the structure on gdb TEST=build and run on volteer Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ib3a704afccad40eab7115371dbf72c568f5602d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3170400 Reviewed-by: Yuval Peress <peress@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* cappy2: Apply HOSTCMD_BATTERY_V2 to get battery infowangganxiang2021-09-221-0/+3
| | | | | | | | | | | | | | | | | Since the static information may be read error when the battery is initialized, so the battery information in share memory need update. BUG=b:199102576 BRANCH=keeby TEST=make BOARD=cappy2 pass Signed-off-by: wangganxiang <wangganxiang@huaqin.corp-partner.google.com> Change-Id: I408627ca9a61f8e5edd95297c09f165c5ac32524 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3168452 Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
* led_pwm: split color map on a separate structureFabio Baltieri2021-09-2114-20/+20
| | | | | | | | | | | | | | | | Currently color map is reusing the same structure as the channel and callback selection, which is a bit wasteful and somewhat confusing. Split it to its own struct with just three uint8_t fields. BRANCH=none BUG=none TEST=build only Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I56992fa9525db46980e450eb6569ba8291987b9b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3168864 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@google.com>
* brya: Enable PS8815_FORCE_DIDCaveh Jalali2021-09-211-0/+1
| | | | | | | | | | | | | | | This enables a reliable way to determine the ps8815 chip revision even when its firmware is inoperative. BRANCH=none BUG=b:186189039 TEST=verified the brya EC reports the correct device ID when the firmware is corrupted. Change-Id: I60808c0ae3312b11ebaf0848eb77a8134a943b49 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3093035 Reviewed-by: Keith Short <keithshort@chromium.org>
* mancomb: Delete board supportJack Rosenthal2021-09-207-191/+0
| | | | | | | | | | | | | | | | | | Builders have been shutoff, and overlays are gone. EC board support can be dropped. BUG=b:190404616 BRANCH=none TEST=CQ Cq-Include-Trybots: luci.chromeos.cq:cq-orchestrator Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I0c7c3f003c9c3ec66101e6b16b17585bd85e70fb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3171108 Commit-Queue: Martin Roth <martinroth@google.com> Tested-by: Martin Roth <martinroth@google.com> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* volteer: Disable apthrottle console commandAbe Levkoy2021-09-201-5/+4
| | | | | | | | | | | | | | Reduce flash usage by 128 bytes. BUG=none TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I7d026cbb332d6e84f8d6a3275f7c43b902c6b963 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3171333 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* kingoftown: Init battery config and rename all commentsTommy Chung2021-09-185-26/+117
| | | | | | | | | | | | | BUG=b:199242894 BRANCH=firmware-trogdor-13577.B-master TEST=Make sure battery charging, battery cutoff works. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: Id79478c32039c6acae31f3bf6e24c064fb2ee74c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3146780 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Philip Chen <philipchen@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org>
* Storo: Modify active charge port settingMike Lee2021-09-171-0/+4
| | | | | | | | | | | | | | | | | | If the port is not changing, should not be doing anything. In order to solve the problem of sometimes unable to boot under AC only state, we can make a return early. BUG=b:197199689 BRANCH=dedede TEST=make BOARD=storo pass, the DUT can boot up normally when only the 45W adapter is inserted Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: Icec7a5e9a0ed6efdd41489b4fd3e74325f4b81fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3167617 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* garg: Remove keyboard backlight supportDevin Lu2021-09-173-24/+2
| | | | | | | | | | | | | | | Garg does not support keyboard backlight. Remove this feature to free up flash space BUG=none BRANCH=none TEST=make BOARD=garg Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Iafeb208440caf8fde6067821aa156ede57acd888 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3159426 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* Tomato: Add new batterySue Chen2021-09-172-0/+30
| | | | | | | | | | | | | | | New battery: AP16L8J BUG=none BRANCH=none TEST="ectool batterycutoff" can cut off the battery Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I27a047d36d64dd9f5bce482b3b1290783b81976e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3168450 Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* primus: fix thunderbolt device cannot be emulatedstabilize-rust-14225.B-mainScott Chao2021-09-171-0/+14
| | | | | | | | | | | | | | | This CL was copied from CL:3058157. BUG=b:200116046 BRANCH=none TEST=make -j BOARD=primus Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I3eefa5179df7f758f43c35894fcdaba7a8badacc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162472 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: caveh jalali <caveh@chromium.org>
* bobba: Disable ACCLES console command to save spaceDeepti Deshatty2021-09-161-1/+0
| | | | | | | | | | | | | | | | Just preserving the build at ToT. Do not cherry pick. BRANCH=none BUG=none TEST=verified build for bobba platform make BOARD=bobba -j Signed-off-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com> Change-Id: I26f76a6d98a1505953aa4bfbbe838efbd22a0804 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3166370 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
* hatch_fp/board_rw: Reset FP_RST_ODL line to default on RW initPatryk Duda2021-09-161-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was introduced in crrev.com/c/3017987 but it was accidentally removed in crrev.com/c/3078823. This patch reintroduces the change. Original change's description: > hatch_fp/board_rw: Explicitly reset FP_RST_ODL to default on RW init > > FP_RST_ODL pin is only defined in gpio_rw.inc, so this pin won't be > initialized to 1 by RO. Also, RW won't set this pin because sysjump to > RW is a warm reset actually and we are not setting GPIO pins to their > defaults after the warm reset to avoid undesired effects (see > gpio_pre_init() in chip/stm32/gpio.c). > > As a result fpsensor_hw hardware unit test was not working, because > FPMCU was keeping sensor in reset. > > Build with FP private driver is working because the driver performs > sensor reset during initialization. > > BUG=b:170432597 > BRANCH=none > TEST=`make BOARD=bloonchipper` > > Signed-off-by: Patryk Duda <pdk@semihalf.com> > Change-Id: Ib88d1965dc1410c08c3e3a51ad4f90d27f8ea1b0 > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3017987 > Reviewed-by: Craig Hesling <hesling@chromium.org> BUG=b:178746753 b:170432597 BRANCH=none TEST=Run 'run_device_tests.py -b bloonchipper' and check if fpsensor_hw passes. Signed-off-by: Patryk Duda <pdk@semihalf.com> Change-Id: Ia852807f9229e7e6c3b12df01fd26962777e45d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162205 Tested-by: Patryk Duda <patrykd@google.com> Auto-Submit: Patryk Duda <patrykd@google.com> Reviewed-by: Craig Hesling <hesling@chromium.org> Commit-Queue: Craig Hesling <hesling@chromium.org>
* taeko: Support 2nd accelerometer-sensorreno.wang2021-09-163-5/+123
| | | | | | | | | | | | | | | | | Support BMA422 as 2nd source for lid accelerometer sensor. EC detect sensor chip id via i2c in HOOK_CHIPSET_STARTUP and init it. BUG=b:195902116 BRANCH=None TEST=make -j BOARD=taeko; test lid accel is initialized correctly in HOOK_CHOPSET_STARTUP; test lid accel can work by ectool motionsense tool. Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com> Change-Id: I593139df2b940c97809f8c97926c9da6cca68843 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3139855 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* herobrine: Always enable the 5V railWai-Hong Tam2021-09-162-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the next hardware revision. It has a PPC chip which requires 5V rail in S5. The 5V rail enable pin should be turned on whenever the EC is powered. Since the existing 5V rail enabling is done inside the qcom power sequence. Trogdor and Herobrine both shares this qcom power sequence. For Trogdor, this CL moves the 5V rail enabling from the qcom power sequence to the board level hook. For Herobrine, this CL updates the GPIO name and modifies the default level to HIGH. The CONFIG of 5V control should be disabled. As no board level hook to modify the 5V rail, the 5V is always on. BRANCH=None BUG=b:199804198 TEST=Booted both Zephyr and EC-OS images on Herobrine. Checked the 5V rail is enabled in S0 and S5. TEST=Booted both Zephyr and EC-OS images on Lazor. Checked the 5V rail is enabled in S0 and disabled in S5. Change-Id: Ifa98ee0c4e970dd89952e94cc6a0e289798e6a57 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3163918 Reviewed-by: Keith Short <keithshort@chromium.org>
* BB Retimer: Add new HPD callback to boardsDiana Z2021-09-1619-3/+35
| | | | | | | | | | | | | | | Now that the BB retimer has its own HPD interface, add this interface to every board using the bb_usb_retimer driver. BRANCH=None BUG=b:195773400 TEST=on voxel, pass tast typec.Mode*.manual Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ia70d139431739e8f2c0577359cb3aaa7fb906d0a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3163930 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* herobrine: Remove herobrine_npcx7 buildWai-Hong Tam2021-09-1613-1254/+0
| | | | | | | | | | | | | The NPCX7 combination is obsoleted. Remove the support. BRANCH=None BUG=b:191803008 TEST=Checked nothing depends on herobrine_npcx7. Change-Id: I5075aedcc31f6aceb5b3261b6b0e6c689ddf7eb7 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3163917 Reviewed-by: Keith Short <keithshort@chromium.org>