summaryrefslogtreecommitdiff
path: root/board/lantis
Commit message (Collapse)AuthorAgeFilesLines
* keeby/dedede: Gate temp sensor access by GPIOAseda Aboagye2021-06-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | On dedede and keeby boards, the thermistors are powered by the EC's GPIO_EN_PP3300_A pin. If the thermistors are read before they are powered then the EC may force a thermal shutdown due to the bad reading. This commit simply defines CONFIG_TEMP_SENSOR_POWER_GPIO along with a CONFIG_TEMP_SENSOR_FIRST_READ_DELAY_MS to ensure we don't get any false positive thermal shutdowns. BUG=b:192053176 BRANCH=dedede TEST=Build and flash lalala. Unplug AC charger from DUT, press refresh+power button to reset DUT, verify that DUT boots up automatically. TEST=Repeat above test with madoo. Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: I2a49e2f896c4120a8f01f440ea22c9b3763c6589 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2988364 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>
* lantis: Update fw_config_dbTommy Chung2021-05-261-6/+12
| | | | | | | | | | | | | | | Update fw_config_db to meet cbi_fw_config table on lantis. BUG=b:186393848 BRANCH=dedede TEST=on lantis, make sure that all DB configs act correctly. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I7cade5d603f815a60ba89c6cdf86ac48b41eafe3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2902073 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
* lantis: Move C1 SM5803 processing to the PD_INT taskTommy Chung2021-04-071-1/+15
| | | | | | | | | | | | | | | | | Since the SM5803 shares an interrupt line with the TCPC, allow the PD_INT task for C1 to process interrupts for this chip. This will ensure that any interrupts from the charger are handled at a high priority and cannot leave the shared IRQ line low for extended periods. BUG=none BRANCH=dedede TEST=On lantis, confirm charger attach to C1 works reliably. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: Id363b743eb7825f4a03f7119248218d0259e9d5b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2804004 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Add a common header for board_is_sourcing_vbus()Simon Glass2021-03-311-2/+0
| | | | | | | | | | | | | | | | This function prototype is defined in lots of files, none of which is visible to Zephyr. Add a prototype in one place and remove the others. BUG=b:183296099 BRANCH=none TEST=make buildall Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ia324327a69b117483ab9ee5c85eba93c0fb5ad9c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789799 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* genvif: Use VIF overrides by defaultAbe Levkoy2021-03-301-0/+3
| | | | | | | | | | | | | | Use board-specific override files when generating VIFs for boards. BUG=b:172276715 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I197365018ceb8197c22d631cebf4cbce1c0119f7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785506 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* lantis: Add GPIO_EC_ENTERING_RW2Tommy Chung2021-02-262-0/+16
| | | | | | | | | | | | | | This commit syncs with crrev.com/c/2719104 on lantis. BUG=b:181085178 BRANCH=dedede TEST=Build and flash lantis, verify it boots. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I33f44dbbe4959b96e5805d7f2833c9fa20984537 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2719779 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* lantis: Remove CONFIG_SYSTEM_UNLOCKEDTommy Chung2021-02-231-3/+0
| | | | | | | | | | | | | | | | | Lantis has progressed enough in development that we no longer need to force an unlocked state on the EC. BUG=b:180982041 BRANCH=dedede TEST=make -j buildall Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: Ia63c5e072e2e4e0e7112c58a3fff756ce7634928 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2712219 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@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>
* Move tcpic.h header into include/driverSimon Glass2021-01-071-1/+1
| | | | | | | | | | | | | | | | | | This header cannot currently be accessed by Zephyr since it is in a driver directory, not an include directory. This header has quite a bit of public stuff in it, so it seems reasonable to consider everything public. Move the header file and update all users. BUG=b:175434113 BRANCH=none TEST=make buildall -j30 build volteer on zephyr Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ibba37f47a06783fafb5095f853f2a68d92b6df87 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2607745
* TCPMv2: Update source-out configsDiana Z2020-12-241-10/+0
| | | | | | | | | | | | | | | | | | | | Now that the DPM will be handling source-out decisions for TCPMv2, remove references to its old configuration options from TCPMv2 boards in order to avoid any confusion as to what code is running now. Also remove the charge manager notifications of sink attach/detach since the policy is being centralized into the DPM. Note that the previous configuration options only ever allocated one 3.0 A port, and so the default number of 3.0 A ports has been set to 1. BRANCH=None BUG=b:168862110,b:141690755 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ie452e3da32b04226503539daa67b6b9f4a58aa58 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597431 Reviewed-by: Keith Short <keithshort@chromium.org>
* lantis: Increase task stack sizesTommy Chung2020-12-151-4/+4
| | | | | | | | | | | | | | | | This CL increases task stack sizes along with crrev.com/c/2587794 since lantis was initialed with drawcia's image. BUG=None BRANCH=dedede TEST=Verify that new task stacks sizes are present and that there is plenty of free RAM left. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I0e1e18e23fdd1aa90db0588d8f4e859e781edc40 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2591830 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* task_set_event: remove the wait argumentDawid Niedzwiecki2020-12-141-2/+2
| | | | | | | | | | | | | | | | | | | | There is an option in the task_set_event function which force the calling task to wait for an event. However, the option is never used thus remove it. This also will help in the Zephyr migration process. BUG=b:172360521 BRANCH=none TEST=make buildall Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ic152fd3d6862d487bcc0024c48d136556c0b81bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521599 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* lantis: Update OCPC PID constantsTommy Chung2020-12-141-2/+2
| | | | | | | | | | | | | | | | | This CL updates the OCPC PID constants along with crrev.com/c/2567036 since lantis was initialed with drawcia's image. BUG=b:174167890 BRANCH=dedede TEST=Verify that at low SOC, charging from the sub board results in lower overshoot and reduced time to correct steady state error. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: If4f40913e533901fa6b8280857b480adb8c68e11 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2589134 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* lantis: Update battery configurationTommy Chung2020-12-113-95/+15
| | | | | | | | | | | | | | | Note that this CL updates the battery config on lantis. Also, we update the comment in that lantis was initialed with drawcia's EC image. BUG=b:175184763 BRANCH=dedede TEST=Make sure battery charging, battery cutoff works. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: Id8ca23b3c17a09680fd1267624f7a1fc06fbfaf2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2581159 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* lantis: Update LED configurationTommy Chung2020-12-092-32/+68
| | | | | | | | | | | | | | | | | | In lantis, we have a power LED and two battery LEDs. Also, we have two USB-C ports, and which battery LED takes action related to different charging states will depend on which USB-C port has been plugged in for power charge. We blink power LED to indicate system suspend, and we also override battery LEDs for clamshell SKU, which doesn't have power LED. BUG=b:171546871 BRANCH=dedede TEST=Make sure that all LEDs act correctly. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I32e931efad9477f64e83e75057b3ae04db997e63 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2556726 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* lantis: Update DB FW_CONFIGTommy Chung2020-12-031-4/+14
| | | | | | | | | | | | | | | Note that this CL update DB FW_CONFIG according to crrev.com/c/2548269 since lantis's EC image was initialed with drawcia's EC image. BUG=b:171742626 BRANCH=dedede TEST=Load on lantis and confirm correct number of PD ports up. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I373fd0bd6bcd31e6355734a354d9be1ce9fe3aa9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2562917 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
* lantis: Remove C1 current limitationTommy Chung2020-12-021-3/+0
| | | | | | | | | | | | | | | | Since the thermal concern has already been solved, we don't have to limit C1 charging current to 2A in lantis. BUG=b:161942987 BRANCH=dedede TEST=In lantis, make sure that C1 charging current is not limited to 2A. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: I9c3e13b2e1fa2acaeb9dfae17f8ed1639550689b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2557283 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* lantis: Initial EC imageTony Huang2020-11-168-0/+1586
Create the initial EC image for the lantis variant by copying the drawcia reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.2.0). BUG=b:171546871 BRANCH=none TEST=make BOARD=lantis Signed-off-by: Tony Huang <tony-huang@quanta.corp-partner.google.com> Change-Id: I01eeb9dda6110f72aba4b253ac2ecca57f12bdd5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2534437 Tested-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>