summaryrefslogtreecommitdiff
path: root/board
Commit message (Collapse)AuthorAgeFilesLines
* volteer: configure BC1.2 on type-C ports with DTstabilize-14312.B-mainPeter Marheine2021-10-281-0/+4
| | | | | | | | | | | | | This adopts the recently-added support for PI3USB9201 in Zephyr. BUG=b:202397628 TEST=builds BRANCH=None Change-Id: I87c898a4d1296090c723c2802df7cf3a27991aee Signed-off-by: Peter Marheine <pmarheine@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3246636 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* kano: Change LED control behaviorDavid Huang2021-10-284-90/+60
| | | | | | | | | | | | | Change LED control from pwm to gpio. BUG=none BRANCH=master TEST=Check LED status in each state. Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I640380175fe505348df3c3fa532c392ffa5943d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3244810 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* kingoftown: Implement battery_get_vendor_param to read vendor paramsTommy Chung2021-10-282-0/+5
| | | | | | | | | | | | | | Add CONFIG_BATTERY_VENDOR_PARAM and define specific param regs to get battery CT code. BUG=none BRANCH=trogdor TEST=check `ectool batteryparam` cmd on kingoftown. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: Ib98e1500ac8082568caf7097dec9f10a813da789 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3219978 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* battery: Move battery get/set vendor param to common/battery.cTommy Chung2021-10-2819-162/+31
| | | | | | | | | | | | | | | Since the functions are copied by many boards, move them to common. The specific param regs are defined in each specific boards. BUG=b:203031618 BRANCH=none TEST=make BOARD=burnet/coachz/eve/homestar/kappa/mrbland/quackingstick/ wormdingler. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I77c070663ad3e800ec484bd21865c5d911a2c48b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3220718 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* board/dirinboz,board/gumboz: Fix variable typeTom Hughes2021-10-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When building with clang, it warns: board/dirinboz/led.c:47:6: error: implicit conversion from enumeration type 'enum ioex_signal' to different enumeration type 'enum gpio_signal' [-Werror,-Wenum-conversion] IOEX_C1_CHARGER_LED_AMBER_DB); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ board/dirinboz/led.c:49:6: error: implicit conversion from enumeration type 'enum ioex_signal' to different enumeration type 'enum gpio_signal' [-Werror,-Wenum-conversion] IOEX_C1_CHARGER_LED_WHITE_DB); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ The led variables are used as parameters to gpio_or_ioex_set_level, which takes an int, so just use int so we don't have to cast between types. BRANCH=none BUG=b:172020503 TEST=none Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I16428fbc5ef49f497a3514ac56049e8bd0e40d53 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3243005 Reviewed-by: Diana Z <dzigterman@chromium.org>
* board/felwinter: Fix signal typeTom Hughes2021-10-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | When building with clang, it warns: board/felwinter/usbc_config.c:206:16: error: implicit conversion from enumeration type 'enum gpio_signal' to different enumeration type 'enum ioex_signal' [-Werror,-Wenum-conversion] rst_signal = GPIO_USB_C1_RT_RST_R_ODL; ~ ^~~~~~~~~~~~~~~~~~~~~~~~ When we are mixing gpio_signal and ioex_signal, we should be calling gpio_or_ioex_set_level, which will call gpio_set_level or ioex_set_level, depending on the signal type. BRANCH=none BUG=b:172020503 TEST=none Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Id835a1a31d686bee128e0908d3916f36447f78ec Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3243006 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org>
* board/metaknight: Fix compilation error when using clangTom Hughes2021-10-271-24/+14
| | | | | | | | | | | | | | | | | | | | | clang warns: board/metaknight/board.c:787:10: error: array index 1 is past the end of the array (which contains 1 element) [-Werror,-Warray-bounds] if (!(tcpc_config[1].flags & TCPC_FLAGS_TCPCI_REV2_0)) ^ ~ board/metaknight/board.c:741:1: note: array 'tcpc_config' declared here const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { ^ BRANCH=none BUG=b:172020503 TEST=CC=clang make BOARD=metaknight Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I510d6ec4343f258d734834f2d1e3b6760fca7761 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3238248 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* Cret: Add mfgacc_support for some batterieselmo_lan2021-10-271-0/+13
| | | | | | | | | | | | | | | | | TI support mfgacc_support. We will use mfgacc_support to detect dfet and cfet. BUG=b:204285159 BRANCH=dedede TEST=Test on Cret, can boot up from battery cutoff. Signed-off-by: elmo_lan <elmo_lan@compal.corp-partner.google.com> Change-Id: I0c6358176ded8756efa506db0a06285436ab3e46 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3246885 Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* kingoftown: Swap left/right LEDTommy Chung2021-10-271-8/+8
| | | | | | | | | | | | | | | C0/C1 port is on left/right port respectively for kingoftown. Swap left/right LED to the correct port. BUG=b:202464175 BRANCH=trogdor TEST=make sure that "ectool led left/right auto/white/amber/off" correct. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I4f40ed76978b3b471a5c617d2dbf377146023c6b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3225270 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* kingoftown: Update led configTommy Chung2021-10-271-7/+41
| | | | | | | | | | | | | | | | | | | | | | LED policies for kingoftown are defined in the following BUG tracker. This CL is updated to meet the policies. BUG=b:202464175 BRANCH=trogdor TEST=make sure that C0/C1 LED behaviors correct when 1. DC mode 2. DC mode when system suspend 3. AC mode when charging 4. AC mode when fully charging 5. AC mode when fully charging and system suspend 6. AC mode when battery is not present 7. AC mode and force idle. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I8e0eb03ba209194f2b47d6d32f64b44d1be1af1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3199437 Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
* SERVO_V4P1: Use IO-Expander driver specific flagsSam Hurst2021-10-271-2/+2
| | | | | | | | | | | | | | | | | | The TCA64XXA driver controls both the tca6416a and tca6424a io-expanders, so the IO-Expander driver specific flags are used to distinguish between the two. BUG=b:203907721 BRANCH=none TEST=ServoV4p1 flags are not clobbered and IO-Expanders are working Signed-off-by: Sam Hurst <shurst@google.org> Change-Id: I89335845f035aa18d39762cda8ede732e99df3ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3239015 Tested-by: Sam Hurst <shurst@google.com> Commit-Queue: caveh jalali <caveh@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* Scout: disable ALS interrupt on known-bad hardwareJoe Tessler2021-10-272-7/+35
| | | | | | | | | | | | | | | | | | | Prototype, Pre-EVT, and EVT board versions incorrectly use a 1.8V interrupt line, which sends a constant interrupt signal (active low) and eventually triggers a watchdog reset. This change ensures the interrupt remains disables for those known-bad board revision. BUG=b:203224828 TEST=Flash on EVT hardware; confirm no boot loop BRANCH=puff Signed-off-by: Joe Tessler <jrt@chromium.org> Change-Id: Ib959c197219b87024ef8fe2e01350b155ab95f44 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3246412 Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* Felwinter: modify FW_config for MB typeLeo-Tsai2021-10-265-11/+49
| | | | | | | | | | | | | | add fw config settings for mb type to switch USB4/3 TBT support or not BUG=b:198122468 BRANCH=none TEST=build make -j BOARD=Felwinter pass Signed-off-by: Leo-Tsai <leocx_tsai@compal.corp-partner.google.com> Change-Id: Ib22a36dc39fd385d8014016d0282740ffa649367 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3229058 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* board/dalboz: Use correct enum typeTom Hughes2021-10-262-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | When building with clang, it warns: board/dalboz/board.c:178:43: error: implicit conversion from enumeration type 'enum ioex_signal' to different enumeration type 'enum gpio_signal' [-Werror,-Wenum-conversion] enum gpio_signal IOEX_USB_A1_RETIMER_EN = IOEX_USB_A1_RETIMER_EN_OPT1; ~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ board/dalboz/board.c:179:47: error: implicit conversion from enumeration type 'enum ioex_signal' to different enumeration type 'enum gpio_signal' [-Werror,-Wenum-conversion] enum gpio_signal IOEX_USB_A1_CHARGE_EN_DB_L = IOEX_USB_A1_CHARGE_EN_DB_L_OPT1; ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BRANCH=none BUG=b:172020503 TEST=make buildall -j Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I1a90a0814d850406de797077eabc7ba1a4356974 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3243004 Reviewed-by: Edward Hill <ecgh@chromium.org>
* gimble: add FW_CONFIG support for different keyboard layoutWill Tsai2021-10-263-2/+30
| | | | | | | | | | | | | | | | Also refer to https://chrome-internal.googlesource.com/chromeos/project /brya/gimble/+/refs/heads/main/config.star#19 for the bit assignments. BUG=b:193395012 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Will Tsai <will_tsai@wistron.corp-partner.google.com> Change-Id: I6558028190d94559b89533fb02bcc475a4ed6475 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3233470 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* quackingstick: ps8805 A3 chip Device IDSue Chen2021-10-261-0/+1
| | | | | | | | | | | | | | | | Adding CONFIG_USB_PD_TCPM_PS8805_FORCE_DID to include ps8805_make_device_id function in for depthcharge to recognize ps8805 A3 chip. BUG=none BRANCH=trogdor TEST="ectool pdchipinfo 0" can get correct device_id 2 for ps8805 A3 chip. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Iaef08ec859893232e4e573c0364b78e10f6cfb2f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3238424 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* Scout: Change the setting of the GPIOs connected to ALSSue Chen2021-10-261-13/+13
| | | | | | | | | | | | | | | SCL/DAT change to 1.8V EC_RGB_INT_L change to 3.3V BUG=b:203224828 BRANCH=puff TEST="watch -n 1 ectool motionsense" can read als data Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Iaf0d439d572f16d242123ca73883f417284db4b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3236387 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Joe Tessler <jrt@chromium.org>
* cleanup: board: Remove unnecessary fan off/max with custom fan control.Devin Lu2021-10-268-47/+0
| | | | | | | | | | | | | Remove unnecessary fan off/max parameters for some boards. BUG=none BRANCH=none TEST=make buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I230986096bb77f96519e5e233e85a3dc9dbe42c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3141334 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* baseboard/zork: Unify enum typesTom Hughes2021-10-252-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | enum ec_ssfc_base_gyro_sensor and enum ec_cfg_base_gyro_sensor_type have the same values. clang warns that we're trying to convert between these two types: board/morphius/board.c:257:10: error: implicit conversion from enumeration type 'enum ec_ssfc_base_gyro_sensor' to different enumeration type 'enum ec_cfg_base_gyro_sensor_type' [-Werror,-Wenum-conversion] return get_cbi_ssfc_base_sensor(); Rather than duplicate the type (and it accidentally getting out of sync), just use the canonical base type. BRANCH=none BUG=b:172020503 TEST=./util/compare_builds.sh -b all -j 120 => All match, except ezkinil due to the change of the base_gyro_config variable from "int" to "enum" Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I8168518a87469004c33adebed89879225c470ace Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3238249 Reviewed-by: Keith Short <keithshort@chromium.org>
* bugzzy : change power sequence on MIPI offYongBeum.Ha2021-10-251-1/+1
| | | | | | | | | | | | | | | | | reduce delay(100ms->10ms) between LCD reset and boost power BUG=b:198256003 BRANCH=None TEST=make -j BOARD=bugzzy then check LCD off sequence. Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I54d95b83a593cfa1664018cb33e7586eb1523071 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3238422 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* quackingstick: Update battery informationSue Chen2021-10-222-88/+26
| | | | | | | | | | | | | Remove unused battery and add new battery, AP21CBI. BUG=none BRANCH=trogdor TEST=battery can cut off by console command. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Idfff4c95e3b0436a95c21d0eff0f1750cab3c8ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3229059 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* nipperkin: add usb retimer power controlZick Wei2021-10-222-0/+5
| | | | | | | | | | | | | | | | This patch is control power of usb retimer: set high to power on when S0. set low to power down when suspend. BUG=b:203081783 BRANCH=none TEST=make BOARD=nipperkin Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I6928c70880648758f040a659d03384f6df31bb1a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3233463 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* nipperkin: support HDMI retimer low powerZick Wei2021-10-222-1/+46
| | | | | | | | | | | | | | | | | | | | | | | Add HDMI retimer:PI3HDX1204 low power mode support. On board version 1: Enable/disable retimer when DUT resume/suspend. On board version > 1: Disable retimer when DUT suspend/ not plug in HDMI in S0. Enable retimer when DUT in S0 with HDMI plug in. BUG=b:201496586 BRANCH=none TEST=verify HDMI monitor display normally with both board id 1 and 2(manually update cbi and reworked). Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I288bbec0786b7812c5fcb150bb20ff473b25287a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3192746 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
* kingler: initial commitEric Yilun Lin2021-10-219-0/+691
| | | | | | | | | | | | | | | | | | | | | copy from krabby. TODO items for the following commits: - rename krabby to kingler - update zephyr config - update EC to npcx9 BUG=b:203619750 TEST=make BOARD=kingler BRANCH=main Change-Id: I4bc2595ad6cd9a7bd02ce6aaf43c1e52a44b8824 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3235731 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Eric Yilun Lin <yllin@google.com> Tested-by: Eric Yilun Lin <yllin@google.com>
* Revert "marzipan: Delete board"David Stevens2021-10-2111-0/+1339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8915590c2427e6e66307242c6a1b739c66f00593. Reason for revert: breaks CrOS trogdor build Original change's description: > marzipan: Delete board > > Delete the board, since this is no longer maintain. > > BUG=none > BRANCH=firmware-trogdor-13577.B-master > TEST=make buildall > > Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> > Change-Id: Ia674119de349d2cb2cc1cdbf927555f811c36b3a > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3120608 > Reviewed-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> > Reviewed-by: Wai-Hong Tam <waihong@google.com> > Reviewed-by: Philip Chen <philipchen@chromium.org> Bug: none Change-Id: I70c884f1b2118384fb0720eb14bec1c3f0e78117 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3234271 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: David Stevens <stevensd@chromium.org>
* cherry: config gpio properly to save powerTing Shen2021-10-212-10/+19
| | | | | | | | | | | | | | | | | | | | As suggested in the bug below: - Set unused pin to INPUT|PULLDOWN or OUT_LOW - Disable DP_DEMUX_EN in S3 - Disable unused ADC 1/2 BUG=b:203369223 TEST=measure power consumption BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I1798e6417820a84675509e960037b0503a41fa17 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3230468 Reviewed-by: Parker Lin <parkerlin@google.com> Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Parker Lin <parkerlin@google.com> Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* taeko: Move tablet mode to bit14 of CBI_FW_CONFIGreno.wang2021-10-211-3/+3
| | | | | | | | | | | | | | | | As excel of b:203630618's comment#1, tablet mode bit is moved to bit14 and thermal bit is removed. BUG=b:203630618 BRANCH=None TEST=make -j BOARD=taeko;set/unset bit14 of FW_CONFIG and check EC log Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com> Change-Id: Ib300cfaa91367840fed105e70db0f3f796d868ae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3233471 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* marzipan: Delete boardDevin Lu2021-10-2111-1339/+0
| | | | | | | | | | | | | | | Delete the board, since this is no longer maintain. BUG=none BRANCH=firmware-trogdor-13577.B-master TEST=make buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ia674119de349d2cb2cc1cdbf927555f811c36b3a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3120608 Reviewed-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Philip Chen <philipchen@chromium.org>
* taeko: Enable PS8815_FORCE_DIDreno.wang2021-10-211-1/+1
| | | | | | | | | | | | | | | This enables a reliable way to determine the ps8815 chip revision even when its firmware is inoperative. BRANCH=none BUG=b:201736219 TEST=make -j BOARD=taeko Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com> Change-Id: I077a0066e10e2772c6ce1dcc3f1fdb074d09e3c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3197906 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* ADL_RVP: Enable pre-task I2C transactionsVijay Hiremath2021-10-214-0/+88
| | | | | | | | | | | | | | | | | ADL-RVP needs to access IOEX based GPIOs pre-task to configure the SBU lines to CCD or AUX hence enabled pre-task I2C transactions. BUG=none BRANCH=none TEST=Able to configure config SBU lines for CCD pre-task Change-Id: I1512dc4c1837e769f39e1dd595ae2ba1b4cbdf17 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3194986 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Poornima Tom <poornima.tom@intel.com> Commit-Queue: caveh jalali <caveh@chromium.org> Tested-by: caveh jalali <caveh@chromium.org>
* bugzzy : modify power sequence for MIPIYongBeum.Ha2021-10-213-1/+44
| | | | | | | | | | | | | | | detect lcd_reset and turn off VSN/VSP BUG=b:198256003 BRANCH=None TEST=make -j BOARD=bugzzy then check LCD off sequence. Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I193a3cec749f4d4fefd363ccaf176a43d0ba43dc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3220727 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Revert "primus: fix thunderbolt device cannot be emulated"Scott Chao2021-10-211-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 76769448f779d611b09ad1992c63d0f4156ec713. Reason for revert: Root cause was found and solved in coreboot https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/3167960 Original change's description: > primus: fix thunderbolt device cannot be emulated > > This CL was copied from CL:3058157. > > BUG=b:200116046 > BRANCH=none > TEST=make -j BOARD=primus > > Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> > Change-Id: I3eefa5179df7f758f43c35894fcdaba7a8badacc > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162472 > Reviewed-by: caveh jalali <caveh@chromium.org> > Reviewed-by: Boris Mittelberg <bmbm@google.com> > Commit-Queue: caveh jalali <caveh@chromium.org> Bug: b:200116046 Change-Id: Ib5b416697cec3be9d5ccf4222db7858a56b38746 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3233461 Auto-Submit: Scott Chao <scott_chao@wistron.corp-partner.google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Tested-by: caveh jalali <caveh@chromium.org> Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Commit-Queue: Scott Chao <scott_chao@wistron.corp-partner.google.com>
* taeko: add vivaldi keyboard supportamber.chen2021-10-201-1/+24
| | | | | | | | | | | | BUG=b:203632818 BRANCH=main TEST=make -j BOARD=taeko Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: I5b003e0cc89d78ed9660adaebe94f266b76f0869 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3233472 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* redrix: Enable IDCHG current limitDevin Lu2021-10-201-0/+8
| | | | | | | | | | | | | | | | | | Redrix does not boot at low battery power level, since the battery discharging current is over the specification while AP booting. This patch enables the charger IDCHG current limit 8A to assert PROCHOT to prevent over discharging. BUG=b:202915015 BRANCH=none TEST=Make sure we are bootable with low battery level. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Id148de39e6fdba831e8c4bd8d1f07d7b2e7d06ae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3225259 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* taeko: change PD_MAX_POWER_MW from 60W to 45Wreno.wang2021-10-201-1/+1
| | | | | | | | | | | | BUG=b:196426265 BRANCH=None TEST=make -j BOARD=taeko Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com> Change-Id: Ie96eea42ca24647c8875ba8aaafc9a7a4498bd9b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3231715 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* felwinter: Charger change from BQ25720 to ISL9241matt_wang2021-10-204-4/+92
| | | | | | | | | | | | | | | | Due to Charger IC material shortage, change IC solution from BQ25720 to ISL9241. BUG=b:202479555 BRANCH=none TEST=make BOARD=felwinter Signed-off-by: matt_wang <matt_wang@compal.corp-partner.google.com> Change-Id: I1fb4b9b2ddca7e1d1177380b2cd7bd376ef81fbb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3222386 Reviewed-by: Ko Ko <ko_ko@compal.corp-partner.google.com> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* Dewatt: Initialize the vivaldi keyboardSue Chen2021-10-202-0/+26
| | | | | | | | | | | | | | Override board_vivaldi_keybd_config to change the action_keys. BUG=b:202918526 BRANCH=none TEST=make BOARD=dewatt Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I51df79723283eb2032c98640537e60b1bdd7e0d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3211867 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Bhanu Prakash Maiya <bhanumaiya@google.com>
* taeko: Support LSM6DS3TR-C Gyro if board > 0reno.wang2021-10-202-2/+74
| | | | | | | | | | | | | | | Follow customer's change request to change gyro sensor to LSM6DS3TR-C for next phase BUG=b:199529373 BRANCH=None TEST=make -j BOARD=taeko; Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com> Change-Id: I560ee9f311fa7acd9a12083801889f62ec1adbf5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3192739 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* kano: move generated-gpio.inc to gpio.incDavid Huang2021-10-192-127/+110
| | | | | | | | | | | | BUG=None BRANCH=None TEST=make builadall -j Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I6291bbcf2bb5b0fda521ea3fdd5bd19acab8b615 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3229057 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* anahera: Update fan table version 2Devin Lu2021-10-191-12/+12
| | | | | | | | | | | | BUG=b:199246802 BRANCH=none TEST=Thermal team verified thermal policy is expected. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I4c5a095dca2225ca44c776af300f325ef6240b42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3230880 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* Malefor: Free up flash spaceDiana Z2021-10-191-0/+3
| | | | | | | | | | | | | | Remove the PD PRL strings to free up flash space on this board. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I4800aa31227e143d065414dd9cc793a3339b6979 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3232290 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* tree: Files should end with single newlineTom Hughes2021-10-1850-51/+0
| | | | | | | | | | | | | | | | | | | | | | | One of the checks that runs as part of "repo upload" looks for a single newline at the end of each file. I'm getting warnings about this when I touch files that do not follow this, even though I didn't add the extra newlines. This commit fixes all files by running the following: for f in $(find . -name '*.[ch]'); do printf '%s\n' "$(cat ${f})" > ${f}; done BRANCH=none BUG=b:172020503 TEST=./util/compare_build.sh -b all -j 120 => MATCH Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Ia3ece5b64b549d21ca11708791368002bb6e9b0e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3229797 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* board/zinger: Include definition from usb_pd.hTom Hughes2021-10-181-2/+0
| | | | | | | | | | | | | | | | Rather than adding an extern for pd_rx_handler() in board/zinger/board.c, add the definition to the usb_pd.h header. BRANCH=none BUG=b:172020503 TEST=./util/compare_build.sh -b all -j 120 => MATCH Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I5472b2d0bce416d4a296d425efa5d72e9aa548e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3227264 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* bugzzy : LCD current setting on MP3372YongBeum.Ha2021-10-182-0/+33
| | | | | | | | | | | | | | | In order to meet the specification of LCD brightness, it is necessary to set the current value of the LCD controller. BUG=b:202344727 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I4a688613681e9a68d9bb4c9103ddbf342c416d17 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3217483 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* bugzzy : Change charging currentYongBeum.Ha2021-10-182-0/+28
| | | | | | | | | | | | | | change charging current to reduce skin temperature. BUG=b:197776876 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I8a20455d92446ce1606f9e262f6715bf8721adc3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3220905 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Cret: Change charging currentjohnwc_yeh2021-10-172-0/+26
| | | | | | | | | | | | | | | | | | | | | | | experimental for ThermalQual 1. In S3 and S5, charge current follow battery request. 2. In S0: a) charge current set to 1100mA. b) If battery request lower 1100mA, charge current follow battery request. BUG=b:188458703 BRANCH=dedede TEST=Test on Cret, charge current be change to 1.1A Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> Change-Id: Ib62f65ba3b1e2bfbc3875e1c5b26927eb67dfbf9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3226280 Reviewed-by: Elmo Lan <elmo_lan@compal.corp-partner.google.com> Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Elmo Lan <elmo_lan@compal.corp-partner.google.com> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* tree: Make all console commands staticTom Hughes2021-10-152-3/+2
| | | | | | | | | | | | | | Almost all of the console commands were already static. This change makes all of them static for consistency. BRANCH=none BUG=b:172020503 TEST=make buildall -j Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I0ac46358b6fbafa65504c648ce4de0365cdbf723 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3224372 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* taeko: Improvement: Disable tcpc1 if no ps8815 db for early boardreno.wang2021-10-151-12/+114
| | | | | | | | | | | | | | | | | | | | It improve ec keep sensing ps8815 if no db is plugged. It's olny used for early board (board id = 0). 1. Add DB detection policy for board w/o plugging DB. It can make sure system can power on and won't be blocked by TCPC1. 2. Add draft PS8815 reset timing. The others should check b/194618663. 3. Follow CL:3095438, mux HPD interface change, to update BUG=b:197585292 BRANCH=None TEST=make -j BOARD=taeko; test dut can power on w/ and w/o TCPC1 DB Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com> Change-Id: I7fd115baa95d455b282e4ee5bfdf8ee25524e140 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133463 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* primus: add prochot definesWill Tsai2021-10-153-0/+12
| | | | | | | | | | | | | | | | Already moved prochot function into baseboard folder. So remove prochot function in primus. BUG=b:198722634 BRANCH=none TEST=make -j BOARD=primus Signed-off-by: Will Tsai <will_tsai@wistron.corp-partner.google.com> Change-Id: I8abe44f7a20df74e97eb672390ff1e53cbc14fa0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3208327 Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* gimble: control prochotScott Chao2021-10-153-1/+13
| | | | | | | | | | | | | BUG=b:198689488 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I87c05cc9c1cac2671d8c722df5dec6db352f9e05 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3210249 Tested-by: Will Tsai <will_tsai@wistron.corp-partner.google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com>