summaryrefslogtreecommitdiff
path: root/board/genesis
Commit message (Collapse)AuthorAgeFilesLines
* mkbp: Move key simulation to input devicesBoris Mittelberg2021-05-101-1/+1
| | | | | | | | | | | | | | | | | | Today some platforms include MKBP_KEYBOARD because they use side buttons, switches or other events that share the same driver with MKBP keyboard. Those platforms don't enable KEYSCAN task. The CL is moving key emulation functionality to MKBP input devices, to make a clear separation between the real keyboard usage and emulation/buttons/switches/etc. All boards that were selecting `CONFIG_KEYBOARD_PROTOCOL_MKBP` without KEYSCAN task are now updated to select `CONFIG_MKBP_INPUT_DEVICES` BUG=b:170966461 BRANCH=main,firmware-dedede-13606.B,firmware-volteer-13672.B-main TEST=None Signed-off-by: Boris Mittelberg <bmbm@google.com> Change-Id: I515140ebf6e175f4b29991329f92266ffca232a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2824044
* thermisor: move header to include dirDawid Niedzwiecki2021-04-221-1/+1
| | | | | | | | | | | | | | | | Move the "thermistor.h" header to the include/driver/temp_sensor directory. It is used by the Zephyr shim, so the change is useful to include the header. BUG=b:180403276 BRANCH=none TEST=make buildall Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I0e83df97e50a3b324440b65ddb900ddf135f2439 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2843323 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* genesis: Redefine GPIO BJ_ADP_PRESENT_LNeill Corlett2021-01-221-0/+1
| | | | | | | | | | | | | BUG=b:178025719 TEST=Built EC for genesis Change-Id: Ied905475c94a17838a9c66c9ef304b905d716416 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643601 Reviewed-by: Joe Tessler <jrt@chromium.org> Reviewed-by: Neill Corlett <corlett@google.com> Commit-Queue: Neill Corlett <corlett@google.com> Tested-by: Neill Corlett <corlett@google.com> Auto-Submit: Neill Corlett <corlett@google.com>
* genesis: Define GPIO line for USB C port polarity.Neill Corlett2021-01-201-1/+1
| | | | | | | | | | | | | | BUG=b:173566595 TEST='gpioget USB_C0_POL_L' from the EC console while flipping a USB C cable in the port. Change-Id: I39cee983428db270ccc4f50d362f013e2355ef77 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639409 Reviewed-by: Joe Tessler <jrt@chromium.org> Reviewed-by: Neill Corlett <corlett@google.com> Commit-Queue: Neill Corlett <corlett@google.com> Tested-by: Neill Corlett <corlett@google.com> Auto-Submit: Neill Corlett <corlett@google.com>
* Refactor CONFIG_FLASH_SIZE to CONFIG_FLASH_SIZE_BYTESYuval Peress2021-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | 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>
* board/genesis: Backport LTC4291 power-over-ethernet changes fromNeill Corlett2021-01-135-3/+273
| | | | | | | | | | | | | board/endeavour BUG=b:173566309 TEST=Connected a PoE device to my EVT1; tried pse # on/off commands Change-Id: I1f6a28d96c987787b1d5b21cdfe530c287cd6881 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2624928 Tested-by: Neill Corlett <corlett@google.com> Commit-Queue: Neill Corlett <corlett@google.com> Reviewed-by: Matthew Ziegelbaum <ziegs@chromium.org>
* board/genesis: Totally remove CONFIG_CHARGE_MANAGER andNeill Corlett2021-01-136-562/+6
| | | | | | | | | | | | | | CONFIG_USB_POWER_DELIVERY. Hardcode extpower_is_present() to 1 as the barrel jack is the only means of powering the board. BUG=b:173566595 TEST=Flashed to my Endeavour-C EVT1; reaches "Starting kernel" Change-Id: Ie456646bae2ca7ff5249d66bf0848fdd08caa6b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2624927 Tested-by: Neill Corlett <corlett@google.com> Commit-Queue: Neill Corlett <corlett@google.com> Reviewed-by: Matthew Ziegelbaum <ziegs@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-242-11/+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>
* tcpm: Move tcpm.h into an include directorySimon Glass2020-12-221-1/+1
| | | | | | | | | | | | | | | | | | This header file is used from quite a few files, relying on the EC build system to find includes in the driver/tcpm directory. For Zephyr we don't want to add that as an include. It makes more sense for header files to be in an include directory, so move it and fix up the users. BUG=b:175434113 BRANCH=none TEST=build Zephyr and ECOS on volteer Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I5851914b1a7d3fdc1ba911c0fbe9046afbaf6f5d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597985 Reviewed-by: Keith Short <keithshort@chromium.org>
* genesis: hardcode barrel jack connected stateMatt Ziegelbaum2020-12-041-17/+25
| | | | | | | | | | | | | | | The proto boards have an error in which GPIO_BJ_ADP_PRESENT_L never pulls low due to an error in the board layout. Since it's not possible to boot genesis with type-C power anyway, just hardcode the connection. BUG=b:173566595 TEST=Boot to AP BRANCH=None Change-Id: I56b4393b5ddce03ac79158c41f66e3463c064b83 Signed-off-by: Matt Ziegelbaum <ziegs@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552227 Reviewed-by: Joe Tessler <jrt@chromium.org>
* genesis: add initial genesis EC firmwareMatt Ziegelbaum2020-12-047-0/+1789
Genesis is similar to Ambassador, so the starting point for its firmware is a copy of Ambassador's firmware. BUG=b:173566595 TEST=None/doesn't boot due to power differences BRANCH=None Change-Id: I6de3c9ae83f58c21bf5588817cfde02c7ef1247a Signed-off-by: Matt Ziegelbaum <ziegs@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552226 Reviewed-by: Joe Tessler <jrt@chromium.org>