summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* it83xx/gpg1 reset EC: handle case of watchdog resetstabilize-13729.16.B-mainDino Li2021-01-151-6/+24
| | | | | | | | | | | | | | | This CL triggers GPG1 HW reset after a EC watchdog. So the EC_RST_ODL signal will be toggled after the reset. BUG=b:173075595 BRANCH=none TEST=trigger watchdog to reboot system and verified system is able to boot to kernel. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I5d7a88dbb4bdb00977bc1fa02e5fa61e52347104 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627536 Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
* Refactor CONFIG_FLASH_SIZE to CONFIG_FLASH_SIZE_BYTESYuval Peress2021-01-15100-152/+159
| | | | | | | | | | | | | | | | | | | | | In Zephyr CONFIG_FLASH_SIZE is a Kconfig value that is used throughout. The issue is that the units don't match. In Zephyr the value is in KiB instead of bytes. This refactor simply renames CONFIG_FLASH_SIZE in platform/ec to include the unit (via _BYTES). BRANCH=none BUG=b:174873770 TEST=make buildall be generated by the build instead of per board Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I44bf3c7a20fcf62aaa9ae15715be78db4210f384 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627638 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* galtic: Config the EC GPIO settingJacky Wang2021-01-153-33/+15
| | | | | | | | | | | | | | Base on schematics, config the EC GPIO related setting. BUG=b:177181431 BRANCH=firmware-dedede-13606.B TEST=BOARD=galtic Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Change-Id: Iaa294965a4e6e8d34b816fa96c69b974b7368fbe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2620727 Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: zmake: drop zephyr-chrome from DTS_ROOTJack Rosenthal2021-01-151-6/+1
| | | | | | | | | | | | | Needed to clear file conflicts. BUG=b:177003034 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I7ac8ed94f9bef4e834293cf5c011b3a52d862770 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2631346 Reviewed-by: Simon Glass <sjg@chromium.org>
* volteer: Enable options to support charging from USB-CSimon Glass2021-01-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | The TCPC is used to detect VBUS, so update that option. Also enable USB_DRP_ACC_TRYSRC since that is used with the TCPMV2 stack. BUG=b:175434113 TEST=build on volteer With other CLs, connect a USB-C 30W charger to left port and it charges at full rate Change-Id: I38a4c4556ceb7a4fa303b31066c345f5ad12037c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618741 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630184 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Connect up the USB-C interruptsSimon Glass2021-01-152-1/+14
| | | | | | | | | | | | | | | | | Add support for the interrupts on volteer. Enable the PPC interrupt CONFIG also. BUG=b:175434113 TEST=build on volteer Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ia3ed850efa1404b18844a8656b2fe44a033a79c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618740 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630183 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Enable CBI setupSimon Glass2021-01-151-0/+3
| | | | | | | | | | | | | | | | | | | Add the required code to set up CBI ready for use. BUG=b:175434113 TEST=build on volteer Cq-Depend: chromium:2617369 Change-Id: Iba68696747c9c069adcd7580f4b03ac9b1424bbc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618661 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630182 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Enable the PD_INT_C1 taskSimon Glass2021-01-151-0/+1
| | | | | | | | | | | | | | | | | | | | The PD_INT_C0 task is enabled by default, but volteer has two USB-C PD ports. Enable the other one. BUG=b:175434113 TEST=build on volteer Change-Id: Ib7df007583edb1f09926d8531ebfa62d6ac32353 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618660 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630181 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Enable the PD_C1 taskSimon Glass2021-01-151-0/+1
| | | | | | | | | | | | | | | | | | | | The PD_C0 task is enabled by default, but volteer has two USB-C PD ports. Enable the other one. BUG=b:175434113 TEST=build on volteer Change-Id: If2faed1490d3f0b1186ccd9953894d323f9cfaab Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618659 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630180 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Enable TCPM mux componentsSimon Glass2021-01-151-0/+3
| | | | | | | | | | | | | | | | | | | Enable the drivers and the mux. BUG=b:175434113 TEST=build on volteer Change-Id: Ieb7e8e5bbaaa411de0afa5c9de44c9748a718736 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618658 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630179 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Fix I2C bus aliasesFabio Baltieri2021-01-151-4/+4
| | | | | | | | | | | | | | | | | | These were probably meant to point at the matching bus number. They don't seem to be used by any driver, but there may be some value in keeping them working so let's fix the numbering for the moment. BUG=None TEST=build only Change-Id: I817c3f1244fa3d5f3543f0e0e1a03f630ef17932 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2623087 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Fabio Baltieri <fabiobaltieri@google.com> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630178 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Enable PLATFORM_EC_USB_PD_ALT_MODE_UFPSimon Glass2021-01-151-0/+1
| | | | | | | | | | | | | | | | | | | This is needed to enable the power-delivery task since the option is not enabled by default. BUG=b:175434113 TEST=make BOARD=volteer -j30 build volteer on zephyr Signed-off-by: Simon Glass <sjg@chromium.org> Cq-Depend: chromium:2617204 Change-Id: I3f3c9c76828cc3bef3303126c7c42f052c954a4a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2623427 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630177 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Allow equal space for RO and RW for nowSimon Glass2021-01-151-3/+3
| | | | | | | | | | | | | | | | | | | We are about to run out of space in read-only memory. We don't have a to select features for RO and RW separately. So for now, equalise the regions to 256KB each. BUG=b:175434113 TEST=make BOARD=volteer -j30 build volteer on zephyr Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ide5542f322e47cb985f947ae98569dc189bd5091 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2624951 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630176 Tested-by: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Enable Intel Burnside BridgeSimon Glass2021-01-152-0/+10
| | | | | | | | | | | | | | | | | | | | Enable the driver for this chip. Add a few missing GPIOs that it needs as well. BUG=b:175434113 TEST=make BOARD=volteer -j30 build volteer on zephyr Cq-Depend: chromium:2617041 Change-Id: I89795d3b395cb44df8975f67f2683e49e6db87ca Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618537 Tested-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630175 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Enable the chgramp taskSimon Glass2021-01-153-0/+5
| | | | | | | | | | | | | | | | | | | | Bring in the PI3USB9201 BC1.2 driver and the required USB-C config, so we can enable this task. BUG=b:175434113 TEST=make BOARD=volteer -j30 build volteer on zephyr Cq-Depend: chromium:2617039 Change-Id: I0b4150f28d31c227d0a22defc7e69107878ee7cc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618536 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630174 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Use the EC version of battery.cSimon Glass2021-01-152-71/+1
| | | | | | | | | | | | | | | | | | | | Instead of using a copy, bring in the file from the EC tree. Also add the baseboard charger.c file so that it builds. BUG=b:175434113 TEST=make BOARD=volteer -j30 build zephyr for volteer Change-Id: I52b006c4b73c399eecc5571b7f864b30d8bf9924 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2613607 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630173 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Use the EC version of usbc_config.cSimon Glass2021-01-154-157/+17
| | | | | | | | | | | | | | | | | | | | | | Instead of using a copy, bring in the file from the EC tree. There are two files, one for the baseboard and one for the board. This needs a few missing GPIOs so add those here too. BUG=b:175434113 TEST=with zephyr-chrome CL, build on volteer with full EC usb_pd_policy.c Cq-Depend: chromium:2605277 Change-Id: I4226488066be216148bb0dab6e46df9ebe5f0ea8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2607400 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630172 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Remove const from tcpc_config[]Simon Glass2021-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | Update this so we can enable USB_PD_TCPC_RUNTIME_CONFIG. This matches what the EC code uses, so is a necessary step for us to be able to move over to it. BUG=b:175434113 BRANCH=none TEST=with EC CL, build on volteer Signed-off-by: Simon Glass <sjg@chromium.org> Cq-Depend: chromium:2607508 Change-Id: I3a93c2af01923eef6c044825b2c7700cdfd09837 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2607401 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630171 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Use the EC version of usb_pd_policy.cSimon Glass2021-01-153-82/+2
| | | | | | | | | | | | | | | | | | Instead of using a partial copy, bring in the full file from the EC tree. Add the required product ID. BUG=b:175434113 BRANCH=none TEST=with zephyr-chrome CL, build on volteer with full EC usb_pd_policy.c Signed-off-by: Simon Glass <sjg@chromium.org> Cq-Depend: chromium:2607505 Change-Id: I325d347c6f68ed9e338711de603171516eeb8304 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2607398 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630170 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Use the EC version of battery_presence.cSimon Glass2021-01-152-91/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At present we have copied this file into zephyr-chrome. This is not ideal since changes in that file will not be reflected in Zephyr. Bring the file into the build directly and remove the local copy. To do this, create two new helper variables: PLATFORM_EC_BOARD - points to the EC board directory PLATFORM_EC_BASEBOARD - pointers to the baseboard directory It may be possible to move these to the EC side at some point so that we don't need them to be in each board's CMakeLists.txt Add both the board and baseboard directories to the include list, since they sometimes need to include each others headers. BUG=b:175434113 BRANCH=none TEST=build on volteer, which fails Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I8ebd52fe3a9428e2f70220b6944d9dbe56b41aa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2607397 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630169 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* drivers: disable cros_flash until the code can compileJack Rosenthal2021-01-151-1/+1
| | | | | | | | | | | | | | | | | This code will not compile. See b/176828988 for the failures. It will be disabled until the code can compile. BUG=b:176828988 TEST=less compile failures Change-Id: I8e67c538975193d30d77068158a642ee4b9ef86c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2611079 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630168 Reviewed-by: Simon Glass <sjg@chromium.org>
* drivers: Add cros_flash driver for npcx chipMulin Chao2021-01-1510-0/+990
| | | | | | | | | | | | | | | | | | | Add a driver that implements the cros_flash interface on the npcx chip. BUG=b:174874876 TEST=pass build with related patches. TEST=combine with related patches, use console commands to test all the implemented flash APIs. Change-Id: I435569928ead955079d8299d7d056894066b5929 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2598212 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630167 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* driver: replaced all DT_NPCX_ prefix with NPCX_DT_Wealian Liao2021-01-151-4/+4
| | | | | | | | | | | | | | | | | | | To catch up the zephyr upstream, replaced all DT_NPCX_ prefix with NPCX_DT_. BUG=b:175217186 TEST=build & boot EC on volteet test keyboard by ksstate on Cq-Depend: chromium:2603202 Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ie3db096959e164c5763b120cdb5700f95ac67d73 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2601895 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630166 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* Add volteer USB-C support codeSimon Glass2021-01-154-0/+242
| | | | | | | | | | | | | | | | | | | This enables various options on volteer so that some of the USB-C code builds. BUG=b:175434113 TEST=build and run on volteer Cq-Depend: chromium:2587225 Change-Id: I48cc7a0e50a76338d86ba03f24f5fb169c907143 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2585918 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630165 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* Add information for battery chargingSimon Glass2021-01-154-0/+81
| | | | | | | | | | | | | | | | | | | Copy this over from the EC code base so that volteer can build the charger task BUG=b:175248556 TEST=build and boot on volteer (no actual test) Cq-Depend: chromium:2600228 Change-Id: I42de66fc6023762eb6e0eb84d5b6e93bd41ca7d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2599493 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630164 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* Add information for battery presenceSimon Glass2021-01-153-0/+91
| | | | | | | | | | | | | | | | | | | Copy this over from the EC code base so that volteer can detect its battery, BUG=b:175248556 TEST=build and boot on volteer (no actual test) Cq-Depend: chromium:2600337 Change-Id: I6ba05ab09e23a2a5aaa8c4d5f13665ce58836dac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2599491 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630163 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* cros_kb: Add the missing enable_interrupt methodSimon Glass2021-01-151-2/+5
| | | | | | | | | | | | | | | | | | This method is defined in the file but not included in the API struct for the driver. Add it to avoid a warning. BUG=b:174871569 TEST=build for zephyr, see the warning gone Change-Id: I4fa8330b351582eeb796c8f8b4226e0542d1a45a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2597661 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630162 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* zmake: change projects to chroot-supported toolchainsJack Rosenthal2021-01-151-3/+9
| | | | | | | | | | | | | | | | | | | | | | Switch all zmake.yaml files to chroot-supported toolchains so that we can run "zmake testall" without grabbing the Zephyr SDK. Added a new config option to zmake, "prefer-zephyr-sdk", which when set to true, will cause the Zephyr SDK to be used instead of the specified toolchain, if installed. BUG=b:175248887 TEST=zmake testall (both with and without zephyr sdk) observe warning/info message in both cases for volteer Change-Id: I15ef3716d9c1301acaa154fe9d3b54cf85f73b79 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2591608 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Auto-Submit: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630161 Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* toolchain: provide definition for chroot host-based LLVM toolchainJack Rosenthal2021-01-1510-9/+94
| | | | | | | | | | | | | | | | | | | | This provides a definition for an LLVM toolchain, which acts as a chroot host-based toolchain. This is for compiling unit tests and the posix-ec project, not for real devices. We need this to enable unit tests and posix-ec build in the commit queue, since Zephyr SDK is not available in the chroot. BUG=b:175248887 TEST=zmake configure -b -B $BUILD -t llvm projects/experimental/posix-ec $BUILD/build-singleimage/zephyr/zephyr.elf works Change-Id: Ie71f53cf53503f9279aab654170c7bc2b7a80d20 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2590992 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630160
* Add toolchain definition for coreboot-sdkJack Rosenthal2021-01-157-0/+83
| | | | | | | | | | | | | | | | | | Add a toolchain definition for coreboot-sdk, so that volteer can build with coreboot-sdk instead by adding -t coreboot-sdk to the "zmake configure". BUG=b:175248887 TEST=zmake configure -b -t coreboot-sdk -B $(mktemp -d) \ projects/experimental/volteer Change-Id: I1ac9dbf96d893846077e9a7cdc970f57d7a4890d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2583409 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630159 Reviewed-by: Simon Glass <sjg@chromium.org>
* zmake: pack ro/rw images using binmanYuval Peress2021-01-151-3/+3
| | | | | | | | | | | | | | | | | | | | | This change alters the output packer for the raw type to pack both the RO and RW images together using binman. Kconfig values for the image offset and size are used to generate the packing .dts file. BUG=b:164421798, b:161470456 TEST=zmake testall Cq-Depend: chromium:2584195 Change-Id: I92d2e7dc03199e127b68ad6bdbc9d9905b6fd00b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2583270 Tested-by: Yuval Peress <peress@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630158 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: enable battery supportKeith Short2021-01-152-0/+5
| | | | | | | | | | | | | | | | | | Turn on the battery and smart battery configs. BUG=b:175248556 TEST=boot volteer and type 'battery' Cq-Depend: chromium:2575199 Change-Id: Iae77069bb20985b40f91711cf589ae3054002e30 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2582201 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630157 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Set the I2C speedsSimon Glass2021-01-151-0/+6
| | | | | | | | | | | | | | | | | | | These must be set for I2C buses to function as expected. Set the values, taken from i2C_ports[] in board/volteer/board.c BUG=b:171302975 TEST=build for volteer Cq-Depend: chromium:2586044 Change-Id: Ife4928229db5882b880d6eb693e97aac0c9d1e67 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2585925 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630156 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Remove dependency on npcx specific registersYuval Peress2021-01-151-7/+7
| | | | | | | | | | | | | | | | | | | This change removes the dependency on the npcx specific headers which are normally included via registers.h. It instead transitions to relying on i2c/i2c.h which defines various enums and the NAMED_I2C macro. BUG=b:175249000 TEST=zmake testall Cq-Depend: chromium:2582819 Change-Id: I7d8e98cc4228496b0c7603c0794eb92e0f79c01d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2583272 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630155 Reviewed-by: Simon Glass <sjg@chromium.org>
* Enable RO/RW buildsYuval Peress2021-01-151-3/+0
| | | | | | | | | | | | | | | | | | | | This change enables building both RO/RW when the zmake output type is set to raw. Having this as a standalone change is beneficial to enable both builds in testall. Thus, we'll catch any bugs in the build when we have any conditional code on the image. BUG=b:161470456 TEST=zmake testall Change-Id: Ie2a4a28ee3f81862a59592eda9b4bd592d8ef86e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2566422 Commit-Queue: Yuval Peress <peress@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630154 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* Remove unnecessary shimmed_tasks.hYuval Peress2021-01-152-30/+4
| | | | | | | | | | | | | | | | | BUG=none TEST=zmake testall Cq-Depend: chromium:2567560 Change-Id: Ib317da5edf7f949c7cebb3ff38e8079aa7076f37 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2566421 Tested-by: Yuval Peress <peress@chromium.org> Commit-Queue: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630153 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: enable CBI EEPROM accessJett Rink2021-01-153-0/+8
| | | | | | | | | | | | | | | | | | Turn on the CBI shim module. Define the necessary i2c constants required by CBI module. BUG=b:168032589,b:168032342 TEST=boot volteer and type `cbi` Cq-Depend: chromium:2572736 Change-Id: I989c7588b34b27c5743cc9926e04c8881e6f7165 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2572756 Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630152 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: clean up manual def of struct intel_x86_pwrok_signalJack Rosenthal2021-01-151-11/+1
| | | | | | | | | | | | | | | | | | The header can be reached now (with Cq-Depend CL), so include it and get rid of the duplicate definition. BUG=b:173798264 TEST=compiles Cq-Depend: chromium:2571897 Change-Id: Iea62bd777195e12c554650ab120b08f811c158fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2572018 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630151 Reviewed-by: Simon Glass <sjg@chromium.org>
* gpio_defines: add more flags for GPIO configPaul Fagerburg2021-01-151-0/+12
| | | | | | | | | | | | | | | | | | | | Add defines for GPIO_OUTPUT_LOW, GPIO_OUTPUT_HIGH, GPIO_INPUT_PULL_UP, and GPIO_INPUT_PULL_DOWN. BUG=b:174754428 TEST=compiles Change-Id: Ia14505709f6667c3ba2d1f45a8974052d7c78731 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2572016 Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Paul Fagerburg <pfagerburg@chromium.org> Auto-Submit: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630150 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* gpio_defines: make header visible to chameleonJack Rosenthal2021-01-153-2/+48
| | | | | | | | | | | | | | | | Move this to include/ so chameleon can use it too. BUG=b:174754428 TEST=compiles Change-Id: I8898a7e2beb5c30c0577fe0fd36d69fe631d0624 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2570998 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630149 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* drivers: add NPCX7 cros_kb_raw driverSimon Glass2021-01-1515-1/+598
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NPCX keyboard scanning module is supported by up to 18 open-drain output signals and 8 input signals. Switch-based keyboard matrices are supported by Schmitt trigger inputs that have internal pull-up resistors. For power efficiency, the inputs include interrupt and wake-up capability so that pressing/releasing keys can be identified without scanning the keyboard matrix in either Active, Sleep or Deep Sleep power state. The CL also includes: — Add npcx cros_kb_raw device tree declarations. — cros_kb_raw api implementations - Enable Volteer keyboard scan task BRANCH=none BUG=b:167405015, b:172676906 TEST=build pass by zmake configure -B ./build projects/experimental/volteer. TEST=check all the keys on volteer platform by "ksstate". Change-Id: I1cbdaa0e81cbb4447daede82774711f4d50f613d Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Signed-off-by: Mulin Chao <MLChao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2523940 Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630148 Tested-by: Jack Rosenthal <jrosenth@chromium.org>
* volteer: enable espi and power sequencingJack Rosenthal2021-01-155-3/+77
| | | | | | | | | | | | | | | | | Add configurations for everything on platform/ec branch, and enable power sequencing for volteer. BUG=b:171312361 TEST=https://screenshot.googleplex.com/4m6N6vd2Nx5FpiD.png Cq-Depend: chromium:2548308 Change-Id: I2332ceb2df388fce2efb661e66ca275b0db0545d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2548320 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630147 Reviewed-by: Simon Glass <sjg@chromium.org>
* dts: Add custom bindings directory to buildsYuval Peress2021-01-152-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a dts/bindings directory which can be included for our builds. Normally, we would have to add the dts/bindings directory to each project. That means that we would need to add the custom bindings at projects/experimental/volteer/dts/bindings. This change allows us to add a single location of it instead at the zephyr-chrome/ level. The first use case is a custom list of phandles which allows us to curate the mapping of i2c ports. This will later be used to move away from our dependency on platform/ec/chip/ files. BUG=b:173031122 TEST=firmware_builder.py test Change-Id: I251cb32d1a3e63fc0d76c7f3f480a6538d539af4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2546328 Tested-by: Yuval Peress <peress@chromium.org> Auto-Submit: Yuval Peress <peress@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630146 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* Volteer: Add i2c_map.hYuval Peress2021-01-151-0/+21
| | | | | | | | | | | | | | | | | | | Map chip specific enums for i2c to the correct #defines expected in platform/ec. BUG=b:171302975 TEST=Build volteer and run i2cxfer r 9 0x50 0 Cq-Depend: chromium:2541622 Change-Id: Id5322bec184608a772d8752a4437b28128f1d97c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2537897 Commit-Queue: Yuval Peress <peress@chromium.org> Tested-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630145 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: enable extpower gpio support and add configsJack Rosenthal2021-01-152-3/+7
| | | | | | | | | | | | | | | | | Enable CONFIG_PLATFORM_EC_EXTPOWER_GPIO, and add the configs for the pin and interrupt needed in gpio_map.h BUG=b:172720290 TEST=see TEST of CL:2527703 Cq-Depend: chromium:2527703 Change-Id: I026e1942d752668c27746b73e778c56d8cd6a096 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2527663 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630144 Reviewed-by: Simon Glass <sjg@chromium.org>
* volteer: add interrupt and configuration for power buttonJack Rosenthal2021-01-152-2/+6
| | | | | | | | | | | | | | | | | Bring in the platform/ec power button implementation and add the interrupt configuration. BUG=b:172471187 TEST=press power button, observe UART output Cq-Depend: chromium:2523382 Change-Id: I5c60f0962f5eb325844936ba6d27e8e71a288d4a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2523463 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630143
* volteer: shim HOSTCMD taskJack Rosenthal2021-01-151-1/+3
| | | | | | | | | | | | | | | Enable so we can shim in some host command files. BUG=b:172678200 TEST=run on volteer, nothing useful expected yet Change-Id: Ie049654140f7d65e2aa438086b93b5443ac4c51e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2523466 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630142
* volteer: add lid switch GPIO and configurationJack Rosenthal2021-01-152-1/+6
| | | | | | | | | | | | | | | | | Enable the lid switch shim, and add GPIOs and interrupts needed. BUG=b:172652088 TEST=compile for volteer, observe console commands lid{open,close,state} and open/close lid to observe state change Cq-Depend: chromium:2523456 Change-Id: I73ded74f519b6d55d5210f217243f0673c131275 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2523457 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630141
* volteer: Add a keyboard taskSimon Glass2021-01-152-6/+3
| | | | | | | | | | | | | | | | | | | | | | Enable the task to scan the keyboard. At present this doesn't do anything since it doesn't get any events. It needs the LPC/eSPI piece. BUG=b:167405015 TEST=zmake configure .../zephyr-chrome/projects/experimental/volteer \ -B /tmp/z/cos zmake build /tmp/z/cos See there are no errors Change-Id: I5aa9294f3566440d38b279412bb33da6817f8885 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2521082 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630140 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* app: ec: add configuration for AP SoC generationJack Rosenthal2021-01-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Add Kconfig options to select the AP's SoC. BUG=b:171312361,b:172471163 TEST=zmake configure -B ~/volteer-build projects/experimental/volteer zmake build ~/volteer-build grep CONFIG_AP ~/volteer-build/build-singleimage/zephyr/.config CONFIG_AP=y CONFIG_AP_X86_INTEL_TGL=y # CONFIG_AP_X86_INTEL_ADL is not set CONFIG_AP_X86_INTEL=y CONFIG_AP_X86=y CONFIG_APPLICATION_INIT_PRIORITY=90 # CONFIG_APPLICATION_DEFINED_SYSCALL is not set Change-Id: I88772d306818347bbae375f1d5bdc21c62bc7119 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2521083 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630139