summaryrefslogtreecommitdiff
path: root/board
Commit message (Collapse)AuthorAgeFilesLines
* bb_retimer: cleanup: Change the power handler func name & paramsVijay Hiremath2021-06-184-8/+8
| | | | | | | | | | | | | | Changed the power handler function name from bb_retimer_power_handle() to bb_retimer_power_enable() and on_off param to enable. BUG=none BRANCH=none TEST=make buildall -j Change-Id: Ifad4c71a5d76b4841ea369a991160e221c051ec5 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2973375 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* Sasukette: generate locked imagewuzhongtian2021-06-181-3/+1
| | | | | | | | | | | | | Remove bringup configs to generate locked image for production. BRANCH=dedede BUG=b:191235324 TEST=make -j BOARD=sasukette Signed-off-by: Zhongtian Wu <wuzhongtian@huaqin.corp-partner.google.com> Change-Id: Ia0f76d2d2a6c423c1f3ff2781fe7a2e099407ed4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2972164 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* gimble: Initial EC imageMark Hsieh2021-06-1818-0/+1983
| | | | | | | | | | | | | | | | | | | Create the initial EC image for the gimble 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:190334274 BRANCH=None TEST=make BOARD=gimble Signed-off-by: Mark Hsieh <mark_hsieh@wistron.corp-partner.google.com> Change-Id: Ia740667582e0f53bfc6afb37d23edf8c2d1d543e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2944517 Reviewed-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
* Zork: Update TCPC reset functions to notify NCT38xx driverDiana Z2021-06-175-53/+87
| | | | | | | | | | | | | | | The NCT38xx driver is now storing boot information which should be cleared whenever the TCPC is forcibly reset through the reset line. Add these reset calls to all zork boards. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I89089a32d4d17dc260df7928028c2dc5fef45aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965846 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* npcx7_evb: Disabling fans happens by undefining itPatrick Georgi2021-06-171-1/+0
| | | | | | | | | | | | | | | | Otherwise the code is compiled in (and then discarded presumably), just that gcc 11 doesn't like working on zero-sized arrays. BUG=none BRANCH=none TEST=one class of error less with gcc 11 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Change-Id: Ia68aa138993794941e9cde99dc9d2547d05d7f99 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2959921 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org>
* metaknight: disable building PWMPatrick Georgi2021-06-171-1/+0
| | | | | | | | | | | | | | | | | | | There's little point in providing the PWM API, which needs a channel id _everywhere_ when the corresponding enum defines to channels. gcc 11 complains about trying to access something in a zero-sized pwm_res array. BUG=none BRANCH=none TEST=one class of error less with gcc 11 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Change-Id: I366650c4cecc85493bce626091aba5eecc034039 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2959920 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Commit-Queue: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org>
* nocturne: Exclude RV32I panic data from structurePatryk Duda2021-06-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | This patch excludes RV32I core specific data in panic data structure for nocturne device to keep the same size of the structure in nocturne EC RO and ToT EC. This is necessary to prevent panic data corruption and access jump data correctly (see bug in description for more details). Nocturne doesn't include RV32I panic data in its EC RO panic data structure (checked include/panic.h on nocturne EC RO commit: `git show d118ba10a:include/panic.h`). BUG=b:165773837, b:160676144 BRANCH=none TEST=Run EC ToT on Nocturne. Make sure you are in EC RW. Crash EC using 'crash assert'. Make sure that EC RW after sysjump doesn't report unknown reset cause. Signed-off-by: Patryk Duda <pdk@semihalf.com> Change-Id: I5e9ef694c50e3271fe66fb4ac985da4e0924b734 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965923 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
* Tomato: Update LED behaviorSue Chen2021-06-172-61/+29
| | | | | | | | | | | | | | | | | | | | | | | Disable PWM_CH_LED2 (Green) at init. PWM_CH_LED1 -> amber, PWM_CH_LED3 -> blue LED Behavior: Charge(S0/S3/S5) Amber on Full Charge(S0/S3/S5) Blue on Discharge in S3 Amber on 1s off 3s Discharge in S5 Off Discharge in S0 Blue on Battery Error Amber on 1s off 1s Factory mode Blue on 2s Amber on 2s BUG=none BRANCH=none TEST=LED behavior meets the SPEC Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I8ee8188b6f60434b400a5e245e3cb9186a9a7338 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2966521 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* Tomato: define GPIO_EN_KEYBOARD_BACKLIGHTSue Chen2021-06-171-0/+3
| | | | | | | | | | | | | | It should set GPIO_EN_KB_BL low to turn off keyboard backlight while setting pwm duty to 0%. BUG=none BRANCH=none TEST=EC console "kblight 0" can turn off keyboard backlight Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I45e4b539ac77a28b5078455a7b4d601c4bc9b3ba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2966690 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* kracko: Tuning standard reference matrix of lid accel kx022Tommy Chung2021-06-171-2/+2
| | | | | | | | | | | | | | BUG=none BRANCH=dedede TEST=on kracko mockup, make sure that with "ectool motionsense", correct matrix values are reported under corresponding orientation. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I6a268d5c2d71d47bbad4dd0eec87db58b017aae0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2966692 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* quiche/baklava: Change UFP_PLUG_DET to be active lowScott Collyer2021-06-172-2/+2
| | | | | | | | | | | | | | | | | This CL changes the gpio signal UFP_PLUG_DET to be active low instead of active high. The initial description of this signal was incorrect. BUG=b:189860586 BRANCH=quiche TEST=ODM vendor verified that interop test against karben is now working with the display extending. Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I966be6a4f725810d03b2748ea95217b9bffec61c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2959396 Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Scott Collyer <scollyer@chromium.org>
* PCHG: Fuzz PCHG and ctn730 driverDaisuke Nojiri2021-06-171-0/+2
| | | | | | | | | | | | | | | | This patch adds a fuzz test for PCHG and ctn730 driver. With the given corpus, the test currently reaches all the normal mode states. BUG=b:190841496 BRANCH=trogdor TEST=make run-pchg_fuzz TEST=pchg_fuzz.exe -seed=1 -runs=1000000 -dict=fuzz/pchg_fuzz.corpus Change-Id: I6eedbbbdbf3396dfa2b98ca302e16d142ea251d5 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2956076
* Chronicler: Support factory keyboard testYu-An Chen2021-06-162-0/+29
| | | | | | | | | | | | | Support factory keyboard connector test BUG=b:191175285 BRANCH=volteer TEST=check ectool kbfactorytest pass Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I6b36afedf6ee5107ba50fefbf6b9cf90fca0e6ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965806 Reviewed-by: YH Lin <yueherngl@chromium.org> Commit-Queue: YH Lin <yueherngl@chromium.org>
* star: update touchpad logic dimensionTing Shen2021-06-161-2/+2
| | | | | | | | | | | | | | | BUG=b:190577105 TEST=none BRANCH=trogdor Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Id5ebb95dcabc91ccee2633f86a2694ad9289ecee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965788 Tested-by: Xinxiong Xu <xuxinxiong@huaqin.corp-partner.google.com> 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>
* Revert "limozeen: Refine the BRD_ID check"David Huang2021-06-161-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4860dccf9a0ea7c5ecba92d984491bd7151a31f0. Reason for revert: lomozeen pvt buck ic board version change to 8. Original change's description: > limozeen: Refine the BRD_ID check > > 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> Bug: b:190250108 Change-Id: Ib15e4d0b7b783c86541775955d5b74c51f2bbce2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965811 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: David Huang <david.huang@quanta.corp-partner.google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* Limozeen: BOARD ID 8 is for buck ICSue Chen2021-06-161-2/+2
| | | | | | | | | | | | | BUG=b:190250108 BRANCH=trogdor TEST=none Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I3399b700b60b527a15a437f949ce86c44e47568a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965812 Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com> Tested-by: Wai-Hong Tam <waihong@google.com>
* spherion: support thermal charge policyBen Chen2021-06-162-1/+47
| | | | | | | | | | | | | | | | | | | | | | supports skin temperature thermal policy from charge current setting via charger temperature threshols hit/release. setting input max current to 3.1A. The charging limitation is listed below: While NB in OS, sample temperature as chager task Tsens < 48 degree C , No limitation Tesen > 48 degree C , Limit charge current at 3.1A Tsens > 52 degree C , Limit charge current at 2.2A BUG=b:183174897 BRANCH=asurada TEST=The thermal test report PASS, make builadall PASS. Change-Id: I1d66fb133324e186c58a716b9c61e07b3edbdd7e Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2962200 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* gingerbread: Use CONFIG_USB_PD_VBUS_DETECT_TCPC for C1Scott Collyer2021-06-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL changes the stm32gx TCPM driver to allow CONFIG_USB_PD_VBUS_DETECT_TCPC to still be defined on boards that also use the stm32gx TCPM driver. This is required for gingerbread which has a PPC on C0 for VBUS detection, but relies on the TCPC to detect VBUS on port C1. BUG=b:159330563 BRANCH=quiche TEST=validated that can attach as SRC/DFP on C1 > pd 1 state Port C1 CC2, Enable - Role: SRC-DFP-VC TC State: Attached.SRC, [10.435540 C1: PE_SRC_Ready] [10.436511 pin_mode: 4, mf: 0, mux: 2] [10.442645 C1: PE_VDM_Request_DPM] [10.470346 C1: Entered DP mode] [10.470480 C1: PE_SRC_Ready] Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I986d504b1306c02132869abe7cbd630a966e0acd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2949954 Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* gingerbread: VBUS on/off and detect for port C1Scott Collyer2021-06-162-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds gingerbread specific functions to control and detect VBUS for port C1. This port does not have a PPC, but port C0 does which means PPC related configs are defined. A NULL PPC driver is added so any calls into PPC functions from common code will be correctly handled by the check for NULL functions. The functions which are needed are related to controlling and dectecting VBUS presence. BUG=b:159330563 BRANCH=quiche TEST=verfied that C1 attaches as a SRC/DFP [10.367330 C1: PE_SRC_Ready] [10.368772 C1: Attempting to enter DP mode] [10.374422 C1: PE_VDM_Request_DPM] [10.401563 C1: PE_SRC_Ready] [10.408082 C1: PE_VDM_Request_DPM] [10.435540 C1: PE_SRC_Ready] [10.436511 pin_mode: 4, mf: 0, mux: 2] [10.442645 C1: PE_VDM_Request_DPM] [10.470346 C1: Entered DP mode] [10.470480 C1: PE_SRC_Ready] > > pd 1 state Port C1 CC2, Enable - Role: SRC-DFP-VC TC State: Attached.SRC, Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I3027b2904592063294f0258da5e153db15ae0d6e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2949953 Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* kodama: Enable CONFIG_DEBUG_ASSERT_BRIEF to reduce flash usageCaveh Jalali2021-06-161-0/+2
| | | | | | | | | | | | | | This enables CONFIG_DEBUG_ASSERT_BRIEF to reduce the flash footprint as we are running out of space. BRANCH=none BUG=none TEST=make BOARD=kodama passes, 1124 bytes are now available. Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: Ia2b6d186db0ebb5d751e464d9331d1c4e5aadc09 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965785 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* elm: Undef CONFIG_CMD_ACCEL* to reduce flash usageCaveh Jalali2021-06-161-2/+1
| | | | | | | | | | | | | | This removes ACCEL related console commands to free flash space as we have run out of space on elm. BRANCH=none BUG=none TEST=make BOARD=elm passes, 2240 bytes are now available. Change-Id: Ibd51a02a97a246fae3c0f61aa53d070b85877c38 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965784 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Homestar:TCPM:Enable PD3.0 functongjian2021-06-161-0/+3
| | | | | | | | | | | | BUG=b:185415863 TEST=make -j BOARD=homestar Verify build on EVT board BRANCH=Trogdo Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com> Change-Id: I1d2a71e10c0a63fd1e9756a7b46f82eb6e1cf764 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2962202 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* Cret: Modified NPCX7_PWM1_SEL defination to 1Josh Tsai2021-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | In Cret board, GPIOC1 is the power button signal from EC to PCH, if NPCX7_PWM1_SEL set to 0, it will cause the power button signal can't be controlled by EC. So we need to change the NPCX7_PWM1_SEL to 1. BUG=b:191184363 BRANCH=dedede TEST=DUT can resume from S0ix by press power button, GPIOC1 can be asserted when press power button. Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com> Change-Id: I64a600a02791fa73db28d4315eb287622d114675 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965804 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>
* lazor: Interpret the BOARD ID in the binary-first base3 systemWai-Hong Tam2021-06-163-0/+20
| | | | | | | | | | | | | | | | | | | Convert the raw BOARD ID to a binary-first base3 number. So it won't affect the original binary BOARD ID assignment. If all the GPIOs are not tri-state, it ends up to be a number in binary interpretation. Also cache the BOARD ID value. BRANCH=Trogdor BUG=b:190250108 TEST=Build the image and check the BOARD IDs. Change-Id: Ibd938fbc05977df1eb7d8d27460beab4cd0f7bf7 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2964390 Reviewed-by: Julius Werner <jwerner@chromium.org>
* kracko: Add second source lid accel kx022Tommy Chung2021-06-162-0/+44
| | | | | | | | | | | | | | | | To avoid shortage, we add second source of lid accel kx022 for kracko. BUG=none BRANCH=dedede TEST=on kracko, make sure that lid accel kx022 works with related SSFC value. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I4b5a270ad609982355bab36ed3f0d18a2d033d10 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2962193 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* brya: Add 2 ADC Channels for P2 buildKo_Ko2021-06-162-9/+25
| | | | | | | | | | | | | | | | | | | | Add 2 ADC channels SENSOR_3_CHARGER and ADC_TEMP_SENSOR_4_WWAN, and change sensor 2 naming for adc and thermal params. BUG=b:181271666, b:183452273 BRANCH=none TEST=build ec.bin and flash ec after not affect boot. Signed-off-by: Ko_Ko <Ko_Ko@compal.corp-partner.google.com> Change-Id: Ib26c264532c52364dc21eeca59c0611001898a42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2905161 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com> Reviewed-by: Ko Ko <ko_ko@compal.corp-partner.google.com> Tested-by: Ko Ko <ko_ko@compal.corp-partner.google.com> Tested-by: Owen Ou <owen_ou@compal.corp-partner.google.com> Commit-Queue: Owen Ou <owen_ou@compal.corp-partner.google.com> Auto-Submit: Owen Ou <owen_ou@compal.corp-partner.google.com>
* 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>