summaryrefslogtreecommitdiff
path: root/baseboard
Commit message (Collapse)AuthorAgeFilesLines
...
* guybrush: Add 200ms delay between rsmrst and pwrbtnRob Barnes2021-03-162-9/+6
| | | | | | | | | | | | | | | | | Changing from 80ms to 200ms to allow more time for signals to settle before pwrbtn. This delay is not documented in spec, so this may require further tuning. BUG=b:182802230 TEST=Build BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I79432b05c11c520fd49cb84c8e575f253b04a836 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2764972 Commit-Queue: Edward Hill <ecgh@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Enable CONFIG_CHIPSET_X86_RSMRST_DELAYRob Barnes2021-03-162-0/+2
| | | | | | | | | | | | | | | | Add a delay of 10ms between S5_PGOOD and RSMRST_L. Needed to meet timing specs. 10ms matches what is used on Intel. This may need to be tuned for AMD chipsets. BUG=b:182802230 TEST=Build BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I8e2c5a2b47866496a1ae598089e4ac5aa5fa45d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2764971 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Switch temperature inputs to MODULE_ADCRob Barnes2021-03-161-4/+4
| | | | | | | | | | | | | | | Switch definitions for temperature and other analog inputs to MODULE_ADC. BUG=None TEST=Build BRANCH=None Change-Id: I9b1a35ed517b8a8fcc95c58b3853bfd02b0f1d95 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2761968 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Add fan supportRob Barnes2021-03-162-1/+46
| | | | | | | | | | | | | | | Add basic fan support. More tuning will be needed. BUG=b:178217015 TEST=Build BRANCH=None Change-Id: I8133bfeb63346a254d0300d99d2b0ade35f74cc6 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2762804 Reviewed-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* guybrush: disable internal pull up for EC_BATT_PRES_ODLelmo_lan2021-03-161-1/+1
| | | | | | | | | | | | | | Disable internal pull up for EC_BATT_PRES_ODL. BUG=b:182876576 TEST=Verified EC_BATT_PRES_ODL will change by plug/remove battery. BRANCH=None Signed-off-by: elmo_lan <elmo_lan@compal.corp-partner.google.com> Change-Id: If4cc5a8ecf59a682eebf764a9a5c710c8029a8d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2764204 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Trogdor: Add HANG_DETECT host event as a S3 wake sourceWai-Hong Tam2021-03-161-0/+1
| | | | | | | | | | | | | | | | When EC detects AP suspend hang, it sends the HANG_DETECT host event to AP. Should make this event as a S3 wake source such that it can wake AP up. BRANCH=Trogdor BUG=b:182477897 TEST=Used an image which fails to enter suspend, checked EC detect the suspend hang and wake AP up afterward. Change-Id: I75d721d9bc0589a839d2b952054d2e4b22e19f31 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2757101 Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
* Mancomb: Add EN_USM_ODLDiana Z2021-03-151-0/+1
| | | | | | | | | | | | | | | | Add EN_USM_ODL and set to open drain disabled for now. USM may be enabled in the future if there are noise issues with the voltage regulators. BRANCH=None BUG=b:182477680 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I5614f36078f400385f6e9c37f599cd3bbc7f6991 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2762801 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Mancomb: Add TEMP_AMBIENT_VRDiana Z2021-03-153-18/+30
| | | | | | | | | | | | | | | | Add temperature sensor for ambient temperature. Additionally, simplify the temperature reads since all sensors are hooked up to the same PP3300_S5. BRANCH=None BUG=b:182601210 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I27b1a078e9bfe5db8e043eb9d5b9c7eb29cc1eaf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2762800 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Mancomb: Switch temperature inputs to MODULE_ADCDiana Z2021-03-151-4/+4
| | | | | | | | | | | | | | | Switch definitions for temperature and other analog inputs to MODULE_ADC. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I7e02281158aa2d34e4beff24fbd15782cbfcd274 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2762799 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Mancomb: Enable Power Group interruptsDiana Z2021-03-151-0/+4
| | | | | | | | | | | | | | | | Enable interrupts for EN_PWR_PCORE_S0_R. Note that other power interrupts which are included in the power_signal_list get enabled during power_common_init(). BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I799b0f6055f29b94226aed05930499d74fc41b31 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2762798 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* dirinboz: add FW_CONFIG support for different keyboard layoutIsaac Lee2021-03-152-0/+25
| | | | | | | | | | BUG=b:182232569 BRANCH=firmware-zork-13434.B-main TEST=build all Change-Id: I567739a9499249d5bdb067e23ee80a957ba7c2e4 Signed-off-by: Isaac Lee <isaaclee@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2755360
* Guybrush: Enable Power Group interruptsstabilize-13851.B-mainelmo_lan2021-03-131-0/+4
| | | | | | | | | | | | | | Enable interrupt of PG_GROUPC_S0_OD and PG_LPDDR4X_S3_OD. BUG=b:182581653 BRANCH=None TEST=EN_PWR_PCORE_S0_R works normal. Signed-off-by: elmo_lan <elmo_lan@compal.corp-partner.google.com> Change-Id: I06ece39630b3f4eab290a80a64b9f70a8f61cac0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2757809 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Guybrush: Don't read GPIO_EN_KB_BL as ioexRob Barnes2021-03-121-2/+2
| | | | | | | | | | | | | | GPIO_EN_KB_BL is being read as an ioexpander gpio. This was true on Zork but on Guybrush it's a regular EC GPIO. BUG=None BRANCH=None TEST=Build Change-Id: I1ced4ebbb8c5cbd2dfca0e12528dfcb8fa47f789 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2755194 Reviewed-by: Diana Z <dzigterman@chromium.org>
* brya: Enable tablet modeBoris Mittelberg2021-03-121-0/+7
| | | | | | | | | | | | | Enable GMR sensor and tablet mode for Brya. BRANCH=none BUG=b:181368071 TEST=buildall passes, manually tested with a magnet Signed-off-by: Boris Mittelberg <bmbm@google.com> Change-Id: I3d408e6b6bdd2bc5da81203c0c4e80c2ff367c05 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2737240 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
* kconfig: Alias EN_PWR_A to EN_PWR_S5Rob Barnes2021-03-124-4/+2
| | | | | | | | | | | | | EN_PWR_A should alias to EN_PWR_S5. EN_PWR_Z1 is PSL_OUT. BUG=b:182512084 TEST=Build BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: Iabec65bb573d200a12e727d281f8c97cf1ee0ec4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2753816 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Mordin: Add one more SKUIDsDevin Lu2021-03-121-0/+1
| | | | | | | | | | | BUG=b:171755306 BRANCH=firmware-grunt-11031.B TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I45830335545206f665e84866e0b11a2c666d0101 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752572 Reviewed-by: Edward Hill <ecgh@chromium.org>
* brya: Enable LEDsBoris Mittelberg2021-03-121-0/+3
| | | | | | | | | | | | | Enable control of right and left LEDs, display charging status. BRANCH=none BUG=b:182329831 TEST=buildall passes, manual test with ectool Signed-off-by: Boris Mittelberg <bmbm@google.com> Change-Id: I1463102924a6300843f3381e1b66d88ae0096157 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752345 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
* mancomb: Update mancomb compared to guybrushRob Barnes2021-03-114-456/+204
| | | | | | | | | | | | | | | | | | | | | Remove gpio not used by mancomb. Remove non required tasks. Remove keyboard functionality. Remove battery functionality. Add recovery buttons and BJ signals. Add DP and HDMI fault signals. Remove most charger functionality. Add USB hub signals. Remove hibernate support. BUG=b:174424094, b:181510382 TEST=Build BRANCH=None Change-Id: If956524a57db104abd399e25978298a828885dc2 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2727967 Reviewed-by: Diana Z <dzigterman@chromium.org>
* asurada: enable virtual mux for DPEric Yilun Lin2021-03-112-0/+15
| | | | | | | | | | | | | | EC needs to inform AP the DP mode status with virtual mux or ANX7625 might miss the status change. BUG=b:181942052 TEST=ensure EC_HOST_EVENT_USB_MUX is set when DP status change BRANCH=main Change-Id: I079debdd59d80912b1a4668582ed673bfc79cf8a Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2744809 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* brya: Enable MKBP supportFurquan Shaikh2021-03-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | This change enables MKBP support by selecting the following configs: * CONFIG_MKBP_EVENT * CONFIG_MKBP_USE_GPIO - This is selected instead of CONFIG_MKBP_USE_GPIO_AND_HOST_EVENT because GPIO_EC_INT_L is also the wake pin for brya. Additionally, GPIO_EC_INT_L is defined to allow mkbp driver to trigger interrupt to AP for tight timestamps. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: Ia755671d943576ecd8da3a76260c8b87d2ab35ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747460 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
* brya: Add some AP related configsFurquan Shaikh2021-03-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | This change enables the following AP related configs: 1. CONFIG_CMD_AP_RESET_LOG: Enables support for reporting reset logs to AP. 2. CONFIG_HOSTCMD_AP_RESET: Enables host command that AP can use to request EC to trigger chipset reset. This was used on boards like Dedede and Volteer to address a cr50 strap change issue. This issue might not really apply to brya, but having this host command available shouldn't hurt. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I44fda98999a93a3bb4a5414adc18c5d734dd6a4d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747711 Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
* brya: add chargen to the set of CLI commandsFurquan Shaikh2021-03-101-0/+3
| | | | | | | | | | | | | | | | This is needed to support CCD testing of UART to USB bridging. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: Id183b96dd1f2689f03ed0c09b70d91ca5efccb94 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747708 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
* brya: Control display backlight based on state of lid switchFurquan Shaikh2021-03-101-0/+3
| | | | | | | | | | | | | | | | | | This change enables CONFIG_BACKLIGHT_LID so that the EC disables the panel backlight when lid is closed. GPIO_ENABLE_BACKLIGHT is defined to allow common code to control the required GPIO. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I3c54287d716b66696cb41ba4433a9d704f01f674 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747707 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
* brya: Add workaround for CR50 double resetFurquan Shaikh2021-03-101-0/+3
| | | | | | | | | | | | | | | | | | | | | This change enables workaround required for cr50 double reset. Copying commit message from dedede: Hold the EC on the initial power on until the CR50 resets it; this preserves the power on flag for the first boot, which is important when we are deciding if we want to reset the USB-C PD contract. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I2b3411fc540e54ecc185b46f7f9d7e3bb1075847 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747706 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
* brya: Enable link time optimizationFurquan Shaikh2021-03-101-0/+1
| | | | | | | | | | | | | | | | | | This change enables link time optimization for brya by selecting CONFIG_LTO. This option saves ~10KiB of flash space in RO and RW each. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I9891851e34af50b486f06ea48872513d9f39b75e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747419 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
* brya: Enable verified boot related configsFurquan Shaikh2021-03-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | This change enables the following verified boot related configs for brya: * CONFIG_VBOOT_HASH * CONFIG_VSTORE * CONFIG_VSTORE_SLOT_COUNT Since brya hasn't yet enabled EFS2, config for VBOOT_EFS2 is skipped. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I32c0986a48b427e2843a980a5fa534e029c8a709 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747418 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
* brya: Enable switch supportFurquan Shaikh2021-03-101-1/+2
| | | | | | | | | | | | | | | | | This change enables switch support for baseboard brya by defining CONFIG_SWITCH. BUG=b:173575131 BRANCH=None TEST=make -j buildall Signed-off-by: Caveh Jalali <caveh@chromium.org> Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: Ie8400bbe174fc3662282534f4027513e8c44b220 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2747417 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
* Brya: Add usb_pd_policyCaveh Jalali2021-03-103-0/+266
| | | | | | | | | | | | | | | This adds the USB PD policy support code. BRANCH=none BUG=b:173575131 TEST=with reset of CQ-Depend patches, brya can charge using PD Change-Id: I55b2b0a9a68adf0eaa7ac95be0c6d9136adb6366 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2700317 Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* Brya: Enable charger chipCaveh Jalali2021-03-103-0/+109
| | | | | | | | | | | | | | This adds the charger chip support code. BRANCH=none BUG=b:173575131,b:180784200 TEST=with reset of CQ-Depend patches, brya boots to AP Change-Id: I1b220376cb03197e13aad65f1e79692eaf8fb1e1 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2700316 Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
* guybrush: add current monitor adc signalsRob Barnes2021-03-092-1/+16
| | | | | | | | | | | | | | Add the two current monitor signals from the PCORE. These will only be used for debugging. BUG=None TEST=Build BRANCH=None Change-Id: I9d25fa263cd4ef9526a8c493a703d020672338c5 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2740560 Reviewed-by: Diana Z <dzigterman@chromium.org>
* honeybuns: Add RWSIG and RO/RW splitScott Collyer2021-03-092-7/+75
| | | | | | | | | | | | | | | | | | | | | | | Honeybuns does not have an AP and therefore it needs to verify its own RW signature in RO. This functionality is enabled with RWSIG config option and task. This CL adds support to both enable RWSIG and make the RO and RW images asymmetric. Note that RO only needs to enable USB-EP support for fwupd support and support RW signature verification. Therefore, RO is limited to support these key features. BUG=b:167462264 BRANCH=None TEST=verifed on both quiche and gingerbread that will boot into RO and following RW signature verification, jump to the RW image. Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I1cdf0965e06881ebb48205a517d308641e6cdb49 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2699452 Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Scott Collyer <scollyer@chromium.org>
* delbin: Setting charger switching frequency to 724kHz.Michael5 Chen12021-03-081-0/+2
| | | | | | | | | | | | | | | Setting charger switching frequency to 724kHz. BUG=b:180779740 BRANCH=volteer TEST=manual 1. Check charger register 0x3C 2. Check waveform Signed-off-by: Michael5 Chen1 <michael5_chen1@pegatron.corp-partner.google.com> Change-Id: I97512742dfc778c22615f8385fbe1fecf5ff2d7b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2719786 Reviewed-by: Keith Short <keithshort@chromium.org>
* Revert "brya: Enable AP throttling"Furquan Shaikh2021-03-051-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e4eb9d80a7ea176df7d4fa423b47ee5da9d41200. Reason for revert: Redefinition of same configs. Original change's description: > brya: Enable AP throttling > > This enables the AP throttling feature. > > BRANCH=none > BUG=b:173575131 > TEST=buildall passes > > Signed-off-by: Caveh Jalali <caveh@chromium.org> > Change-Id: I5907b1fd3b3638212985c2e89ef99979c02d8c05 > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738396 > Reviewed-by: Furquan Shaikh <furquan@chromium.org> Bug=b:173575131 BRANCH=None TEST=None Change-Id: I19fc7a6f63c55553c853c91225b275c2b315fd95 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2739856 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Commit-Queue: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Auto-Submit: Furquan Shaikh <furquan@chromium.org>
* brya: Enable physical volume buttonsCaveh Jalali2021-03-051-0/+3
| | | | | | | | | | | | | | | This enables the config option for using physical volume up/down buttons. BRANCH=none BUG=b:173575131 TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: Ib3bb088a88073bd80742e35d0b8a819100163351 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738398 Reviewed-by: Furquan Shaikh <furquan@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org>
* cherry: code cleanupTing Shen2021-03-053-10/+5
| | | | | | | | | | | | | | | | | | | | - remove duplicate headers in baseboard.c - remove references to asurada / hayato - replace cherry/led.c by asurada/led_hayato.c, which should be more close to cherry's design BUG=b:181838424 TEST=1) `ag '(asurada|hayato)' -i baseboard/cherry board/cherry` returns empty result 2) make BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Id9afd90d323395f38787e452b02b8da65fd15286 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2734168 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* brya: Enable RTC resetCaveh Jalali2021-03-051-0/+2
| | | | | | | | | | | | | This enables the RTC reset feature of the SoC. BRANCH=none BUG=b:173575131 TEST=buildall passes Change-Id: I29f7599fea831dd5751c5609b4e974059a8be2e7 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738918 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
* brya: Enable power buttonCaveh Jalali2021-03-051-0/+2
| | | | | | | | | | | | | This enables the power button feature form the EC to the SoC. BRANCH=none BUG=b:173575131 TEST=buildall passes Change-Id: Ife5eaa37d269ab4fa5a72be4fec1dec7c4536749 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738917 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
* brya: Enable AP throttlingCaveh Jalali2021-03-051-0/+5
| | | | | | | | | | | | | This enables the AP throttling feature. BRANCH=none BUG=b:173575131 TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: I5907b1fd3b3638212985c2e89ef99979c02d8c05 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738396 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
* brya: Configure chipset supportCaveh Jalali2021-03-051-2/+7
| | | | | | | | | | | | | This enables additional chipset configurations for brya. BRANCH=none BUG=b:173575131 TEST=buildall passes Change-Id: Ie8c090ceea14e20d005ddd9a5451d7bcbddc9947 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738916 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
* brya: Remove duplicate keyboard support definesCaveh Jalali2021-03-051-12/+0
| | | | | | | | | | | | | | This removes some duplicate keyboard defines that crept in from splitting larger patches and merging. sorry. BRANCH=none BUG=b:173575131 TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: I541da5ea29477fbaaacb7467fdb98156670e1ec3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2738915 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
* brya: Add keyboard supportCaveh Jalali2021-03-051-0/+12
| | | | | | | | | | | | | | This adds keyboard support. Brya uses a non-vivaldi style keyboard. BRANCH=none BUG=b:173575131 TEST=buildall passes Change-Id: I6b703f37a773990d81530d4d99b76711efa238e0 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2737548 Reviewed-by: Furquan Shaikh <furquan@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org>
* mancomb: Create mancomb baseboard and variantRob Barnes2021-03-036-0/+1511
| | | | | | | | | | | | | | | This is a full copy paste of guybrush just with guybrush replaced with mancomb. Follow up CLs will make required changes so it's clear what changed between guybrush and mancomb. BUG=b:174424094, b:181510382 TEST=Build BRANCH=None Change-Id: I16f00e2749ab466e619b77925b25b275aca67a6c Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2727634 Reviewed-by: Diana Z <dzigterman@chromium.org>
* baseboard/kukui: enable hibernation on it81202 based boardsDino Li2021-03-031-1/+1
| | | | | | | | | | | | | | | | With this change, system is able to enter hibernate to reduce EC power number to lowest. BUG=b:180668427 BRANCH=none TEST=On icarus, power down system to G3 with battery only. Run "hibernate" command to let system enter hibernate. EC's power number is reduced to about 0.7mw. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I3ae258810e239b870afa5096cb573952101e6702 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2731175 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* cherry: initial EC imageTing Shen2021-03-037-0/+1283
| | | | | | | | | | | | | | | | Copied from Asurada, with minimal changes to copyright header and makefile to make it compilable and let linter happy. BUG=b:178158810 TEST=make BOARD=cherry -j32 BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ibf75df48336203fd84885856f971fea24f4ea288 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2730642 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
* adlrvp: Select retimer USB MUX config at runtimePoornima Tom2021-03-022-1/+30
| | | | | | | | | | | | | | | | Different SKU of ADL RVP have different retimer USB MUX hence select the retimer USB MUX based on the board SKU at runtime. BUG=none BRANCH=none TEST=Able to detect USB3.0 drive on Port-2 without retimer Change-Id: I34d70749db98ff45ca3c3ed09720ba9ad9df62a4 Signed-off-by: Poornima Tom <poornima.tom@intel.com> Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2718534 Reviewed-by: Sooraj Govindan <sooraj.govindan@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* brya: Add CBI and FW_CONFIG supportstabilize-13821.B-mainCaveh Jalali2021-02-275-0/+183
| | | | | | | | | | | | | | This adds support for CBI and the first USB DB type field in FW_CONFIG. BUG=b:173575131,b:180434685 BRANCH=none TEST=buildall succeeds Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: If1d27fc100db9b814f90a9378d8dd19530a92bf4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2706964 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Sooraj Govindan <sooraj.govindan@intel.com>
* cleanup: rename ite tcpm driverRuibin Chang2021-02-261-2/+2
| | | | | | | | | | | | | | | | Rename it83xx_tcpm_drv to it8xxx2_tcpm_drv for chip it8xxx2 series. BUG=none BRANCH=none TEST=1.make buildall -j 2.on hayato, connecting to adapter and dongle can go to ready state. Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw> Change-Id: I2622e7fe0884d3ae20a63ec48219de00d5537bc6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2717430 Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw> Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw>
* baseboard/kukui: enable TCPMv2 on it81202 based boardDino Li2021-02-251-2/+9
| | | | | | | | | | | BUG=b:180668427 BRANCH=none TEST=On icarus, EC negotiates to 15V and starts charging. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: Ibd37b86303a03ce4b2e5b394d38c6b53bcf307e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2717434 Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
* baseboard/kukui: separate configs for stm32 and ite chips.Dino Li2021-02-251-37/+40
| | | | | | | | | | | | | | | | | This change pulls stm32 chip-specific options into VARIANT_KUKUI_EC_STM32F098 (include save flash space operations), and enable it83xx chip-specific options for it81202. BUG=none BRANCH=none TEST=-buildall. -boot to kernel on juniper. -boot to manual recovery on icarus. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I81fb318960bf24780c164d9abe631ef70a360bf9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2717344 Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
* brya: Enable AP throttlingCaveh Jalali2021-02-241-0/+4
| | | | | | | | | | | | | | | | This enables AP throttling based on thermal conditions. Brya has two thermistors - one near the SoC and one near the charger that can be used for deciding when to throttle. BRANCH=none BUG=b:173575131,b:180681346 TEST=buildall passes Change-Id: Ieaa6959ff9fc7ee5e505c13cff2150ad70a04e3b Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2686981 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>