summaryrefslogtreecommitdiff
path: root/board/beadrix
Commit message (Collapse)AuthorAgeFilesLines
* charger: Move charger_state_v2.h into charge_state.hSimon Glass2023-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | We don't have a v1 anymore, so the name makes no sense. Move it into the existing file. Include charge_state.h instead of v2, doing this in the same change to avoid build errors. This makes no functional change. BUG=b:218332694 TEST=make buildall Change-Id: Ic3e3adc45e4d002c2cd5ba8aa65e24686e01d628 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4516191 Reviewed-by: Tim Van Patten <timvp@google.com> Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Yuval Peress <peress@google.com>
* charger: Rename charge_get_state() to led_pwr_get_state()Simon Glass2023-05-111-1/+1
| | | | | | | | | | | | | | | | | | We have a new 'charge state' in struct charge_state_data as part of the charge_state_v2.h file. This is confusing. Rename this function to match the enum it is referencing. This makes no functional change. BUG=b:218332694 TEST=make buildall Change-Id: I7f08dd4fb11e2939e0ef779018c1e3206ebc8d20 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4516188 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Aaron Massey <aaronmassey@google.com>
* beadrix: Support POW-TECH batterygavin.lee2023-04-212-0/+30
| | | | | | | | | | | | | | | | | Add second source battery POW-TECH SG20JL1C2S5900-P1P BUG=b:273842037 TEST=emerge-dedede chromeos-ec , read battery info via EC console BRANCH=none Signed-off-by: Owen Yang <owen.yang@ecs.corp-partner.google.com > Change-Id: I0a7a5fbb0c64713f75d0449954c1a9b97ffdacb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4349273 Tested-by: Owen Yang <owen.yang@ecs.corp-partner.google.com> Reviewed-by: Ivan Chen <yulunchen@google.com> Commit-Queue: Ivan Chen <yulunchen@google.com> Reviewed-by: Owen Yang <owen.yang@ecs.corp-partner.google.com>
* board: Sort header filesJeremy Bettis2022-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | Sort all includes in board with the clang-format rules used by the zephyr project. BRANCH=None BUG=b:247100970 TEST=zmake build -a TEST=./twister --clobber -v -i TEST=make -j72 buildall_only runtests TEST=zmake compare-builds -a Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I6ad72b167cbb768a64c338fa633eb4bf5a401897 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4060360 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
* Add default implementation of board_set_charge_limitPeter Marheine2022-11-241-11/+0
| | | | | | | | | | | | | | | | | | | The majority of boards simply call charge_set_input_current_limit() from board_set_charge_limit() now that the minimum current limit and derating are available as config options. Make this the default behavior of the charge manager, overridable by boards as needed. Boards that have existing custom behavior retain it, with their versions of board_set_charge_limit() marked as __override as necessary. BUG=b:163093572 TEST=make buildall; zmake build -a BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I72475ca0e8381596cafbcda4b042c7f884ae0432 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4022857 Reviewed-by: Keith Short <keithshort@chromium.org>
* Add CONFIG_CHARGER_MIN_INPUT_CURRENT_LIMITPeter Marheine2022-11-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This splits the dual use of CONFIG_CHARGER_INPUT_CURRENT into two different symbols, changing the uses of that which are used to set a minimum current limit to be CONFIG_CHARGER_MAX_INPUT_CURRENT_LIMIT. Most boards implement this in the same way within either the board or baseboard, so handling of the new option is moved into charge_set_input_current_limit (which is called by every user of the option) and every board which repeated this pattern has the new symbol set to the same value as the old one, with the duplicated code deleted. One functional change to the charge manager is made: when charging stops, the input current limit is set to the default value (CONFIG_CHARGER_INPUT_CURRENT) rather than 0. This captures the intent that the default current is appropriate at any time, which was previously configured by individual boards' implementation of board_set_charge_limit() while still allowing the limit to be set lower as needed. To verify that all changes are appropriate, the following has been manually checked: * All boards with a change to a .c file also have a .h change * All boards without a changed .h file have a changed baseboard.h * For Zephyr projects, those with a changed .c file have config added for the minimum limit and others (only corsola) are unchanged to leave it off. This is intended to verify that each board that duplicated the MAX() logic has its configuration updated to use the shared copy, and that boards with that code in the baseboard also update their configuration. BUG=b:163093572 TEST=make buildall; zmake build -a BRANCH=none LOW_COVERAGE_REASON=added lines will soon be deleted Change-Id: Ia460a16293c1fb82aac3784fd9be57ba0985f2fe Signed-off-by: Peter Marheine <pmarheine@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4019703 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* dedede: usb_mux: Split struct usb_mux in dedede boardsTomasz Michalec2022-09-131-17/+26
| | | | | | | | | | | | | | | | Update dedede boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Ie73f5bc250c436a2d72fdfb4c8f8707f05fba9f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779623 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com>
* Update license boilerplate text in source code filesMike Frysinger2022-09-1210-10/+10
| | | | | | | | | | | | | | | Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BRANCH=none BUG=chromium:1098010 TEST=`repo upload` works Change-Id: Icd3a1723c20595356af83d190b2c6a9078b3013b Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891203 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* beadrix: Remove the bring-up featuresTeddy Shih2022-08-221-2/+1
| | | | | | | | | | | | | | Remove all the bring-up features. BRANCH=main BUG=b:241856397 TEST=on beadrix, validate by beadrix can start up properly. Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: I669cc5bd6c3f6b2bf4b96162ba4fd146d079553a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3841543 Commit-Queue: Ivan Chen <yulunchen@google.com> Reviewed-by: Ivan Chen <yulunchen@google.com>
* charge_state: Add PWR_STATE_FORCED_IDLE stateParth Malkan2022-08-181-10/+9
| | | | | | | | | | | | | | | | | | Add PWR_STATE_FORCED_IDLE state which indicates PWR_STATE_IDLE state is forced when charge control is not normal. Also update led.c files for boards to replace chflag use with new PWR_STATE_FORCED_IDLE. BUG=b:241167493 TEST=make buildall, zmake build --all, make runhosttests -j BRANCH=None Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3807136 Change-Id: Ib00ed3df977482a4430b0c3d16a2a0e305bbd47f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3807134 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* dedede: limit PD voltage to 15V for boards with SM5803Peter Marheine2022-07-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | Silicon Mitus have stated that the SM5803 may be damaged by voltage spikes on VBUS in excess of 20V, and recommended that VBUS above 15V not be used to prevent damage. Although dedede configures the max PD power to 45W which will usually result in 15V@3A maximum, 20V@2.25A is also a valid choice that would be dangerous. Boards that do not use the SM5803 are unchanged, but the setting must now be specified for each board because it is not uniform across all dedede boards. BUG=b:230712704 TEST=make buildall BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I5b2359fc2720ef0b5a7f2480ff67e0e821c378ad Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3778900 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* clang-format: Ran clang-format on all files againJack Rosenthal2022-07-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | A number of files have had non-compliant changes uploaded since all files were formatted. Likely, the changes were uploaded before CL:3751770, so the author would not have seen any pre-upload failures. Re-format these files. This CL was generated via: clang-format -i $(find -name '*.[ch]' -type f -not -path '*third_party*') BUG=b:236386294 BRANCH=none TEST=none Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Iedad17d13c29f45c7601d43f7fa2ce3215cc678e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3751462 Commit-Queue: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* board/beadrix/board.h: Format with clang-formatJack Rosenthal2022-07-071-2/+3
| | | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Tricium: disable Change-Id: If53dc2662c215f19e841c700f8160eb2e7dd2f44 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3748791 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* beadrix: board_set_active_charge_port cleanupIvan Chen2022-07-071-14/+15
| | | | | | | | | | | | | | Skip unnecessarily port disabling to avoid PD timer expiration due to TCPC re-init BUG=b:234304246 TEST=emerge-dedede chromeos-ec, charging test with two beadrix setup BRANCH=none Change-Id: Iafbdb62abbc56880d20bcfb1492f378ca4f8c3f3 Signed-off-by: Ivan Chen <yulunchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3714689 Reviewed-by: Diana Z <dzigterman@chromium.org>
* board/beadrix/board.c: Format with clang-formatJack Rosenthal2022-07-011-115/+100
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I3e4ca1620649843ff1aeeb869bf41d40073006a2 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728005 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/beadrix/usb_pd_policy.c: Format with clang-formatJack Rosenthal2022-07-011-2/+2
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I149071e6ed3fddca61111cf4c3f6d519d4ca3ccd Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728026 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/beadrix/led.c: Format with clang-formatJack Rosenthal2022-06-301-8/+6
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ia6dd04fd50bf6535f2058f79a3eb1b9dd4a956b4 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728029 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/beadrix/cbi_ssfc.h: Format with clang-formatJack Rosenthal2022-06-291-1/+0
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ie381d09215e2a0caf64ef4a571a168866346b151 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728028 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/beadrix/cbi_ssfc.c: Format with clang-formatJack Rosenthal2022-06-281-2/+2
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I7544d6cd48e77a07186ec9c7a75f34e0310190ec Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728027 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/beadrix/board.h: Format with clang-formatJack Rosenthal2022-06-281-16/+13
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I9afaf348615edd7b928a2b69644a4a3cd00c954d Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728006 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* beadrix: Update EC gpio pin of unused pins and corrected nameTeddy Shih2022-06-094-113/+3
| | | | | | | | | | | | | | | | | | | | | Update EC GPIO setting of unused pins and corrected name according to beadrix schematics. As well, remove code of non-existing accelerometer and gyroscope setting. GPIOJ0 : lsm6dsm_interrupt -> NC (BASE_SIXAXIS_INT_L) GPIOJ1 : TP62 -> NC (PEN_DET_ODL) GPIOJ3 : EN_KB_BL -> IMVP9_PE BRANCH=main BUG=b:235010984 TEST=on beadrix, validated by beadrix working properly. Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: Ib225e28fc17767af6466d3bf616732827078fd6e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3688153 Commit-Queue: Ivan Chen <yulunchen@google.com> Tested-by: Ivan Chen <yulunchen@google.com> Reviewed-by: Ivan Chen <yulunchen@google.com>
* beadrix: Update retimer of daughter boardTeddy Shih2022-06-071-0/+89
| | | | | | | | | | | | | | Update retimer of daughter board to tune signals according measurement. BRANCH=main BUG=b:235182557 TEST=on beadrix, validated by beadrix working on USB and DP functions. Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: I47e1c7854892aef5ebb3c4f7576a4fa2cb621e03 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3690203 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Ivan Chen <yulunchen@google.com>
* usbc: wrap task_set_event to have an explicit port argumentFabio Baltieri2022-05-271-2/+2
| | | | | | | | | | | | | | | | | Define an explicit function to set events for the usb charger tasks, so that the caller is not coupled to the internal task implementation, and we can use a single task on a later patch. BRANCH=none BUG=b:226411332 TEST=make buildall TEST=zmake testall TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I7a1223642b800568bf4f9864f75b2b647c84d29f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3663746 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* beadrix/pirika/waddledee/wheelie: Add CONFIG_ACCEL_LSM6DSM_INT_EVENTGwendal Grignou2022-05-231-0/+2
| | | | | | | | | | | | | | | | | | | board.h was missing this define. The error was hidden since CONFIG_ACCEL_LSM6DSM_INT_EVENT was defined to 0 only in LSM6DSM driver when not found. See commit 55dc3bb5577 ("driver: lsm6dsm: Allow building without CONFIG_ACCEL_FIFO") These boards are canceled projects, so it does not impact any devices. BUG=b:230401133 BRANCH=asurada,dedede,brya TEST=Build all. Check Zephyr with herobrine. Check on bugzzy. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I402e2a14b7d44623f859092875085b9928ef9821 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3609123 Reviewed-by: Yuval Peress <peress@google.com>
* board/baseboard: Remove ACCEL_INTERRUPTSGwendal Grignou2022-05-231-1/+0
| | | | | | | | | | | | | | Use a finer grain set of define, to allow some sensors to use interrupt when wired properly and some use force mode when not using interrupt. BUG=b:230401133 BRANCH=asurada,dedede,brya TEST=Build all. Check Zephyr with herobrine. Check on bugzzy. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I9c7d50b88a0eaec017f4e5e2ccfdb80761d71fb3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3609121 Reviewed-by: Yuval Peress <peress@google.com>
* beadrix: Update EC gpio pin of EC_ENTERING_RWTeddy Shih2022-04-222-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | To ensure EC notices H1 via EC_ENTERING_RW signal when EC is jumping from RO to RW according to mainboard schematic, we add an EC gpio C7 pin of EC_ENTERING_RW2. Refer to Google Dio comment at (b:228938759) "The workflow is: 1) When EC is jumping from RO to RW, it asserts EC_ENTERING_RW signal to H1 2) Once H1 see the rising edge of EC_ENTERING_RW, it asserts EC_IN_RW_OD high to notify AP" and Google Ivan comment about CL of 2734058: Boten: Reroute EC_ENTERING_RW to GPC7 https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/ 2734058 BRANCH=main BUG=b:228938759 TEST=on beadrix, validate firmware_DevMode single manual test pass. Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: I39434860f54daf4ff8a8693effdcb9b061fe885a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3598693 Reviewed-by: Ivan Chen <yulunchen@google.com> Commit-Queue: Ivan Chen <yulunchen@google.com> Tested-by: Ivan Chen <yulunchen@google.com>
* beadrix : Update lid sensorTeddy Shih2022-03-233-37/+1
| | | | | | | | | | | | | | | | | | As Beadrix project does not have tablet mode capability, we disable unused lid sensor gpio pin, CONFIG_TABLET_MODE, and CONFIG_LID_ANGLE according to schematic. BRANCH=main BUG=b:226296636 TEST=on beadrix, tablet mode will not be lanuched via Lid sensor. Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: Ib9201f90996c71481c94d1ef0485dfdac9485f0f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3544874 Reviewed-by: Ivan Chen <yulunchen@google.com> Commit-Queue: Ivan Chen <yulunchen@google.com> Reviewed-by: Super Ni <super.ni@intel.corp-partner.google.com> Commit-Queue: Super Ni <super.ni@intel.corp-partner.google.com>
* beadrix: Support battery protection for low voltage chargeTang Qijun2022-01-241-0/+1
| | | | | | | | | | | | | | | | | | Battery voltage is lower than voltage_min, precharge voltage & current are supplied and charging will be disabled after CONFIG_BATTERY_LOW_VOLTAGE_TIMEOUT seconds BRANCH=None BUG=b:215658820 TEST=Keep the battery voltage below 6V and charge it for more than 30 minutes. The system stops the charging function and the charging current is zero. Signed-off-by: Tang Qijun <qijun.tang@ecs.corp-partner.google.com> Change-Id: I77375e59f3c6b131a1002718b4914a35270eefa6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3411683 Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Beadrix: Initial TCPC configurationTeddy Shih2022-01-205-199/+230
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For project Beadrix, 1. Initial motherboard Type-C configurations. a. (TCPC + Changer) config to RAA489000ARGNP#HA0. b. MUX config to IT5205FN/BX c. No redriver on 2 .Initial daughterboard Type-C configurations. a. (TCPC + Changer) config to RAA489000ARGNP#HA0. b. MUX only config to ANX3447QN-AC-R (use anx7447 driver instead). c. Redriver config to NB7VPQ904M. BUG=b:204882915 BRANCH=main TEST=make -j BOARD=beadrix 1. Plug battery on motherboard side and check motherboard of PD USB Type C0 Display Port (DP) and external USB disk (USB C0 Data) have proper functionalities. 2 .Plug-AC and battery on motherboard side and check daughterboard of PD USB Type C1 Display Port (DP) and external USB disk (USB C1 Data) have proper functionalities. Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: I5bae7aacd2bf86707a060b73ba6cb90d6a25ef18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3386494 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* beadrix: Initialize the vivaldi keyboardTeddy Shih2022-01-101-0/+27
| | | | | | | | | | | | | | | | | | Initialize the vivaldi keyboard. BUG=b:204882915, b:212561859 BRANCH=None TEST=Manual 1. evtest, make sure the keycode is correct. 2. Check F1 to F10 function. 3. Check F2 + power button (EC reboot). 4. Check ESC + F2 + power button. Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: Ifa619e304153c1cd383f4b8e874e4885f77e3339 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3369845 Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
* beadrix: Implement charging LEDsTeddy Shih2021-12-304-82/+132
| | | | | | | | | | | | | | | | | | | | | | LED behavior: Charging | Red on (S0/S3/S5) Full Charged | Blue on (S0/S3/S5) Discharging S3 | Red on 1 sec, off 3 sec Discharging S5 | off Error | Red on 1 sec, off 1 sec Discharging S0 | Blue on Factory mode | Blue on 2 sec, Red on 2 sec BUG=b:204882915 BRANCH=None TEST=make BOARD=beadrix check led behavior in every state on beadrix Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: Ibd828447c1c031bef419d619d2b8cfb1a8fe7e9e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3360329 Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
* beadrix: Modify battery informationTeddy Shih2021-12-302-293/+21
| | | | | | | | | | | | | | Modify battery information for beadrix. BUG=b:204882915 BRANCH=None TEST=make BOARD=beadrix Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: I779fdadec3ea941ed4d1f7c034bb5090f68942cf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3360321 Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
* beadrix: Initial EC imageTeddy Shih2021-12-2111-0/+1500
Create the initial EC image for the beadrix 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:204882915 BRANCH=None TEST=make BOARD=beadrix Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: I5ffdc15704688a8f5195c38809338625a7293f14 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3288344 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>