summaryrefslogtreecommitdiff
path: root/board/eldrid/board.h
Commit message (Collapse)AuthorAgeFilesLines
* ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ishJack Rosenthal2021-11-051-183/+0
| | | | | | | | | | | | | | | | | | | | | | In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* eldrid: dropping eldrid_npcx796stabilize-14150.882.B-mainstabilize-14150.74.B-mainstabilize-14150.64.B-mainstabilize-14150.43.B-mainstabilize-14150.376.B-mainrelease-R94-14150.B-mainYH Lin2021-08-121-5/+0
| | | | | | | | | | | | | eldrid_npcx796 variant is only used for EVT and hence deprecated. BRANCH=firmware-volteer-13672.B BUG=b:196059702 TEST=make BOARD=eldrid Signed-off-by: YH Lin <yueherngl@chromium.org> Change-Id: I6b593b8b412674fa4330fa4fe30d0c522fea3a69 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088585 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
* Eldrid: Free space on NPCX796 boardDiana Z2021-08-111-0/+3
| | | | | | | | | | | | | Remove the PD PRL debug strings in order to free up space on this board. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Id8deceaf28ffbecbe6ce1d9accdf66726d7af9d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078408 Reviewed-by: Keith Short <keithshort@chromium.org>
* LED On/Off: Remove power LED configDiana Z2021-04-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | Move the LED on/off module towards using a more flexible LED support approach. Define a weak power LED table and setter for boards to override when needed. Note that during run-time these functions will not get called since led_auto_control_is_enabled() will return false for nonexistent LEDs. This consumes an average of 165 additional bytes of flash space on boards which do not use a power LED. BRANCH=None BUG=b:185508707 TEST=make -j buildall, load on guybrush (battery LED only) and confirm no errors are seen. Load on Boten (both LEDs) and confirm behavior appears normal Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iaa1e22a7f5d8be39eb8792ee13d358087d7f7482 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832691 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* eldrid: remove CONFIG_SYSTEM_UNLOCKEDScott Chao2021-02-011-1/+1
| | | | | | | | | | | | | Going to qualify the firmware, so undef CONFIG_SYSTEM_UNLOCKED. BUG=b:178993288 BRANCH=firmware-volteer-13672.B-master TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I5be23936e47970a3534026fc12befbaaf3507d95 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662856 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
* config: Provide default VCONN Swap delayAbe Levkoy2021-01-221-1/+0
| | | | | | | | | | | | | | | | | 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-221-1/+1
| | | | | | | | | | | | | | | | | | | | | 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>
* eldrid: add support CONFIG_USB_PD_EXTENDED_MESSAGESScott Chao2020-12-161-3/+0
| | | | | | | | | | | | | Eldrid support PD 3.0, so remove undef to support related commend. BUG=b:175519100 BRANCH=firmware-volteer-13521.B-master TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ie0121e213a071ed1346c34486911ecb41baa9805 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2594728 Reviewed-by: Keith Short <keithshort@chromium.org>
* eldrid: fix eldrid_npcx796fc nameScott Chao2020-12-161-1/+1
| | | | | | | | | | | | | | change eldrid_npcx796fc to eldrid_npcx796 to meet config.star. BUG=b:173754312 BRANCH=firmware-volteer-13521.B-master TEST=make buildall TEST=Boot up on Eldrid Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: If8025ce4e512c00722a269eeb57643218723915b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2592530 Reviewed-by: Keith Short <keithshort@chromium.org>
* eldrid: add npcx7m7fc support and backward support npcx7m6fc.Scott Chao2020-12-011-0/+7
| | | | | | | | | | | BUG=b:173754312 BRANCH=firmware-volteer-13521.B-master TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I7ce77a6813a977612b5c804cb335add419ac80b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2550117 Reviewed-by: Keith Short <keithshort@chromium.org>
* usb: Remove references to usb23Caveh Jalali2020-11-061-11/+0
| | | | | | | | | | | | | | | | | The TCSS port mapping is not used by the EC and the higher layers no longer query the EC for this mapping. We can remove this feature and disable CONFIG_INTEL_VIRTUAL_MUX which was added to enable it. BRANCH=none BUG=b:153941950 TEST=buildall passes Change-Id: I2d7f51212f3e64d74827d7f82654eb93534b8db4 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2427632 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Commit-Queue: Keith Short <keithshort@chromium.org>
* eldrid: add battery low LED supportScott Chao2020-11-061-0/+1
| | | | | | | | | | | | | | | | When battery low(RSOC<10%), battery led should flick. BUG=b:165875385 BRANCH=volteer TEST=make -j BOARD=eldrid TEST=make buildall TEST=test on eldrid when battery low. Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I1efa9157cd7313ff4c13ff066dbf217a9b305640 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2519237 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
* COIL: Rename CONFIG_I2C_CONTROLLERDiana Z2020-11-051-1/+1
| | | | | | | | | | | | | Rename CONFIG_I2C_CONTROLLER and related comments. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ied6a1829bf54a5c9a32e6772982a4b8aa31aaf23 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2518659 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* eldrid: disable CONFIG_KEYBOARD_VIVALDIScott Chao2020-10-301-0/+7
| | | | | | | | | | | | | | | | | | | Disable Vivaldi keyboard since Vivaldi currently does not allow for side volume buttons to be distinguished from keyboard volume F9/F10 keys. This is necessary so that Chrome can ignore F9/F10 in tablet mode, but side volume buttons still work. BUG=b:171815391 BRANCH=volteer TEST=make -j BOARD=eldrid TEST=make buildall TEST=test on eldrid, side-buttons work in clamshell/tablet mode and that F9/F10 only work in clamshell. Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I168521d80e1ff1e4103485a8c25c440cb5b08ce9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2503749 Reviewed-by: Keith Short <keithshort@chromium.org>
* volteer: remove volteer_tcpmv1Keith Short2020-10-161-8/+0
| | | | | | | | | | | | | | | The volteer_tpcmv1 AP image has been removed, so the EC build based on the TCPMv1 stack is no longer needed. BUG=b:170658751 BRANCH=none TEST=make buildall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I8c5c3ffc95a588d4f24846eac3558184add9a444 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2481224 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
* Revert "volteer: Move USB PID to board files"Abe Levkoy2020-09-281-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6ed9b65ae38977118f0d5f02d6f5c61da23c5f24. Reason for revert: Historically, Octopus variants used the baseboard VID and PID. Original change's description: > volteer: Move USB PID to board files > > Add TODOs to update variants boards. > > BUG=none > TEST=make buildall > BRANCH=none > > Signed-off-by: Abe Levkoy <alevkoy@chromium.org> > Change-Id: If0d8d0dd544c06114f355dcf281b2841a8397aee > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2417348 > Reviewed-by: Keith Short <keithshort@chromium.org> BUG=b:168826898,b:168827570,b:168827133,b:168827128,b:168827420 BUG=b:168827418,b:168826886,b:168826868,b:168827029,b:168826914 Change-Id: I5b9b1cee25e34a4b922fd604b49deabc9591b4e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2431687 Tested-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
* eldrid: initialize sensor supportScott Chao2020-09-231-13/+4
| | | | | | | | | | | | | | | | We have base BMI160 and lid BMA253 sensor. And we don't have light TCS3400 sensor. BUG=b:168730131, b:168730132, b:168728793, b:168728795, b:168886898 BRANCH=none TEST=make -j BOARD=eldrid TEST=make buildall TEST=check ectool motionsense and check i2cscan. Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I7d4a6e63015234dae79bfe7be0111ed9c66614fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2416470 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* eldrid: remove USB4 supportScott Chao2020-09-211-8/+4
| | | | | | | | | | | | | | We don't support USB4 and bb retimer. BUG=b:168862153 BRANCH=none TEST=make -j BOARD=eldrid TEST=make buildall Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ifc0b1b239812b1cf690691f4c90eb96f05e370a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2417786 Reviewed-by: Keith Short <keithshort@chromium.org>
* volteer: Move USB PID to board filesAbe Levkoy2020-09-181-0/+2
| | | | | | | | | | | | | Add TODOs to update variants boards. BUG=none TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: If0d8d0dd544c06114f355dcf281b2841a8397aee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2417348 Reviewed-by: Keith Short <keithshort@chromium.org>
* eldrid: add custom fan controlScott Chao2020-09-151-0/+1
| | | | | | | | | | | | | | | This is an initial version. Also disable fan when enter S0ix. BUG=b:167931578 BRANCH=none TEST=make -j BOARD=volteer TEST=make buildall TEST=verify by thermal team Change-Id: I146caf056486709763d2793e9c43b6e713bf87e0 Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2393408 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* Eldrid: Implement LED functionlennon chen2020-09-121-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify LED behavior to meet LED specification 1.Power led: System is S0: White System is suspend/S0ix: blinking white (1 sec on/off) System is S5: Off 2.charger led: Charging: amber on Full charged: white on Discharging: led Off Blinking white (0.4 sec on/off): battery error Blinking white (1 sec on/off): Fuel < 10%, blinking on right side port Blinking amber (1 sec on/off): Force idle for factory BUG=b:165875385 BRANCH=none TEST=Check behavior to meet LED specification TEST=make -j BOARD=eldrid TEST=make buildall Change-Id: I693137e5512e4c8a2f8cac39389bd23e0ca2f2c7 Signed-off-by: lennon chen <lennon_chen@wistron.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2385023 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Commit-Queue: caveh jalali <caveh@chromium.org>
* volteer: Support board-specific TCPC configSamsp_Liu2020-08-261-0/+9
| | | | | | | | | | | | | | | | | | Separate tcpc_config from volteer baseboard to each project board. To meet different configurations on each board. BUG=b:153705222 BRANCH=none TEST=make buildall Change-Id: Iea59518123a542ebe38be195eaf71b4a8f796550 Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2342183 Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com> Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* volteer: Support board-specific currentSamsp_Liu2020-08-261-0/+4
| | | | | | | | | | | | | | | | | | | Separate CONFIG_CHARGER_SENSE_RESISTOR and CONFIG_CHARGER_SENSE_RESISTOR_AC from volteer baseboard to each project board. To meet different configurations on each board. BUG=b:158257062 BRANCH=none TEST=make buildall Change-Id: Ib8290bd54d45054b82d7849e84119d419cbc8586 Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2346088 Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
* Eldrid: Add batteries configurationlennon chen2020-08-251-1/+2
| | | | | | | | | | | | | | | Add batteries: 1.SIMPLO HIGHPOWER battery 2.COSMX battery BUG=none BRANCH=none TEST=make buildall -j Change-Id: Iac959e5e3f0199f616b9ebbeda3aabced82d3ea2 Signed-off-by: lennon chen <lennon_chen@wistron.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2371789 Reviewed-by: caveh jalali <caveh@chromium.org>
* bmi260: move BMI260 init file into .init.rom sectionKeith Short2020-08-201-1/+0
| | | | | | | | | | | | | | | | | | | | | Increases Volteer RO and RW flash spaces by 7088 bytes each. This is the net gain after including the init_rom layer. BUG=b:160330682 BRANCH=none TEST=make buildall TEST=On volteer run "ectool motionsense" and "ectool motionsense lid_angle". Verify both RO and RW images. TEST=Program RO image with predecessor CL:2311268. Program this CL into AP firmware image and verify EC software sync updates to RW image. TEST=Verify BMI260 operation with CONFIG_CHIP_INIT_ROM_REGION disabled using volteer_tcpmv1 board. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I6849b6c9e96756266528b39ab5e53268dce2a13c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2311756 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>
* eldrid: Initial EC imageMiceLin2020-08-121-0/+197
Create the initial EC image for the eldrid variant by copying the volteer reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.0.4). BUG=162115131 BRANCH=none TEST=make BOARD=eldrid Signed-off-by: MiceLin <mice_lin@wistron.corp-partner.google.com> Change-Id: Id458253b4c44d4124f025b014970c7d044760452 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321809 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>