summaryrefslogtreecommitdiff
path: root/board
Commit message (Collapse)AuthorAgeFilesLines
* config: Provide default VCONN Swap delayAbe Levkoy2021-01-2246-41/+5
| | | | | | | | | | | | | | | | | Almost every relevant board copy-pastes 5000 us. Make that the default and get rid of the redundant definitions. This is the approximate result of this command: find . -type f -name *.h | xargs sed -i -E \ '/#define CONFIG_USBC_VCONN_SWAP_DELAY_US[[:space:]]+5000[[:space:]]/d' BUG=b:144165680 TEST=make buildall BRANCH=none Change-Id: Ife86f9752971abcd7ab5ad5a5e607eb2ccbde2ba Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628132 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* config: Make VCONN Swap delay a documented optionAbe Levkoy2021-01-2246-49/+48
| | | | | | | | | | | | | | | | | | | | | Replace PD_VCONN_SWAP_DELAY with CONFIG_USBC_VCONN_SWAP_DELAY_US. This is the approximate result of the following command, run from platform/ec: find . -type f -\( -name '*.c' -o -name '*.h' -\) | \ xargs sed -iE 's/PD_VCONN_SWAP_DELAY/CONFIG_USBC_VCONN_SWAP_DELAY/g' Fix some latent formatting errors in usb_pd_protocol.c, because they were preventing pre-upload hooks from passing. BUG=b:144165680 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: Icaf3b309c08fdcd162e960cf5dc88185016b5d2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628131 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Madoo: Fix main board charger can't wake from hibernateKo_Ko2021-01-227-13/+13
| | | | | | | | | | | | | | | | | | | | | | | In madoo's design, there is a protection IC between USB connector and TCPC. When EC is hibernate, the CC lines will be disconnected, which cause the result that TCPC can't detect AC power and Chromebook won't wake the system. Enalbing ADC for all modes by setting 0x4C bit 0 to 1 (to be more precise is that we don't clear bit 0 during hibernation) can prevent issue mention above. BUG=b:174971576 BRANCH=dedede TEST=flash code and make sure ac in can wake system from hibernation Signed-off-by: Ko_Ko <Ko_Ko@compal.corp-partner.google.com> Change-Id: I2a83c69e34cbc4bfdff90d760f32817a7924dc26 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2626803 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Ko Ko <ko_ko@compal.corp-partner.google.com> Tested-by: Ko Ko <ko_ko@compal.corp-partner.google.com> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* genesis: Redefine GPIO BJ_ADP_PRESENT_LNeill Corlett2021-01-221-0/+1
| | | | | | | | | | | | | BUG=b:178025719 TEST=Built EC for genesis Change-Id: Ied905475c94a17838a9c66c9ef304b905d716416 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643601 Reviewed-by: Joe Tessler <jrt@chromium.org> Reviewed-by: Neill Corlett <corlett@google.com> Commit-Queue: Neill Corlett <corlett@google.com> Tested-by: Neill Corlett <corlett@google.com> Auto-Submit: Neill Corlett <corlett@google.com>
* ambassador: Update fan and thermal settings.Neill Corlett2021-01-211-8/+8
| | | | | | | | | | | BUG=b:177765580 TEST=Built the EC firmware Change-Id: I56b9aeebd9cfdc647ddb6460619792f76b0d8673 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643216 Tested-by: Neill Corlett <corlett@google.com> Reviewed-by: Joe Tessler <jrt@chromium.org> Commit-Queue: Neill Corlett <corlett@google.com>
* cleanup: elemi: Remove unused sensor idDevin Lu2021-01-211-9/+0
| | | | | | | | | | | BUG=none BRANCH=firmware-volteer-13672.B-main TEST=make buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I18703b4ba24e0bbdda48504c3b77023f87fe2e5b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639421 Reviewed-by: Keith Short <keithshort@chromium.org>
* adlrvp-p: Enable temperature sensor config - CONFIG_TEMP_SENSOR.Deepti Deshatty2021-01-211-0/+3
| | | | | | | | | | | | BRANCH=none BUG=none TEST=Tested temperatures using "ectool temps" command. Change-Id: Ic93ab1b0c0718781b433966ffd735013a437a6f0 Signed-off-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639423 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* Ezkinil: Update thermal tableSue Chen2021-01-211-13/+0
| | | | | | | | | | | | | | Remove thermal_cpu. Not using TEMP_SENSOR_CPU to do thermal shutdown and throttle ap. BUG=b:153937447 BRANCH=zork TEST=none Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ie953c2feddb6eed42002e408d9edd970af1e34bb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639000 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* voxel: update thermal tableBen Chen2021-01-211-5/+5
| | | | | | | | | | | | | | | | update thermal config BUG=b:167523658 BRANCH=none TEST=make buildall TEST=verify by thermal team Change-Id: Ic96a6bcc7ef12ab94d5bebcf643331a7634e3496 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2634891 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
* magolor: config thermal active-high GPIOBen Chen2021-01-211-0/+1
| | | | | | | | | | | | | | add active-high power control GPIO for thermal sensor BUG=b:166732783 BRANCH=master TEST=make buildall PASS Change-Id: Icfd2d4fea07ff0c64626e315e81925fd1471618d Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639429 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
* servo_v4p1: clean-up and USB-C timingsVincent Palatin2021-01-207-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | Small clean-ups inherited from Nathan, the sooner they are pushed the better. - Fix typos/terminology. - Use symbolic port names. - update timings from power supplies to be more tolerant when using an upstream host charger. - disable the discharge on the power path at startup as a safety measure. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=none BRANCH=servo TEST=none Change-Id: If3ca4498b23763ce43371ce9cfe80391b0c1a4b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2640656 Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* genesis: Define GPIO line for USB C port polarity.Neill Corlett2021-01-201-1/+1
| | | | | | | | | | | | | | BUG=b:173566595 TEST='gpioget USB_C0_POL_L' from the EC console while flipping a USB C cable in the port. Change-Id: I39cee983428db270ccc4f50d362f013e2355ef77 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639409 Reviewed-by: Joe Tessler <jrt@chromium.org> Reviewed-by: Neill Corlett <corlett@google.com> Commit-Queue: Neill Corlett <corlett@google.com> Tested-by: Neill Corlett <corlett@google.com> Auto-Submit: Neill Corlett <corlett@google.com>
* Zephyr: Create public headers for bmi260, bma2x2, and tcs3400Hyungwoo Yang2021-01-201-5/+4
| | | | | | | | | | | | | | | Separate out the public part of sensor headers so it can be included from Zephyr. BUG=b:175434113 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: I899e9aea99d6c7d56a1b6735538b280fe0735313 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637251 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* sasukette: Initial EC imageTao Xia2021-01-208-0/+1410
| | | | | | | | | | | | | | | | | | | | | Create the initial EC image for the sasukette variant by copying the waddledee 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:175848514 BRANCH=None TEST=make BOARD=sasukette Signed-off-by: Tao Xia <xiatao5@huaqin.corp-partner.google.com> Change-Id: Ie73f45553f6ca7d16ca7818047370e6f78801c3f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627541 Reviewed-by: Weimin Wu <wuweimin@huaqin.corp-partner.google.com> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Tested-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Commit-Queue: Henry Sun <henrysun@google.com>
* Coachz: Add BASE_EN debounce time to 350mshegang52021-01-201-5/+11
| | | | | | | | | | | | | | Add BASE_EN debounce time to meet TP reset sequence BRANCH=master BUG=b:176398060 TEST=make BOARD=coachz -j flash ec and check BASE_EN delay time Signed-off-by: hegang5 <hegang5@huaqin.corp-partner.google.com> Change-Id: I04fb80d9f44a56bbf52dc089406ab0bd4fc2cd16 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637166 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
* adlrvp: Remove Mutex from bb_retimer_powerhandle()Poornima Tom2021-01-201-13/+4
| | | | | | | | | | | | | | | | The mutex was introduced to lock the retimer SPI access in shared SPI model. With the latest BB retimer driver, I2C retry is introduced to fasten the SPI access hence removed the mutex and additional delay. BRANCH=none BUG=none TEST=Tested on ADLRVP with TBT dock. Signed-off-by: Poornima Tom <poornima.tom@intel.com> Change-Id: I7c965ff2b2d880f22ce0bbd57245bf52a8bf5dd5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2631890 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* servo_v4p1: improve board ID supportVincent Palatin2021-01-202-5/+18
| | | | | | | | | | | | | | | | | | - cache the value - declare constants for the known values Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=b:168621142 BRANCH=servo TEST=none Change-Id: I03c02ef04a1d6c2344bda08ec4e225ec159473ba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2621305 Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Jan Dąbroś <jsd@semihalf.com>
* servo_v4p1: use usb_mux implementation for the TUSB1064 driverNathan K2021-01-206-118/+23
| | | | | | | | | | | | | | | | | | | Re-configure the board code to use the full usb_mux implementation for the TUSB1064 driver. And delete the corresponding board code. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=b:168621142 BRANCH=servo TEST=use the sink mode enabled by 'cc pdsnk', connect to a USB-C Chromebook try both video output on USB-C->mini-DP and USB 3.0. Change-Id: Ic331a82f1606ef58fe06607475b4554bf256aa6b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633985 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
* adlrvp: Rename TGL chipset type to ADL chipsetPoornima Tom2021-01-201-1/+1
| | | | | | | | | | | | | | | | Renamed TGL chipset type to ADL chipset type. Just like TGL maps to icelake, ADL chipset type also maps to icelake. BRANCH=none BUG=b:173575131 TEST= Tested on ADL RVP. Signed-off-by: Poornima Tom <poornima.tom@intel.com> Change-Id: Ia7b23dd1c3fb92807f8e3f7c226fe8a18f0c5b6a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2634890 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* lantis: vivaldi keyboard initializationTommy Chung2021-01-201-0/+24
| | | | | | | | | | | | | | | Initialize vivaldi keyboard on lantis. BUG=b:175672478 BRANCH=dedede TEST=Make sure that all top row keys work correctly. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: If6edd4f2638ec79dc444ce013ae11a6ed6844fcf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2635878 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* elemi: Remove CONFIG_USB_PD_TBT_COMPAT_MODEDevin Lu2021-01-191-3/+0
| | | | | | | | | | | BUG=b:177635229 BRANCH=firmware-volteer-13672.B-main TEST=make buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I1c8bf9a0a6dead6ab1c0c1ad7f3b29e32c435c9d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2635873 Reviewed-by: Keith Short <keithshort@chromium.org>
* voxel: Create voxel_apmodentry board configAbe Levkoy2021-01-192-0/+9
| | | | | | | | | | | | | | Help partners debug AP-driven mode entry. BUG=b:177105656 TEST=make buildall; observe new build BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I5c549237a38bcf0d9e10db3101c934cf6461c1c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2638088 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* touchpad_updater: implement 512 byte transferTing Shen2021-01-191-2/+7
| | | | | | | | | | | | | | | | | | | Migrate the touchpad probe/update logic from CL:2551939 to touchpad_updater. Also adjust the memory allocation on Zed to allow 512 byte packet. BUG=b:177250972 TEST=On coachz, update detachable fw and run `ec_touchpad_updater -p 504c -f 282.0_2.bin` BRANCH=master Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Icc7cec1f500dca04d6cdec5b66c10bcce05b67bd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637304 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* dirinboz: update thermal protect parameterZick Wei2021-01-192-0/+97
| | | | | | | | | | | | | | | | | | | This CL add below thermal parameter for dirinboz: Trigger at charger thermistor temperature > 56 C 1. Trigger AP prochot. 2. Set battery charge current to 500mA. 3. Set USB-C0 port only provide 1.5A. Release at charger thermistor temperature < 53 C BUG=b:177177974 BRANCH=zork TEST=verify EC behavior intended when trigger/ release thermal protection. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I2481b84048c70636b5ef526bcf27af278bcdf48b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2623310 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* aleena: Add base accel/gyro config for icm-426xxDavid Huang2021-01-183-1/+116
| | | | | | | | | | | | | Add icm-426xx config for new second source base accel/gyro. BUG=none BRANCH=grunt TEST=Check ectool motionsense and get x,y,z data. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I9a772fe700e97e29c7110c971683fa1c7f6c2f23 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2626796 Reviewed-by: Keith Short <keithshort@chromium.org>
* boldar: Support TBT/USB4 for C0/C1 portSooraj Govindan2021-01-181-41/+0
| | | | | | | | | | | | BUG=b:162202257 BRANCH=none TEST=check TBT is detected on USB-C0/C1 Signed-off-by: Sooraj Govindan <sooraj.govindan@intel.com> Change-Id: Ia1094ffe471f3259174039ae0baf93776e278c58 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2632116 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* volteer: Move USB-A charging info to usbc_configSimon Glass2021-01-162-7/+8
| | | | | | | | | | | | | | | | | | | Move this information into a file that can be built by Zephyr, so that it can enable USB-A charging. Note: This is not related to USB-C. Should we create a charger.c file in board/volteer? BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 With a zephyr-chrome CL, build volteer on zephyr Type 'usbchargemode 0 on' on volteer and see it start charging the phone Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I6658ebba1e473cafed2c8ae05e4013207f26ef3d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2631098 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Add USB4 PD support functionsSimon Glass2021-01-162-41/+41
| | | | | | | | | | | | | | | Add a few functions needed by the USB4 Power Delivery features. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 With a zephyr-chrome CL, build volteer on zephyr Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Iaab8efe5d04617bb8641fb2939ddeeaa62dc2523 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2631097 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* eldrid: support ectool led control when no adapterScott Chao2021-01-161-18/+19
| | | | | | | | | | | | | | | | | | | The 'ectool' command was not able to set the battery LED color. When no AC adapter is connected, that battery LED code temporarily turns of all LEDs until the next HOST_TICK. Bypass this check if the host has disabled LED auto control. BUG=b:177493741 BRANCH=firmware-volteer-13521.B-master TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I82f78bfecbb7f1b8343cf864ad0fd0d9bfc8fdaf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627539 Reviewed-by: Keith Short <keithshort@chromium.org>
* volteer: Create volteer_apmodeentry board configAbe Levkoy2021-01-152-0/+9
| | | | | | | | | | | | | | Help partners debug AP-driven mode entry. BUG=b:177105656 TEST=make buildall; observe new build BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I14c9f52e859f561c80758754d8b88e15a8b41ef5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633448 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* Boten: Increase stack sizesDiana Z2021-01-151-4/+4
| | | | | | | | | | | | | | Align boten's stack sizes with those chosen for drawcia, as there is sufficient space. BRANCH=Dedede BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I01691c1739039e3f984a5ead09f48afbe4bc9955 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628897 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Waddledee: Align task stacks with drawciaDiana Z2021-01-151-4/+4
| | | | | | | | | | | | | | Increase the reference ITE stack sizes to align with the ones which have been set for drawcia, as we still have plenty of stack space. BRANCH=dedede BUG=b:177479440 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I13c928f89db8b9b43572f19dc4d8f39a0766af5c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628896 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Galtic: Increase stack sizesDiana Z2021-01-151-4/+4
| | | | | | | | | | | | | | | | The keyscan task may overflow during the hibernate key sequence, so increase its stack size. Additionally, align stack sizes with the larger ones chosen previously for drawcia. BRANCH=dedede BUG=b:177479440 TEST=make -j buildall, galtic can successfully enter hibernate with alt+h+volume up Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ic25eebf4c2a29542a642e73dcab1f69c049fdae5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628895 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Juniper: Change HOOK_INIT priority and remove HOOK_CHIPSET_STARTUPDavid Huang2021-01-151-3/+1
| | | | | | | | | | | | | | | Change HOOK_INIT priority to prevent spi busy. Remove HOOK_CHIPSET_STARTUP due to system always power on from RO. BUG=b:175362114 BRANCH=main TEST=Check ectool motionsense and get x,y,z data. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I7f9947cba63b6b0d82648c870d08b759df619cf6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2631891 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* Refactor CONFIG_FLASH_SIZE to CONFIG_FLASH_SIZE_BYTESYuval Peress2021-01-1540-44/+45
| | | | | | | | | | | | | | | | | | | | | In Zephyr CONFIG_FLASH_SIZE is a Kconfig value that is used throughout. The issue is that the units don't match. In Zephyr the value is in KiB instead of bytes. This refactor simply renames CONFIG_FLASH_SIZE in platform/ec to include the unit (via _BYTES). BRANCH=none BUG=b:174873770 TEST=make buildall be generated by the build instead of per board Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I44bf3c7a20fcf62aaa9ae15715be78db4210f384 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627638 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* galtic: Config the EC GPIO settingJacky Wang2021-01-153-33/+15
| | | | | | | | | | | | | | Base on schematics, config the EC GPIO related setting. BUG=b:177181431 BRANCH=firmware-dedede-13606.B TEST=BOARD=galtic Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Change-Id: Iaa294965a4e6e8d34b816fa96c69b974b7368fbe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2620727 Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* sasuke : modify battery informationYongBeum.Ha2021-01-152-22/+32
| | | | | | | | | | | | | | modify battery information for sasuke BUG=b:175078396 BRANCH=None TEST=make BOARD=sasuke Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I9b4c74508c715b7327ef212a2c8f5173cbab57d8 Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2578232 Reviewed-by: Diana Z <dzigterman@chromium.org>
* adlrvp:Split the ADLRVP board filesPoornima Tom2021-01-157-425/+481
| | | | | | | | | | | | | | | | | | Common ADL RVP configuration and ITE8xx EC controller specific configuration are placed separately in two different files. This will help in easier porting of board files for different EC vendors who use MECC connector. BRANCH=none BUG=none TEST=ADLRVP-P & ADLRVP-M with ITE EC boot to OS. Signed-off-by: Poornima Tom <poornima.tom@intel.com> Change-Id: I6ec9aa216aeb3d552d355f31d6ec4361345c85ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2626805 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* Delbin: undef CONFIG_SYSTEM_UNLOCKEDZhuohao Lee2021-01-151-1/+1
| | | | | | | | | | | | | | | We're going to qualify the firmware. So, undef CONFIG_SYSTEM_UNLOCKED. BUG=b:174960831 BRANCH=firmware-volteer-13672.B TEST=make BOARD=delbin check the .config Change-Id: I2fbe0076ecf9bfc894b7da1ee449f7d6142e5c0c Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627540 Commit-Queue: YH Lin <yueherngl@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* morphius: update gpio settingZick Wei2021-01-151-1/+1
| | | | | | | | | | | | | | | This CL update gpio fan_id internal pull high. BUG=b:177479429 BRANCH=zork TEST=make sure EC read fan id as intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I0c97f279e1f24543f4ce804409fdedf1fe0ec074 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2607210 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org>
* servo_v4p1: Add driver for power managementJan Dabros2021-01-148-0/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the power source and loads, the servo_v4p1 may have insufficient wattage available. New driver gathers information about available inputs, monitors power consumed and sets alert when a threshold is crossed. For servo_v4p1 there are two main power sources - host USBC port and servo charger port. Host connection operates on 5V and may allow up to 500mA(USB2.0), 900mA(USB3.0), 1500mA(BC1.2 or USB-C) or 3000mA(USB-C). Servo charger port currently offers only standard USB-C wattage - 1500mA/5V or 3000mA/5V. There is a possibility that in future PD will be enabled on this port, thus enabling higher wattages. Algorithm queries host connection capabilities (including BC1.2) and servo charger port connection settings, with charger port being always a primary selection. INAXX chip is used to monitor level of consumed power and notification is send to the user, when threshold is reached. In future servod should be used as a channel for alerts notification. BUG=b:144776402 BRANCH=master TEST=Test various connections for input power to servo_v4p1 - USB2.0 host/cable, USB3.0, BC1.2 enabled/disabled, servo charger with different Rp/Rd settings, also hot plugging servo charger. Provide different loads to servo - pendrives, DUT connection and DisplayPort. Monitor power used by servo and loads (either by external power meter or compile-in INA_CMD). When threshold is reached, one should see "System full power threshold exceeded" on the servo console. Default threshold is set to 90% of power. For example on USB2.0 connection (500mA at max) and assuming 5V is provided to VCC rail, warning should appear when drawing 500mA * 9/10 = 450m. Keep in mind though that actual alert is configured on power over limit mode (not current), thus there may be some differences when there is no ideal 5V on a tested connection. Signed-off-by: Jan Dabros <jsd@semihalf.com> Change-Id: I1099192fa7475b51922e9dcb272f812d1547f311 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2592495 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Revert "asurada_scp: disable LTO"Tzung-Bi Shih2021-01-141-0/+1
| | | | | | | | | | | | | | | | | Re-enables LTO. This reverts commit 57d3da117f3bcf9b584fd2096b9fb672c04a6e5d. BRANCH=none BUG=b:176959740 TEST=make BOARD=asurada_scp Cq-Depend: chromium:2624369 Change-Id: I16622d15a701e046fbb16bc98a3bcec9da7a11bf Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2623314 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* juniper: Add base accel/gyro config for icm-428xxDavid Huang2021-01-143-4/+107
| | | | | | | | | | | | | Add icm-426xx config for new second source base accel/gyro. BUG=b:175362114 BRANCH=main TEST=Check ectool motionsense and get x,y,z data. Change-Id: Iaac816b5a9e4bda20e9fd95228b244d0db27ee29 Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2623870 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* copano: Update LED behavior functionJacky Wang2021-01-141-2/+2
| | | | | | | | | | | | | | | Update LED behavior by Marketing spec. Modify DC mode S3 LED behavior to blinking white LED 1s on / 3s off. BUG=b:176434090 BRANCH=firmware-volteer-13672.B TEST=make BOARD=copano Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Change-Id: I180e4896a503e39d681c7762a4fb2b317b16b1a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2626788 Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* asurada: lower hook priority for update_rotation_matrixYilin Yang2021-01-141-2/+2
| | | | | | | | | | | | | | | | | | | | If we don't lower the priority, it may get the wrong board id. Then it won't update the rotation matrix. 1. priority 1: update board id value 2. priority 2: update rotation matrix BUG=b:177384512 TEST=DUT can pass all sensor related tests in factory toolkit BRANCH=none Signed-off-by: kerker <kerker@chromium.org> Change-Id: Ie11f084375de6ec9f30c093051d48773931c32e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2626804 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Yilin Yang (kerker) <kerker@chromium.org> Tested-by: Yilin Yang (kerker) <kerker@chromium.org>
* sasuke: Enable USB-A VbusYongBeum.Ha2021-01-143-2/+16
| | | | | | | | | | | | | | | | CONFIG_USB_PORT_POWER_SMART for enabling/disabling charging from USB-A ports. BUG=b:172104731, b:172309597 BRANCH=dedede TEST=make BOARD=sasuke and make sure USB-A port works. Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I291a642ad5f3dbd9abb80b615f4dc6e02d73685a Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2612224 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Coachz: board rev 2+ changed the TCPC part from PS8805 to PS8755gaochao2021-01-132-0/+11
| | | | | | | | | | | | | | | | | EC firmware picks the correct driver based on the board ID BRANCH=Trogdor BUG=b:172952070 TEST=make BOARD=coachz -j flash ec and check TYPE-C base function Signed-off-by: gaochao <gaochao@huaqin.corp-partner.google.com> Change-Id: Iefedb6cfcff99f406bd1bb1e136433a1e4cd28d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2540068 Reviewed-by: Gang He <hegang5@huaqin.corp-partner.google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com> Tested-by: Gang He <hegang5@huaqin.corp-partner.google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>
* board/genesis: Backport LTC4291 power-over-ethernet changes fromNeill Corlett2021-01-135-3/+273
| | | | | | | | | | | | | board/endeavour BUG=b:173566309 TEST=Connected a PoE device to my EVT1; tried pse # on/off commands Change-Id: I1f6a28d96c987787b1d5b21cdfe530c287cd6881 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2624928 Tested-by: Neill Corlett <corlett@google.com> Commit-Queue: Neill Corlett <corlett@google.com> Reviewed-by: Matthew Ziegelbaum <ziegs@chromium.org>
* metaknight: Ignore 5V GPIO remapAseda Aboagye2021-01-131-14/+19
| | | | | | | | | | | | | | | | | | | | Early versions of waddledoo had to have their 5V GPIO remapped between versions. As variants of waddledoo are created, they end up copying the same code which is not applicable to their board. This commit restricts the remap to the waddledoo board only. BUG=None BRANCH=dedede TEST=`make -j BOARD=metaknight` Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: Id4903ea492753666725fbc03cc24eab2b9017150 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2625796 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Auto-Submit: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* magolor: Ignore 5V GPIO remapAseda Aboagye2021-01-131-14/+19
| | | | | | | | | | | | | | | | | | | | Early versions of waddledoo had to have their 5V GPIO remapped between versions. As variants of waddledoo are created, they end up copying the same code which is not applicable to their board. This commit restricts the remap to the waddledoo board only. BUG=None BRANCH=dedede TEST=`make -j BOARD=magolor` Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: Ie9e88f89fc1ea1ef8869c8ff8788fd7d9f85ca84 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2625795 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Auto-Submit: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>