summaryrefslogtreecommitdiff
path: root/board
Commit message (Collapse)AuthorAgeFilesLines
* config: Rename CONFIG_CROS_BOARD_INFOPhilip Chen2021-06-1610-10/+10
| | | | | | | | | | | | | | | | | | Rename CONFIG_CROS_BOARD_INFO to CONFIG_CBI_EEPROM to make it clear that the information comes from on-board EEPROM. It sets up the groundwork for adding more options of CBI sources later. BRANCH=None BUG=b:186264627 TEST=make buildall -j Signed-off-by: Philip Chen <philipchen@google.com> Change-Id: I9a6feee0a8b35bbf29e445544243485507767ad8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2945792 Reviewed-by: Philip Chen <philipchen@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org>
* primus: Enable PS/2 MouseScott Chao2021-06-164-0/+29
| | | | | | | | | | | | BUG=b:187969783 BRANCH=none TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I99a72393dbe732bcab51a02278b0c372239f895c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952804 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* Metaknight: Remove legacy boardCaveh Jalali2021-06-161-6/+0
| | | | | | | | | | | | | | | This removes the last remaining reference to metaknight_light. We already removed the board. BRANCH=None BUG=None TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: Id230d32dbe51d3c7d1aedaf2b41e0d491c3fa627 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2964388 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* asurada: Move board USB-C code into a separate fileSimon Glass2021-06-163-33/+29
| | | | | | | | | | | | | | Move this code into a new file so that zephyr can build it as well as ECOS. BUG=b:189855648 BRANCH=none TEST=make BOARD=asurada -j30 Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I86e10ff02154d09fb7c967cbe86034689d262e47 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2956087 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* Metaknight: Remove legacy boardDiana Z2021-06-151-1/+0
| | | | | | | | | | | | | | | Metaknight has progressed past the point where the legacy board is needed, and it's down to less than 100 bytes of free flash at this point. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ie8899bc294745dceddc207428e8f5e8f8222da13 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2964921 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* guybrush: Apply PS8811 tuning parametersRob Barnes2021-06-151-0/+26
| | | | | | | | | | | | | Applying tuning parameters recommended by retimer vendor. BUG=b:189317041 TEST=Build and boot guybrush BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I59bf25b196a0f0da8e71bd41dffb3b9cef251666 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2920147 Reviewed-by: Diana Z <dzigterman@chromium.org>
* brya: Check burnside bridge RESET signal statusCaveh Jalali2021-06-121-0/+14
| | | | | | | | | | | | | | | | | | This adds a level check of the burnside bridge reset signal GPIO. The signal is connected to a GPIO on the nct3808 which becomes uncontrollable when a debug accessory is connected and forces the BB into reset. We can check for this case by reading back the level of the GPIO and return an error when the desired signal level has not been achieved. BRANCH=none BUG=b:181743576,b:188826559 TEST=buildall passes, PD still works on brya Change-Id: Ia21cbc699f857542600cc5946868e9c58cfa6cf9 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2955608 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* bb_retimer: Return status from bb_retimer_power_handle()Caveh Jalali2021-06-123-5/+8
| | | | | | | | | | | | | | | | | | | | | | | This allows the implementation of bb_retimer_power_handle() to return a status value indicating whether the request was successful. The default implementation simply controls a GPIO and is expected to succeed unconditionally. More complex implementations may run into failure cases that leave the BB unreachable. When this happens, device initialization returns an error so the caller can take mitigating action. USB MUX operations tend to be called from timing sensitive code paths in the TCPM, so careful error handling helps avoid cascading problems like PD negotiation failures. BRANCH=none BUG=b:181743576,b:188826559 TEST=buildall passes, PD still works on brya Change-Id: If79078be26e47d758e2cd6cc385ff2b34fecff63 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2954198 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* brya: Implement board_is_dts_portCaveh Jalali2021-06-111-0/+5
| | | | | | | | | | | | | | | | | Brya only has one DTS (CCD) port. We do not want debug accessory support enabled on non-CCD ports as that can have undesirable side-effects. In particular, with debug accessory support enabled on the nct38xx TCPC, some of its GPIOs revert to their primary function in the presence of a debug accessory resulting in undesirable system behavior. BRANCH=none BUG=b:188851792 TEST=brya only reports "Debug accessory detected" on C0 Change-Id: I1cfaf9b51df8e6783db0215fbc6f3cac9e2dd9f1 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2954197 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* Limozeen: buck IC solutionSue Chen2021-06-113-43/+52
| | | | | | | | | | | | | | | | | LAZOR model uses DA9313. The other model uses I2C to check that the dut has LN9310 or buck IC. Set VBOB_EN instead of SWITCH_ON_L for buck IC. BUG=b:190250108 BRANCH=trogdor TEST=Make sure dut can power on. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ib70d7e37323747e270c44658bb38ccfa48532a80 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2943986 Reviewed-by: Wai-Hong Tam <waihong@google.com> Tested-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* trogdor: Workaround for boards without HIBERNATE_L pull-upWai-Hong Tam2021-06-112-0/+18
| | | | | | | | | | | | | | | | | | | Some hardware doesn't have the external pull-up fix for the bugs, like b/164256614, b/177611071. It requires rework to stuff the resistor. For people who has difficulty to do the rework, this CL is a software workaround, which makes the GPIO push-pull, instead of open-drain. BRANCH=Trogdor BUG=b:190818143 TEST=Booted the Coachz rev-1 board, the I2C bus didn't get wedged. Change-Id: I82116b855db49ec7c93d90727c7837a58cda8d3e Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2956832 Tested-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org>
* Homestar: When the base state changes, update the virtual switchWai-Hong Tam2021-06-112-1/+3
| | | | | | | | | | | | | | | | | | Do the similar thing like crrev.com/c/2884609. When the base state changes, update the virtual switch. It sends a mode change event to notify AP and then AP will query the latest virtual switch of the base state. BRANCH=Trogdor BUG=b:190736240 TEST=Built the image without error. The change has been tested on another device. Should be safe. Change-Id: Ibae150091d65367d92abe1ae665e71b5caf8429a Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2953873 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Homestar: Enable the basestate console commandWai-Hong Tam2021-06-111-0/+2
| | | | | | | | | | | | | | | The basestate console command is used by tests to emulate the base detach or attach state. Enable it to pass the tests. BRANCH=Trogdor BUG=b:190736240 TEST=Built the image without error. The change has been tested on another device. Should be safe. Change-Id: Ica32802a9c2a2e62b280f83d0275f0c8d873ac81 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2953872 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* primus: Configure PWM channelScott Chao2021-06-114-17/+18
| | | | | | | | | | | BUG=b:190518315 BRANCH=None TEST=make -j BOARD=primus Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Iaee111a963f3e9a6a353d14e9fdefdfb755828ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2938782 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* copano: gyro sensor add 2nd source KX022Jacky Wang2021-06-112-2/+38
| | | | | | | | | | | | | | | | Gyro sensor add 2nd source KX022. BUG=b:190644307 BRANCH=firmware-volteer-13672.B TEST=make BOARD=copano 1. Set CBI SSFC 0x10 and using command "ectool motionsense" for sensor kxo22. 2. Using command "ectool motionsense" for sensor BMA253. Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Change-Id: I73a5b915dcb67df58780a01873f81fe5719299d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952286 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
* limozeen: Refine the BRD_ID checkDavid Huang2021-06-111-2/+4
| | | | | | | | | | | | | | | | Limozeen's BRD_ID is not monotonically increasing. The earliest revision is 4. The next BRD_ID after 7 is 0. Not support PPC workaround when BRD_ID 0 on limozeen. BUG=b:190250108 BRANCH=trogdor TEST=make buildall success. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I16d7ff081306812c14aa31ce2b19af8e2d50ff76 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952802 Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* Coachz: Remove PCHG from RODaisuke Nojiri2021-06-114-1/+7
| | | | | | | | | | | | | | Peripheral devices don't need to be charged until EC jumps to RW. This patch removes PCHG from the RO copy. BUG=b:173235954 BRANCH=trogdor TEST=Charge stylus on Coachz. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I8156d1408bf69f4c1fccecaf3a77eaec29fa2c99 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2795065 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
* Chronicler: Implement LED behaviorYu-An Chen2021-06-105-117/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chronicler have two charging leds on left side and right side. Each side have two colors amber and white. The led behavior define as following: 1. Charging led: led on with charging port active, other port is off. 2. Charging: Amber. 3. Discharging: Off. 4. Battery Error: Blinking white (0.4 sec on, 0.4 sec off) 5. Fuel < 10%: Blinking white on right side port (1 sec on, 1 sec off) 6. Force idle for factory: Blinking amber (1 sec on, 1 sec off) 7. S0ix without charging state: Blinking both side LED white (1 sec on, 1 sec off) BUG=b:190019962 BRANCH=volteer TEST=make sure led behavior intended. make sure ectool led left white/amber/off/auto work correctly. make sure ectool led right white/amber/off/auto work correctly. Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I90626a233fe0ec53a3ad9ecbb57f7b47de57ce18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2936838 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: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* cret/raa489000: Control ASGATE statestabilize-14026.B-mainjohnwc_yeh2021-06-102-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | There is 0.1V leakage from Charger to Vbus when a charger is removed in S5. Control ASGATE state to prevent the leakage. This commit uses the charger side registers to control the ASGATE when selecting our active charge port. This is done in addition to the existing implementation which uses the TCPCI registers to control ASGATE. BUG=b:189299803 BRANCH=dedede TEST=Build and flash Cret, the leakage has been improved from 0.1V to 0.001V Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> Change-Id: Ib81ca651b0708149fae7b4df27f66107b47f8490 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2948604 Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* magister: add KEYBOARD_VIVALDIBen Chen2021-06-102-2/+35
| | | | | | | | | | | | | | | | | This CL implements vivald function row config for magister keyboard by board version. Magister board version define >= 5, and other was reserved. Switch keyboard_mask_refresh values ROW value by keyboard ID pin. BUG=b:184615827 BRANCH=dedede TEST=verify keycode is correct in `evtest Change-Id: Id680947b641a8a571d2ab9dd9981b33426eced9f Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2940330 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* magister: modify ADC volume button thresholdsBen Chen2021-06-101-4/+4
| | | | | | | | | | | | | | change volume up/down of ADC thresholds value. BUG=b:167319238 BRANCH=master TEST=Press Vol+- button function work. Change-Id: Iddb688832ca5bd343c9e6b577cd129c0895fd7dc Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952283 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Homestar:LED:Add LED behaviortongjian2021-06-101-60/+53
| | | | | | | | | | | | | | | | | | | | | | | | | The led behavior define as following: Power Led behaiver: 1.S0, Green (soild on) 2.S3, Orange (1s on 3s off) 3.S5, off Battery Led behaiver: 1.Red on S0/S3/S5, battery capa < 5% 2.Orange on S0/S3/S5, 5% < battery capa < 97% 3.Green on S0/S3/S5, battery capa > 97% 4.Battery error: Red on 1sec off 1sec 5.Factory test: Red on 2sec, Green on 2sec BUG=b:187539586 TEST=make -j BOARD=homestar Verify build on EVT board Make sure ectool led battery red/green/amber/off/auto work correctly. BRANCH=Trogdo Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com> Change-Id: I0ace830d9b728cbd43ed53592d5091a579197b0b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2949629 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* primus: configurate thermal sensorScott Chao2021-06-103-12/+62
| | | | | | | | | | | | BUG=b:190459738 BRANCH=none TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ic78bb80ee647e8cab5b97e344882c9671a886fdc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2939174 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* primus: replace board name to "primus"Scott Chao2021-06-108-21/+20
| | | | | | | | | | | BUG=b:190567710 BRANCH=None TEST=make BOARD=primus Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I2d430eb20689ffd8df5e370d0ff810da2669efea Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2939162 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* primus: remove motion sense and ALS sensorScott Chao2021-06-106-279/+8
| | | | | | | | | | | | | | | Primus only support clamshell form factor. And also remove ALS sensor support since Primus don't have it. BUG=b:190518316 BRANCH=None TEST=make -j BOARD=primus Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: If134c28dfdba30f5d7373899a4ca5a040476c553 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2939171 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* trogdor: Change GPIO HIBERNATE_L to open drainWai-Hong Tam2021-06-096-7/+7
| | | | | | | | | | | | | | | | We stuffed an external pull-up resistor on the GPIO HIBERNATE_L for fixing the CCD bugs, like b/173828265, b/177611071. The GPIO can be used as open drain. BRANCH=Trogdor BUG=b:189184814 TEST=Tested on Lazor; CCD connection still worked under EC hibernate. Change-Id: I50d832f1619f976a4cb682fa1b666add96563222 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2950925 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
* include/flash: rename the APIsTim Lin2021-06-091-2/+2
| | | | | | | | | | | | | | | | The names conflict when enabling both Zephyr's flash driver and CONFIG_FLASH_CROS option. Rename all the APIs in include/flash.h BUG=b:187192628 BRANCH=none TEST=make buildall -j4 Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com> Change-Id: If1fd0ea28fa9f5cec1c1daa8f72f63eb7a0e6500 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2931749 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* star: update touchpad fw size configTing Shen2021-06-091-1/+1
| | | | | | | | | | | | | | BUG=b:190577105 TEST=make BRANCH=trogdor Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I1804aecd01459f9cb45dfba8fc99dab950a0db58 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2948111 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* COIL: Rename motion sense address macrosDiana Z2021-06-0913-31/+39
| | | | | | | | | | | | | | | | Update the motion_sense.h address macros to reflect our current i2c terms, and also to specify that these are used exclusively in the accelerometer code. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ibad287df2ba1ecd0b6f3061599476636ac7a5354 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2946316 Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* Guybrush: Init TMP112 sensors on S5->S3 transitionDiana Z2021-06-081-0/+8
| | | | | | | | | | | | | | | The TMP112 sensors will be tied to S5 rails, so init them as we power transition on boards past version 1. BRANCH=None BUG=b:188539950 TEST=on guybrush version 1, power on and verify no errors are present Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I74efb7e360329f05b33c845d556c0557d89668f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2940575 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Metaknight: modify voltage range of ADC buttonYu-An Chen2021-06-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modify voltage range of ADC button Before: After: ^ | No pressed -------2.7v -> 2.78v | -------2.69v -> 2.74v | V- -------2.6v | -------2.49v -> 2.54v | V+ -------2.4v | -------2.29v -> 2.3v | V+ and V- v BUG=b:190330515 BRANCH=dedede TEST=factory check 4 fail device pass Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ibee2977086b57818588e60ff5d35291ddc2e5827 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2940335 Reviewed-by: Raymond Wong <wongraymond@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* cret: Add hdmi enable/disable conditionjohnwc_yeh2021-06-081-4/+8
| | | | | | | | | | | | | | | Add HDMI enable/disable condition(by FW_Conifg). BUG=b:189415302 BRANCH=dedede TEST=make BOARD=cret Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> Change-Id: Ie7d844cb0b5f626cfdba21bc11ed5cb2af266353 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2942527 Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Revert "Homestar:LED:LED function realization"Aseda Aboagye2021-06-081-57/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8aacd88a332b9903334e0bb3bf586560fdc5883a. Reason for revert: Orange is the same as amber, so the ectool and ec_commands.h portions were not needed. Original change's description: > Homestar:LED:LED function realization > > 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: I9c77b60e11135df5e289ef32adfe34fef3134760 > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2915162 > Reviewed-by: Wai-Hong Tam <waihong@google.com> Bug: b:187539586 Change-Id: Ic096dec630bcdcde17a3611f8414d88808d09469 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2947488 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
* primus: remove checking board_idScott Chao2021-06-082-53/+2
| | | | | | | | | | | | | Primus don't follow brya board_id, so remove it. BUG=b:188272162 BRANCH=None TEST=make -j BOARD=primus Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I217bab1439d912100d78943fcdcf3a2f6970edd5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2939170 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* storo: tune tusb544 EQ settingMike Lee2021-06-081-0/+99
| | | | | | | | | | | | | | | | Modify strength value setting of tusb544, set vod dcgain setting_5,set usb eq 15,and set dp eq 6. BUG=b:183583917,b:183586638 BRANCH=dedede TEST=make BOARD=storo and verified pass by EE Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: Ic8b16fed18e06e4fa763faf47c2041dc1d3c29f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2784332 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* magister: modify motionse lid sensor matrixBen Chen2021-06-081-1/+13
| | | | | | | | | | | | | | | | Change rotations matrices of lid accel by board version. magister board version define >= 5. other reserved. BUG=b:189909945 BRANCH=dedede TEST=Using ectool 'motionsense' verified lid angle now goes from 0 to 360 and swtiches to tablet mode after crossing 200 threshold. Change-Id: I9670c8602814041503c512618c68fb3feb273f40 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2935654 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* copano: Modity PDO setting.Jacky Wang2021-06-081-2/+2
| | | | | | | | | | | | | | | | | 1. Modify PD_MAX_POWER_MW to 45000. 2. Modify PD_MAX_VOLTAGE_MV to 15000. BUG=b:187772157 BRANCH=firmware-volteer-13672.B TEST=make BOARD=copano 1. Connect 60W adapter and use command "ectool usbpdpower" to check. Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Change-Id: Id2ffb79abdea63c129deb8d5f247cda4f8030817 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2944307 Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* primus: Initial EC imageScott Chao2021-06-0718-0/+1977
| | | | | | | | | | | | | | | | | Create the initial EC image for the primus variant by copying the brya 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:188272162 BRANCH=None TEST=make BOARD=primus Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I9f0318d03fc67c230e11bb25b45ff78b0a6db0c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2931746 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
* Gyubrush: Add TMP112 SOC sensor for board version 2Diana Z2021-06-071-7/+3
| | | | | | | | | | | | | | | | Add the TMP112 sensor which will be placed by the SOC and replaces the SOC ADC temperature input. BRANCH=None BUG=b:188539950 TEST=make -j buildall; load onto guybrush version 1 and verify temps read correctly Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ic70d3c56e22f4e1f4343ab3f41191b46f66d2e65 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2938045 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* TMP112: Support multiple sensorsDiana Z2021-06-072-1/+13
| | | | | | | | | | | | | | | | A board may have more than one TMP112, in which case we need an array to know which address to use for each sensor and for retrieving that sensor's last read temperature. BRANCH=None BUG=b:188539950 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: If3ad286010698683f25825872bd8bfd53b8795e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2938044 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* hayato: Modity PDO setting.Michael5 Chen12021-06-071-1/+6
| | | | | | | | | | | | | | | 1. Modify PD_MAX_POWER_MW to 45000. 2. Modify PD_MAX_VOLTAGE_MV to 15000. BUG=b:188373172 BRANCH=asurada TEST=Manual Connect 65W adapter and use command "ectool usbpdpower". Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: I9e2fa7353b057409d2ee8f9c000dc52bb1c79471 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895411 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Magolor: Remove legacy buildDiana Z2021-06-051-1/+0
| | | | | | | | | | | | | | | The legacy build was only needed temporarily as boards switched to larger ECs and is no longer necessary. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ia3351f1870d299c3787fb40de913c969fccf0dbe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941898 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Scarlet: Free up flash spaceDiana Z2021-06-051-0/+3
| | | | | | | | | | | | | | | Scarlet is very close to out of flash space, so remove PD state strings in order to free more space for it. BRANCH=None BUG=None TEST=make -j buildall; observe scarlet reports over 1.5k free flash Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I5aac5c22bf7bb3e8b37b26174bb598454f1f6364 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941897 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Oak: Free flash spaceDiana Z2021-06-051-0/+3
| | | | | | | | | | | | | | Remove the PD state strings in order to free up flash space for oak. BRANCH=None BUG=None TEST=make -j buildall; observe oak reports over 1.5k free flash Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I25b75fcad9dec5e77b1e83350c59dccc7ce98a93 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941896 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* brya: Enable AP-driven alt mode entryPrashant Malani2021-06-041-0/+1
| | | | | | | | | | | | | | | | Wait for the AP to direc the EC to enter USB Type C alternate modes. BUG=b:189263450 TEST=Manually verify that both Godzilla Creek and Dell WD19TB docks enumerate correctly on brya. BRANCH=main Change-Id: I0ea029769c9c33eb6af8fb7a5163b7c4466b3968 Signed-off-by: Prashant Malani <pmalani@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2937107 Reviewed-by: Abhijeet Rao <abhijeet.rao@intel.corp-partner.google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* volet: add new keyboardBen Chen2021-06-041-25/+34
| | | | | | | | | | | | | | | | | | | | | | support num_pad keyboard with vivaldi keyboard define BUG=b:189194028 BRANCH=main TEST=manual 1. Scan all key. 2. Check action key function. 3. Check ALT + Volup + H. 4. Check ALT + Volup + R. 5. Check Refresh (F2) + powerbutton (EC reboot). 6. Check ESC + Refresh + powerbutton. Change-Id: I42f18b1ccf806fb5b8292e2671100468be47e6e7 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2921701 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* spherion: support 65w adapterstabilize-14013.B-mainBen Chen2021-06-042-0/+16
| | | | | | | | | | | | | | modify max power and max current to support 65w adapter, SYV682X_HV_ILIM to 5.5A BUG=b:183174897 BRANCH=asurada TEST=make buildall PASS Change-Id: I704ad3a647a2007b808d55928298fd38c34387fe Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2793851 Reviewed-by: Eric Yilun Lin <yllin@google.com>
* Homestar:POGO: Set POGO VBUS setup later then PP3300_HUBtongjian2021-06-041-1/+5
| | | | | | | | | | | | | | | | | The HUB Spec requires the HUB to power up before it is plugged into the device. BUG=b:189191440 TEST=make -j BOARD=homestar 1.Verify build on EVT board 2.Use oscilloscope to observe the timing of POGO VBUS and PP3300_HUB 3.POGO VBUS setup is later then PP3300_HUB BRANCH=Trogdo Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com> Change-Id: I7ca46298b58e5f38a88ccbaa99a38b1d2555e05f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2935642 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* Trogdor: Update the GPIO names for rev-2Wai-Hong Tam2021-06-043-20/+39
| | | | | | | | | | | | | | Update the GPIO names according to the rev-2 schematic Define the unused pins. BRANCH=None BUG=b:184071830 TEST=Build the Trogdor image and test it on the rev-2 board. Change-Id: Ida8bdbf0dc63984d1f31b4db8b7b6f39f8b33e41 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2911506 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
* COIL: Rename MODULE_SPI_MASTER to MODULE_SPI_CONTROLLERCaveh Jalali2021-06-0336-63/+63
| | | | | | | | | | | | | | | | This renames the MODULE_SPI_MASTER to MODULE_SPI_CONTROLLER. BRANCH=none BUG=b:181607131 TEST=make buildall passes; "compare_build.sh -b all" shows no difference Change-Id: I4d33f57fd82c5b57f111c12387113dc82cebe60b Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2932466 Reviewed-by: Craig Hesling <hesling@chromium.org> Reviewed-by: Harry Cutts <hcutts@chromium.org> Commit-Queue: Craig Hesling <hesling@chromium.org>