summaryrefslogtreecommitdiff
path: root/board
Commit message (Collapse)AuthorAgeFilesLines
...
* puff: usb_mux: Split struct usb_mux in puff boardsTomasz Michalec2022-09-132-11/+17
| | | | | | | | | | | | | | | | Update puff boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Ib2e266439a829d3176491c154fc9623c9e635563 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779633 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* coral: usb_mux: Split struct usb_mux in coral boardTomasz Michalec2022-09-131-8/+12
| | | | | | | | | | | | | | | | Update coral board to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I8d450e24e0dd3bb72dbbbd7484a04e233c99bb4d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779632 Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* cherry: usb_mux: Split struct usb_mux in cherry boardTomasz Michalec2022-09-132-24/+36
| | | | | | | | | | | | | | | | Update cherry boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Icb5054d97ef12ba659cf405b99760a340565ee97 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779631 Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* keeby: usb_mux: Split struct usb_mux in keeby boardsTomasz Michalec2022-09-137-48/+78
| | | | | | | | | | | | | | | | Update keeby boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I348fd0950d630747deb9e02b7ea789ff5e395fed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779630 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* brask: usb_mux: Split struct usb_mux in brask boardsTomasz Michalec2022-09-135-102/+152
| | | | | | | | | | | | | | | | Update brask boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Ifec0efa0dac67a2a1910e3193a7c346a6d36359a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779629 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Tomasz Michalec <tmichalec@google.com> Tested-by: Tomasz Michalec <tmichalec@google.com>
* jacuzzi: usb_mux: Split struct usb_mux in jacuzzi boardsTomasz Michalec2022-09-1312-72/+108
| | | | | | | | | | | | | | | | Update jacuzzi boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I40e2d8c4050d9928212ffa77e5ff19cd2a5931eb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779628 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com>
* poppy: usb_mux: Split struct usb_mux in poppy boardsTomasz Michalec2022-09-135-35/+65
| | | | | | | | | | | | | | | | Update poppy boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I8c2eb0f218a7885c1e6b364067ec0f6680f7a04e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779627 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com>
* asurada: usb_mux: Split struct usb_mux in asurada boardsTomasz Michalec2022-09-132-5/+5
| | | | | | | | | | | | | | | | Update asurada boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I5a75f017a006137721d39162fcd44a1b0dcfc372 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779626 Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* brya: usb_mux: Split struct usb_mux in brya boardsTomasz Michalec2022-09-1317-366/+548
| | | | | | | | | | | | | | | | | Update brya boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Ibfce1a895db0b179672f26cdf2c27b7168bf8985 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779625 Tested-by: Tomasz Michalec <tmichalec@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* hatch: usb_mux: Split struct usb_mux in hatch boardsTomasz Michalec2022-09-1311-72/+114
| | | | | | | | | | | | | | | | Update hatch boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I795eec4c5df1123fcb21356fd529afe7d9ac42bf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779624 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com>
* dedede: usb_mux: Split struct usb_mux in dedede boardsTomasz Michalec2022-09-1323-268/+425
| | | | | | | | | | | | | | | | Update dedede boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Ie73f5bc250c436a2d72fdfb4c8f8707f05fba9f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779623 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com>
* strongbad: usb_mux: Split struct usb_mux in strongbad boardsTomasz Michalec2022-09-136-36/+66
| | | | | | | | | | | | | | | | Update strongbad boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I6527f41f081bca7a179f52afb87a6f534d2f09f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779622 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* trogdor: usb_mux: Split struct usb_mux in trogdor boardsTomasz Michalec2022-09-136-39/+72
| | | | | | | | | | | | | | | | Update trogdor boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I8bcd1f97850c9064734ee60a7785b55578a6a9a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779621 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* volteer: usb_mux: Split struct usb_mux in volteer boardsTomasz Michalec2022-09-1314-272/+415
| | | | | | | | | | | | | | | | Update volteer boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Iaab1d2e718d19198e949df5ee84631cdca3568a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779620 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* zork: usb_mux: Split struct usb_mux in zork boardsTomasz Michalec2022-09-1313-187/+271
| | | | | | | | | | | | | | | | Update zork boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I0ce3899148a8b5e9bc95abbc929adb63f27f42fc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779619 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* servo_v4p1: add "cc dtsoff" and "cc dtson" commandsMatthew Blecker2022-09-131-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BRANCH=none BUG=none TEST=Built servo_v4p1 firmware with this change and flashed it to a Servo v4.1 with Type-C CCD DUT cable. Repeated the following steps with and without a DUT charge plugged into Servo v4.1: 1) Power on the Servo v4.1 while connected to a known-good CCD capable DUT. Verify presence of CR50 CCD USB device on servo host machine. 2) Run "cc" to log its output. 3) Run "cc dtsoff" and compare the output. Only change is "dts mode: on" changing to "dts mode: off" . Verify absence of CR50 CCD USB device on servo host machine. 4) Run "cc dtson" and compare the output. Only change is going back to "dts mode: on" . Verify presence of CR50 CCD USB device on servo host machine. Signed-off-by: Matthew Blecker <matthewb@chromium.org> Change-Id: I39b9e62d0e6c74e1264b698d9c04008042d36eac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3889000 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* Update license boilerplate text in source code filesMike Frysinger2022-09-121949-1949/+1949
| | | | | | | | | | | | | | | Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BRANCH=none BUG=chromium:1098010 TEST=`repo upload` works Change-Id: Icd3a1723c20595356af83d190b2c6a9078b3013b Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891203 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* shotzo: Modify power led behavior when suspendingHank.Xie2022-09-124-115/+27
| | | | | | | | | | | | | | | | | | | | | | | Modify led control setting as below: 1.Remove the pwm control led related code. 1.Change power led behavior when suspending. Power led behavior as below: 1.Solid white - active power 2.25% duty cycle white - suspend 3.Blinking quicky white - alert 4.Two long two short white - critical 5.Off - shut down BUG=b:235791717 BRANCH=none TEST=check power led works fine on shotzo Signed-off-by: Hank Xie <hank.xie@quanta.corp-partner.google.com> Change-Id: I4e094af1734407cc66269e13d4b21df3ed0e815f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3881523 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Devin Lu <devin.lu@quantatw.com>
* servo_v4: add "cc dtsoff" and "cc dtson" commandsMatthew Blecker2022-09-101-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BRANCH=none BUG=none TEST=Built servo_v4 firmware with this change cherry-picked onto d771c18ba9989eed5eca134d27e1973a63bded74 from cros/firmware-servo-12768.B-master branch (current top-of-branch) and flashed it to a Servo v4 with Type-C CCD DUT cable. Repeated the following steps with and without a DUT charge plugged into Servo v4: 1) Power on the Servo v4 while connected to a known-good CCD capable DUT. Verify presence of CR50 CCD USB device on servo host machine. 2) Run "cc" to log its output. 3) Run "cc dtsoff" and compare the output. Only change is "dts mode: on" changing to "dts mode: off" . Verify absence of CR50 CCD USB device on servo host machine. 4) Run "cc dtson" and compare the output. Only change is going back to "dts mode: on" . Verify presence of CR50 CCD USB device on servo host machine. Change-Id: I780073165609f2278d3323f42ff8cf6a1ea71999 Signed-off-by: Matthew Blecker <matthewb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3888998 Reviewed-by: Brian Nemec <bnemec@google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* config: rename HOSTCMD_ESPI_* to HOST_INTERFACE_ESPI_*Michał Barnaś2022-09-0949-87/+87
| | | | | | | | | | | | | | | Rename ESPI additional configs to match the name of base config that selects ESPI as HOST_INTERFACE. BUG=b:195416058 BRANCH=main TEST=zmake testall && make buildall Change-Id: I137449a1a58b1ea0d9794ebc0900e1b68413819d Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3291744 Reviewed-by: Sam Hurst <shurst@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* taeko: redefine top row key mapping matrix layoutamber.chen2022-09-081-9/+45
| | | | | | | | | | | | | | | | | Redefine top row key mapping matrix layout for fix issue about Top row key F8 F9 F10 F11 function incorrect when press with search key together. Due to taeko and tarlo have the same firmware code, already verified on both of Tarlo and Taeko devices. BUG=b:245235247 BRANCH=none TEST=make buildall -j48 Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: If33eede7eaae188c2c4efb4057f265e5fb274fca Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3874321 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* taniks: redefine top row key mapping matrix layoutarthur.lin2022-09-081-8/+38
| | | | | | | | | | | | | | | | Redefine top row key mapping matrix layout to fix issue about Top row key F8 F9 F10 F11 function incorrect when press with "search" key. BUG=b:245235247 BRANCH=none TEST=make buildall -j Signed-off-by: arthur.lin <arthur.lin@lcfc.corp-partner.google.com> Change-Id: Id8497a0c5c30ef8fd79f83adcc2c0bf314444e3a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3875662 Reviewed-by: Parth Malkan <parthmalkan@google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* Zephyr: Add AOZ1380 to PPC devicetreeDiana Z2022-09-087-7/+7
| | | | | | | | | | | | | | | | Add the AOZ1380 as an option into the zephyr shim for boards to set up in their devicetree. BRANCH=None BUG=b:244457125 TEST=zmake build skyrim; make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I1876cdca462fe9d7db0dcc0f4d2043cb43639c6d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3880670 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Keith Short <keithshort@chromium.org>
* shotzo: remove battery setting and charger taskZhuohao Lee2022-09-086-370/+10
| | | | | | | | | | | | | | | | | | Based on the shotzo HW design, we don't include a battery even though the design has the charger ic sm5803. In order to support this HW design, we remove the battery setting from the board.h, remove battery.c and CHARGER task from the board customization. BUG=b:242949656 BRANCH=none TEST=make -b shotzo flash the ec.bin to the device and checked the behavior Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Change-Id: I63eeafecb0af0325cda6e72470a9826702611091 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865214 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* charger: support the charger without batteryZhuohao Lee2022-09-082-16/+0
| | | | | | | | | | | | | | | | | | | | | | In order to support the HW design with charger but doesn't include the a battery, we exclude the charge_state_v2.c if we define the CONFIG_CHARGER but not define the CONFIG_BATTERY. Besides, we also implement some default functions to avoid the link error. Note: remove the charge_prevent_power_on from the board.c of rainier/mchpevb1 and use the default function. BUG=b:242949656 BRANCH=none TEST=build pass with 1. CONFIG_CHARGER + CONFIG_BATTERY 2. CONFIG_CHARGER + no CONFIG_BATTERY 3. make buildall Change-Id: I32c9b03aaf87b641af2b337db1f3bae838464a41 Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865186 Reviewed-by: Diana Z <dzigterman@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* redrix: Enable Data Resetpoornima tom2022-09-071-0/+1
| | | | | | | | | | | | | | | | Enable the config for Data reset BUG=b:240732438 BRANCH=None TEST=Verify USB3 devices on TBT4 dock Signed-off-by: poornima tom <poornima.tom@intel.com> Change-Id: I2fad582e0585e5cc6051f2dcc4135a79aa2983ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3877882 Commit-Queue: Boris Mittelberg <bmbm@google.com> Reviewed-by: Benson Leung <bleung@google.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* guybrush: Set temp_fan_off valueRob Barnes2022-09-071-2/+1
| | | | | | | | | | | | | | | Set a conservative value for temp_fan_off. This was previously 0, which keeps the fan always on. BUG=b:233370444 BRANCH=guybrush TEST=Build Change-Id: I95df701917187abbbca1821873a3bcd69407465b Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3877937 Commit-Queue: Jonathon Murphy <jpmurphy@google.com> Reviewed-by: Jonathon Murphy <jpmurphy@google.com>
* volmar: Discharge on AC when high MLCC noiseYu-An Chen2022-09-072-0/+72
| | | | | | | | | | | | | | | | | | | | | Charger will work on the hybrid mode if battery full and system current over 3A. The voltage gap between the Vsys and Vbat will cause the Vsys has high ripple, Although it is normal design behaviors, But it will cause MLCC noise a bit larger than other conditions. This CL force battery discharge when battery full, So the battery MOS of NVDC charger will turn on always, it make the Vsys same as Vbat and the noise has been improved. BUG=b:245042158 TEST=check battery discharging when battery full BRANCH=none Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ie48d5781dc8078f7973ec24232af56e410a21378 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3872410 Reviewed-by: caveh jalali <caveh@chromium.org>
* primus: add new batteriesElsie Shih2022-09-072-7/+97
| | | | | | | | | | | | | | | | - Manuf: Sunwoda, Device: LNV-5B11H56342 - Manuf: SMP, Device: LNV-5B11H56344 - Manuf: Celxpert, Device: LNV-5B11H56343 BUG=b:245236639 BRANCH=none TEST=make -j BOARD=primus Signed-off-by: Elsie Shih <elsie_shih@wistron.corp-partner.google.com> Change-Id: I93f66ba185231a9ad7e70debf306254a82f7a3ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3875350 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* taeko: enable the mask of RCP for nx20p3483amber.chen2022-09-071-0/+1
| | | | | | | | | | | | | | | Reverse current protection mask register enable which is disabling the interrupt signal of RCP for nx20p3483 BUG=b:237468526 BRANCH=none TEST=make -j BOARD=taeko Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: I70bd2fe7b5d44f71fd90cdb12f61443bd17fd40b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3871327 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* vell: Update fan table version 6Devin Lu2022-09-071-7/+7
| | | | | | | | | | | | | | BUG=b:216026302 BRANCH=none TEST=Thermal team verified thermal policy is expected. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I4421ef05ba314b6c7c7ed0acef142c95dbba7395 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3875342 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Devin Lu <devin.lu@quantatw.com> Reviewed-by: caveh jalali <caveh@chromium.org> Tested-by: Devin Lu <devin.lu@quantatw.com>
* Banshee: Modify LED behaviorFelixTW_Chang2022-09-051-5/+11
| | | | | | | | | | | | | | | | | | | | This patch modify some behaviors: 1. Change pwr_led duty to 100. 2. Turn off pwr_led when lid close. 3. Change Charge LED color from Green to White when battery fully charged. 4. Change RGB duty to mix White color. BUG=b:220954645 BRANCH=None TEST=check power and charge led behavior Signed-off-by: FelixTW_Chang <felixtw_chang@compal.corp-partner.google.com> Change-Id: I0dc6f64c6ae7bbda543bed12fbfdf1e90cebeb3f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855654 Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
* kinox: modify the ADP_ID valueMatt Wang2022-09-021-13/+13
| | | | | | | | | | | | | | | | | Modify the default watt to TINY 45w and the value is the real volatge, not the ADC value. And sort the TIO2 power list by max voltage. BUG=b:211806236 BRANCH=none TEST=make BOARD=kinox Signed-off-by: Matt Wang <matt_wang@compal.corp-partner.google.com> Change-Id: If22348b299363f46eb6d3ac96bd1c5e2433f0665 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3861813 Reviewed-by: Ricky Chang <rickytlchang@chromium.org> Commit-Queue: Ricky Chang <rickytlchang@chromium.org>
* dojo: Add keyboard factory testTommy Chung2022-09-023-0/+33
| | | | | | | | | | | | BUG=none BRANCH=cherry TEST=make sure that `ectool kbfactory test` works. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I7189a240e3e21cbaed04ce3cfbfe36192e643bf3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865212 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Devin Lu <devin.lu@quantatw.com>
* tree-wide: const-ify argv for console commandsCaveh Jalali2022-09-0143-84/+84
| | | | | | | | | | | | | | | | | | | | | | | This updates the API for console commands from "int cmd(int argc, char **argv)" to "int cmd(int argc, const char **argv)" which is more accurate and in line with common convention. BRANCH=none BUG=b:244387210 TEST="make buildall" passes TEST="zmake build -a" passes TEST="util/compare_build.sh -b all" passes TEST="./twister -v -T zephyr/test" passes Cq-Depend: chrome-internal:4960125 Cq-Depend: chrome-internal:4959932 Change-Id: I57de9f35b85b8f3c7119df36aefb2abf25d2625f Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3863941 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* ghost: Delete boardJack Rosenthal2022-09-0119-1451/+0
| | | | | | | | | | | | | | | | | | This project has concluded and the EC firmware build is no longer required. Note the overlay has already been deleted and all builders shut down, so it's safe to delete this board. BUG=b:244596639 BRANCH=none TEST=CQ Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I87ac43733f3490477b8a13c432e0c049c5edac44 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3869001 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* Agah: Remove UNUSED(PIN(7, 3))Daisuke Nojiri2022-08-311-1/+0
| | | | | | | | | | | | | GPIO73 is used for TA2. BUG=b:240286399 BRANCH=None TEST=buildall Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: Iab25222c81061c87802a3193c14f7d948bd3931b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3867531 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
* Prism: Remove const keyword from rgbkbd_type variableParth Malkan2022-08-301-1/+1
| | | | | | | | | | | | | | Rgbkbd_type could be set at runtime, remove const. BUG=b:242259557 BRANCH=none TEST=None Cq-Depend: chromium:3864981, chromium:3861817, chromium:3866411 Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I92bd1e326d20b272afe5bede850f6bb090e86c16 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864982 Reviewed-by: YH Lin <yueherngl@chromium.org>
* Osiris: Remove const keyword from rgbkbd_type variableParth Malkan2022-08-301-1/+1
| | | | | | | | | | | | | | Rgbkbd_type could be set at runtime, remove const. BUG=b:242259557 BRANCH=none TEST=None Cq-Depend: chromium:3864982, chromium:3861817, chromium:3866411 Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I63e7f034aeb3ca31cbe293e5d2c4defd8c21176e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864981 Reviewed-by: YH Lin <yueherngl@chromium.org>
* Mithrax : Modify RGBKBD config for non-gaming SKU.Logan_Liao2022-08-302-5/+8
| | | | | | | | | | | | | | | | | | | | This patch modify RGB_type setting to distinguish gaming and non-gaming SKU. BUG=b:242259557 BRANCH=none TEST=test Mithrax without RGB keyboard that return EC_RGBKBD_TYPE_UNKNOWN. Cq-Depend: chromium:3864981, chromium:3864982, chromium:3866411 Change-Id: I3f6485319d36b2ef619d597ea75dc074838b7562 Signed-off-by: Logan_Liao <logan_Liao@compal.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3861817 Reviewed-by: Logan Liao <logan_liao@compal.corp-partner.google.com> Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Parth Malkan <parthmalkan@google.com> Commit-Queue: Parth Malkan <parthmalkan@google.com> Tested-by: Parth Malkan <parthmalkan@google.com> Reviewed-by: Ko Ko <ko_ko@compal.corp-partner.google.com>
* taniks: Remove const keyword from rgbkbd_type variableParth Malkan2022-08-301-1/+1
| | | | | | | | | | | | | | Rgbkbd_type could be set at runtime, remove const. BUG=b:242259557 BRANCH=none TEST=None Cq-Depend: chromium:3864982, chromium:3861817, chromium:3864981 Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: Ie0088fabe6837608c10315c58ad40643c12b7627 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3866411 Reviewed-by: YH Lin <yueherngl@chromium.org>
* brya: Set fan PWM frequency to 25 KHzCaveh Jalali2022-08-301-2/+2
| | | | | | | | | | | | | | | | The brya fan spec calls for the PWM frequency to be 25 KHz. Many brya variants already use 25 KHz as this is a common PWM frequency for fans. BRANCH=none BUG=none TEST=changed fan speed with "fanduty" and confirmed resulting speed with "faninfo" and physically. Change-Id: I26d5d7fa044f1de6a7c1781abe2eadc20e72a413 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3833561 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* crota: modify custom fan controlPeter Chi2022-08-292-43/+51
| | | | | | | | | | | | | | | | | Sensor DDR also is a fan on/off switch: - temperature > 38°C = on - temperature < 37°C = off Record actual and target RPM every 2 minutes. BUG=b:243100667 BRANCH=none TEST=make -j BOARD=crota Signed-off-by: Peter Chi <peter_chi@wistron.corp-partner.google.com> Change-Id: I069512cf68639e597351f2bf6877d95f45094c89 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3826595 Reviewed-by: caveh jalali <caveh@chromium.org>
* drawcia_riscv: Disable CMD_ACCELS to reduce flash sizeCaveh Jalali2022-08-291-0/+3
| | | | | | | | | | | | BRANCH=none BUG=none TEST=buildall passes Change-Id: I7c4c32d933a2d16c9dd219db73ceedf4b65edd6a Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3860647 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* mtk_scp: Enable I/D-cache for mt8186Allen-kh Cheng2022-08-261-6/+33
| | | | | | | | | | | | | | | | | | | 1. Enable cache mapping on scp boot. 2. Add interrupt disable/enable to prevent preempt when setting cache range. BRANCH=none BUG=b:218771968 TEST=Boot kukui scp and open cam ok make BOARD=corsola_scp -j ALLOW_CONFIG=1 Signed-off-by: Allen-kh Cheng <allen-kh.cheng@mediatek.corp-partner.google.com> Change-Id: I8d586afc33cba55d388d553dd2a2fc2047089553 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3853765 Commit-Queue: Hsin-Yi Wang <hsinyi@chromium.org> Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org> Reviewed-by: Wei-Shun Chang <weishunc@chromium.org>
* osiris: Reduce host low battery shutdown percentage to 3%Yu-An Chen2022-08-261-0/+4
| | | | | | | | | | | | | | | Reduce host low battery shutdown percentage to 3%, default is 4%. BUG=b:237624128 BRANCH=none TEST=make BOARD=osiris Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I770ecd55be21162972bcac49063465f4bdd9252e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3853301 Reviewed-by: Parth Malkan <parthmalkan@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org>
* Pazquel360: Setup volume buttons for pazquel360 onlyTang Qijun2022-08-253-5/+24
| | | | | | | | | | | | | | Pazquel/pazquel360 share the same firmware, setup volume buttons for pazquel360 only. BUG=b:239599467 BRANCH=trogdor TEST=emerge-trogdor chromeos-ec & ectool mkbpget buttons on pazquel360 Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com> Change-Id: I996b38b46bdc1e4a7cbc7257e72a42671d61d7c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3853302 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* vell: Update fan table version 5Devin Lu2022-08-251-8/+8
| | | | | | | | | | | | | BUG=b:216026302 BRANCH=none TEST=Thermal team verified thermal policy is expected. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ib04d4fed5f0976ee18d831f54913dfaff9921c62 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3853304 Tested-by: Devin Lu <devin.lu@quantatw.com> Commit-Queue: Devin Lu <devin.lu@quantatw.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* crota: allow PROCHOT when unplugging AC adapterPeter Chi2022-08-241-0/+1
| | | | | | | | | | | | BUG=b:243609867 BRANCH=none TEST=make -j BOARD=crota Signed-off-by: Peter Chi <peter_chi@wistron.corp-partner.google.com> Change-Id: I645b5ec72b2ede9c57696be2c19c1354aac3baea Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3841542 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* homestar: Disable CMD help to free some flash sizeTomasz Michalec2022-08-231-0/+3
| | | | | | | | | | | | | | | Undefine CONFIG_CONSOLE_CMDHELP to save some flash size BUG=None BRANCH=None TEST=make BOARD=homestar Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I122b5a98351030ff2784c616a780f2b7bb622569 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3831540 Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>