summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
* volteer: add example shimmed tasksJett Rink2021-01-152-0/+28
| | | | | | | | | | | | | | | | Add example task to volteer. This will be replace by real tasks soon BUG=b:171741620 TEST=compile volteer with example task Change-Id: Ie11482cfe4abe884a0c98c90d570c3337e273606 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2518618 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org> Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630138 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: add GPIO alises needed for power sequencing to gpio_map.hJack Rosenthal2021-01-151-2/+18
| | | | | | | | | | | | | | | These aliases are needed to support power sequencing shim. BUG=b:171312361 TEST=with EC shim, compiles Change-Id: Ic149a11eb4f99d7aa006c2bf043cc29816756917 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2503390 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/+/2630137 Reviewed-by: Simon Glass <sjg@chromium.org>
* volteer: add initial zmake.yamlJack Rosenthal2021-01-151-0/+27
| | | | | | | | | | | | | | | | | | Add a basic zmake.yaml file. BUG=b:170268806 TEST=compile volteer board with zmake (chroot) zephyr-chrome $ zmake configure -B ~/volteer-build \ projects/experimental/volteer (chroot) zephyr-chrome $ zmake build ~/volteer-build Change-Id: I12927166c14cb189374f8ff9e86e71de93f8072a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2503389 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/+/2630136 Reviewed-by: Simon Glass <sjg@chromium.org>
* volteer: add EC_CROS_GPIO_INTERRUPT defineJett Rink2021-01-151-0/+16
| | | | | | | | | | | | | | | | Define the EC_CROS_GPIO_INTERRUPT with an example of how to use it to allow us to bind platform/ec gpio irq handlers BUG=b:169935802 TEST=use with volteer power button to print message on both edges Change-Id: Iead9ad54cec567443be00d7ea07c714455156371 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2495006 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630135
* volteer: add remaining gpio signalsJett Rink2021-01-151-7/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generate the dts snippet with the following perl command perl -nle 'print lc($1)." {\n\tgpios = <&gpio".lc($2)." $3 ($4)>;\n\tlabel = \"$1\";\n};" if /GPIO\w*\((\w+),\s+PIN\((\w), (\w)\),\s+([^),]+)/' board/volteer/gpio.inc | perl -ple 's/GPIO_INT\w+/GPIO_INPUT/g' | perl -ple 's/ \| (GPIO_SEL_1P8V|GPIO_HIB_WAKE_HIGH)//g' | perl -ple 's/\((\w+)\)/$1/g' This removes GPIO_SEL_1P8V and GPIO_HIB_WAKE_HIGH since they are not supported in zephyr This also ignores any interrupts as they need to be defined outside of the device tree file. All interrupts are just assumed to be an input. BUG=b:169935802 TEST=gpioget shows all GPIOs on volteer Change-Id: I2161db8cb1daa520df208c911342f3ed6c01decb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2495095 Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Auto-Submit: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630134 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* volteer: Enable I2CSimon Glass2021-01-152-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable I2C for testing. Volteer uses I2C ports 0-3, 5 and 7. Ports 0, 3, 5 appear to have nothing on them, but that may possibly be correct for my volteer. BUG=b:171302975 TEST=ZEPHYR_BASE=$HOME/chromiumos/src/third_party/zephyr/main/v2.4 With all the cherry-picks applied to $ZEPHYR_BASE In ~/chromiumos/src/platform/zephyr-chrome : ./clean_build.sh \ ~/chromiumos/src/platform/zephyr-chrome/projects/experimental/volteer Use gdb script volteer.gdb: target remote localhost:2331 monitor reset load ~/chromiumos/src/platform/zephyr-chrome/build/zephyr/zephyr.elf With JLinkGDBServerExe running and connected: $ gdb-multiarch -x volteer.gdb c (to continue) On attached volteer EC UART: uart:~$ i2c scan I2C_0 I2C: Device driver I2C_0 not found. uart:~$ i2c scan I2C_0_PORT0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 0 devices found on I2C_0_PORT0 uart:~$ i2c scan I2C_1_PORT0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 5f 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 3 devices found on I2C_1_PORT0 uart:~$ i2c scan I2C_2_PORT0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 5f 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 3 devices found on I2C_2_PORT0 uart:~$ i2c scan I2C_3_PORT0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 0 devices found on I2C_3_PORT0 uart:~$ i2c scan I2C_5_PORT0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 0 devices found on I2C_5_PORT0 uart:~$ i2c scan I2C_7_PORT0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- 09 -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 2 devices found on I2C_7_PORT0 Change-Id: I37c366f4c7708a363404f0d8064d854fd0a14389 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2491439 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-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630133 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: Switch pinctrl property to pinctrl-0Simon Glass2021-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This has been renamed upstream, so fix it here also. BUG=b:171302975 TEST=ZEPHYR_BASE=$HOME/chromiumos/src/third_party/zephyr/main/v2.4 With all the cherry-picks applied to $ZEPHYR_BASE In ~/chromiumos/src/platform/zephyr-chrome : ./clean_build.sh \ ~/chromiumos/src/platform/zephyr-chrome/projects/experimental/volteer See that it now builds without error Cq-Depend: chromium:2495673 Change-Id: Id7cca7ca56f720dd6b46d31b67d41e0fecf61e6c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2495007 Reviewed-by: Jett Rink <jettrink@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/+/2630132 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* Add unit tests for system shimYuval Peress2021-01-151-0/+16
| | | | | | | | | | | | | | | | BUG=b:167392037 TEST=New unit tests and built for volteer Cq-Depend: chromium:2491430 Change-Id: I73bb5299ae3f467bd5d35679083264d842342731 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2491388 Commit-Queue: Yuval Peress <peress@chromium.org> Tested-by: Yuval Peress <peress@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630131 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* Rename CONFIG_CHROME_EC* to CONFIG_CROS_ECYuval Peress2021-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | Discussed in previous revisions to rename _CHROME_ to _CROS_ to avoid overloading 'chrome' which generally references the browser. BUG=none TEST=built Change-Id: If2c407e2a27523076832358b81191c9b32f87369 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2470300 Tested-by: Yuval Peress <peress@chromium.org> Commit-Queue: Yuval Peress <peress@chromium.org> Reviewed-by: 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/+/2630130 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: add a few named gpiosJett Rink2021-01-154-0/+63
| | | | | | | | | | | | | | | | | | | | Adding gpios to the named_gpios node in device tree will make them accessible as enum gpio_signal values for gpio_get and gpio_set calls in platform/ec calls. BUG=b:169935802 TEST=verified that gpioget and gpioset command work on volteer Change-Id: I0086b2ed543c6a382fa6234e716a36e616261b4c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2488502 Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630129 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: build volteer as Chrome applicationJett Rink2021-01-152-0/+2
| | | | | | | | | | | | | | | | | | BUG=b:169935794 TEST=flash on volteer proto2 and verify that gettime console command is present (although there is an issue with the printk statements, see https://github.com/zephyrproject-rtos/zephyr/pull/28882 for a fix) Cq-Depend: chromium:2446028 Change-Id: Ie12a2bcdf98e81be3887ac5f4d2e0dd0551c12d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2447010 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630128 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* volteer: initial project for volteerJett Rink2021-01-159-0/+136
| | | | | | | | | | | | | | | | | | | This prints hello world. Make sure to flash zephyr_volteer.bin instead of zephyr.bin to the device with flash_ec script. BUG=b:169182500 TEST=flash zephyr_volteer.bin with flash_ec using servo micro and view UART output on EC console. Change-Id: I5094cd06824d29a7abc5526e9dbc921253854f40 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2427408 Commit-Queue: Jett Rink <jettrink@chromium.org> Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630127 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* sasuke : modify battery informationYongBeum.Ha2021-01-152-22/+32
| | | | | | | | | | | | | | modify battery information for sasuke BUG=b:175078396 BRANCH=None TEST=make BOARD=sasuke Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I9b4c74508c715b7327ef212a2c8f5173cbab57d8 Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2578232 Reviewed-by: Diana Z <dzigterman@chromium.org>
* adlrvp:Split the ADLRVP board filesPoornima Tom2021-01-157-425/+481
| | | | | | | | | | | | | | | | | | Common ADL RVP configuration and ITE8xx EC controller specific configuration are placed separately in two different files. This will help in easier porting of board files for different EC vendors who use MECC connector. BRANCH=none BUG=none TEST=ADLRVP-P & ADLRVP-M with ITE EC boot to OS. Signed-off-by: Poornima Tom <poornima.tom@intel.com> Change-Id: I6ec9aa216aeb3d552d355f31d6ec4361345c85ee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2626805 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>