summaryrefslogtreecommitdiff
path: root/board/garg/board.h
Commit message (Collapse)AuthorAgeFilesLines
* Update license boilerplate text in source code filesMike Frysinger2022-09-121-1/+1
| | | | | | | | | | | | | | | 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>
* board/garg: Free up more flash spaceTom Hughes2022-07-151-0/+1
| | | | | | | | | | | | | | | | | | | | | Before: RO: 192 bytes in flash and 30848 bytes in RAM still available RW: 284 bytes in flash and 30848 bytes in RAM still available After: RO: 736 bytes in flash and 30880 bytes in RAM still available RW: 860 bytes in flash and 30880 bytes in RAM still available BRANCH=none BUG=b:238433667 TEST=make buildall Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I0d940ab2124f657f8b70c7d96f7dd24bf67622c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3765446 Reviewed-by: Diana Z <dzigterman@chromium.org>
* board/garg/board.h: Format with clang-formatJack Rosenthal2022-06-291-19/+12
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: Id31ddabdddd0ad0bf8de522b7414e41a808ca718 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728390 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* garg: support imu bmi260Zick Wei2022-05-161-0/+3
| | | | | | | | | | | | BUG=b:231646511 BRANCH=firmware-octopus-11297.B TEST=verified on rework garg DUT, BMI260 work as intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I652d62c68f1cf8f305c467772c31f58eb2cd42a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3640829 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
* garg: reduce flash usageZick Wei2022-05-161-4/+0
| | | | | | | | | | | | | BUG=none BRANCH=firmware-octopus-11297.B TEST=make BOARD=garg Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I80bd23049912d9fb00045c2d36bfca2d88c32ede Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3640830 Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
* garg: Add Simplo 916QA152H batteryDevin Lu2022-04-021-0/+1
| | | | | | | | | | | | BUG=b:215280830 BRANCH=firmware-octopus-11297.B TEST=1. Verify battery is able to charge/discharge. 2. Verify battery cutoff. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I7102acf072a2b32ac7be434d438140124442e0ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3552000 Reviewed-by: Diana Z <dzigterman@chromium.org>
* board: Rename RSMRST_L_PGOOD as PG_EC_RSMRST_ODLfirmware-chameleon-14280.B-mainDivya Sasidharan2021-10-121-0/+2
| | | | | | | | | | | | | | | | | GPIO_RSMRST_L_PGOOD is also used as GPIO_PG_EC_RSMRST_ODL creating redundancy. Removing it will help need for redefinitions for zephyr. Remove reference to GPIO_RSMRST_L_PGOOD in zephyr BUG=b:200975143 BRANCH=main TEST=make buildall -j, boot up on brya Change-Id: Iff46595174c54db347b69cff3ad9e266ba9fd535 Signed-off-by: Divya Sasidharan <divya.s.sasidharan@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3180808 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* garg: Remove keyboard backlight supportDevin Lu2021-09-171-9/+0
| | | | | | | | | | | | | | | Garg does not support keyboard backlight. Remove this feature to free up flash space BUG=none BRANCH=none TEST=make BOARD=garg Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Iafeb208440caf8fde6067821aa156ede57acd888 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3159426 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* garg: Enable CONFIG_LTORob Barnes2021-09-131-0/+3
| | | | | | | | | | | | | Enable CONFIG_LTO (link time optimizations) to free up flash space. BUG=None TEST=Build garg BRANCH=None Change-Id: I408adabb9e887a86d319f67f75b159f2af832ffe Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3157759 Reviewed-by: Diana Z <dzigterman@chromium.org>
* garg: Add 2nd base accelerometerDevin Lu2021-08-031-0/+5
| | | | | | | | | | | | | This patch adds a 2nd base accelerometer icm-40608. BUG=b:194632295 BRANCH=firmware-octopus-11297.B TEST=watch ectool motionsense Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I99716c34b8519447db7fe9903904046d216ae7e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3067144 Reviewed-by: Diana Z <dzigterman@chromium.org>
* keyboard_scan: Add consts needed for factory test to headerRob Barnes2021-07-281-2/+0
| | | | | | | | | | | | | | | | | Add keyboard_factory_scan_pins and keyboard_factory_scan_pins_used to keyboard_scan header so they do not need to be declared as extern by individual boards. These constants need to be defined if CONFIG_KEYBOARD_FACTORY_TEST is enabled. BUG=None TEST=Build BRANCH=None Change-Id: I1a100f626b3cea251ca72703d17b2d27db0f8f28 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3053101 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* garg: Add simplo 916QA141H batteryDevin Lu2021-04-151-0/+1
| | | | | | | | | | | BUG=b:184920909 BRANCH=firmware-octopus-11297.B TEST=Test on charging/discharging/battery cut off pass. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I80d15bdef79e8e228c68d866c32e87d445bcf28e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817139 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Define board_override_features_flags APIs as overridablednojiri2019-12-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | Currently board_override_features_flags0/1 are enabled by CONFIG_EC_FEATURE_BOARD_OVERRIDE. This patch defines the callbacks as overridable. It will allow us to remove CONFIG_EC_FEATURE_BOARD_OVERRIDE and the redundancy it incurs. Signed-off-by: dnojiri <dnojiri@chromium.org> BUG=none BRANCH=none TEST=buildall Change-Id: I0c2870b746879b272ada35b9615b611627a9f426 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1951810 Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Auto-Submit: Daisuke Nojiri <dnojiri@chromium.org>
* garg: add simplo BYD 916Q2294H batteryDevin Lu2019-07-241-1/+2
| | | | | | | | | | | BUG=b:135986521,b:136786005 BRANCH=octopus TEST=Test on charging/discharging/battery cut off pass. Change-Id: Idda1c4bc027b44980e047dc89ccae3c26e23cfbe Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1710208 Reviewed-by: Marco Chen <marcochen@chromium.org>
* garg: add simplo 916Q2286H batteryDevin Lu2019-05-301-0/+1
| | | | | | | | | | | | | | | | Garg is using the same battery as blacktip(CL:807967). BUG=b:133125112 BRANCH=octopus TEST=make buildall -j Change-Id: I1624517ee5e2f9eb9ffec204d2c39b85728fc8de Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/1634630 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* garg: initial EC imageDevin Lu2019-05-231-0/+107
This image is based on bobba PVT from ToT and SKUID is TBD. BUG=b:132668378 BRANCH=octopus TEST=make buildall -j Change-Id: I6471b4ec2cf49d682483782384114594f62f916d Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/1616892 Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>