Simon Glass
a219f64c27
cros_ec: Sync ec_commands.h from upstream Chrome OS EC
...
Sync include/ec_commands.h from upstream commit 4f3d17aa34
("skywalker: set SLEEP_TIMEOUT_MS to 50 seconds"). The new file makes
two build assumptions that do not hold for U-Boot.
It hides '<stdint.h>' from __KERNEL__ builds, leaving UINT16_MAX
(used by EC_RES_MAX) undefined for U-Boot; widen the gate to
'!defined(__KERNEL__) || defined(__UBOOT__)'
It gates '<linux/limits.h>' on '#ifdef __KERNEL__'; the matching
'#else' branch defines BIT()/BIT_ULL()/GENMASK()/GENMASK_ULL()
locally, assuming kernel headers provide those macros otherwise.
U-Boot defines __KERNEL__ too but has no <linux/limits.h>. Nest a
'!defined(__UBOOT__)' check around the include so the __UBOOT__ path
stays in the __KERNEL__ branch (no local BIT/GENMASK defines), which
avoids redefinition warnings against U-Boot's linux/bitops.h. Pull
in linux/bitops.h up front for U-Boot so the file's own BIT() and
GENMASK() uses still resolve.
Adapt callers to two interface changes. The 'ec_current_image' enum
tag is now 'ec_image' (EC_IMAGE_* constants unchanged); rename it in
affected files to match. The VBNV-context interface was dropped
upstream, but it still used in lab Chromebooks; keep those constants and
structs in cros_ec.h
Likewise, MEC_EMI_BASE and MEC_EMI_SIZE are a U-Boot-local addition to
ec_commands.h that the upstream sync removes; preserve them in cros_ec.h
next to the VBNV block, and switch the only consumer
(arch/x86/cpu/apollolake/cpu_spl.c) to include cros_ec.h
Signed-off-by: Simon Glass <sjg@chromium.org >
2026-05-25 13:43:31 -06:00
..
2024-06-26 13:17:51 -06:00
2025-05-29 08:29:16 -06:00
2026-02-04 09:04:36 +01:00
2024-05-20 13:35:03 -06:00
2026-02-06 16:37:31 +01:00
2025-02-03 11:33:04 +08:00
2025-05-29 08:29:16 -06:00
2025-10-15 15:08:27 -06:00
2025-05-29 08:29:16 -06:00
2017-02-08 15:56:28 -05:00
2025-05-29 08:29:16 -06:00
2026-01-15 14:00:55 +01:00
2025-04-03 11:43:22 -06:00
2025-05-29 08:29:16 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-07-11 10:43:29 -06:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2024-02-15 10:38:34 +01:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2026-04-27 11:26:40 -06:00
2024-08-27 14:30:14 -06:00
2024-05-20 13:35:03 -06:00
2025-04-10 20:55:53 -06:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2024-06-26 13:17:51 -06:00
2026-02-17 13:50:22 -06:00
2024-05-20 13:35:03 -06:00
2026-05-18 08:37:13 +02:00
2024-05-20 13:35:03 -06:00
2025-01-15 08:48:42 -06:00
2026-05-01 10:30:03 +02:00
2025-10-13 14:54:33 -06:00
2025-06-25 09:50:37 -06:00
2026-02-17 13:50:22 -06:00
2026-05-01 10:30:03 +02:00
2025-05-29 08:29:16 -06:00
2025-05-29 08:29:16 -06:00
2025-01-15 08:48:42 -06:00
2025-06-25 09:50:37 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-10-07 17:49:15 -06:00
2025-05-29 08:29:16 -06:00
2025-05-13 11:30:08 -06:00
2024-05-20 13:35:03 -06:00
2025-05-30 09:49:31 +01:00
2024-06-26 13:17:51 -06:00
2024-10-09 22:04:56 -06:00
2024-05-20 13:35:03 -06:00
2025-04-24 10:44:07 -06:00
2024-05-20 13:35:03 -06:00
2026-04-22 14:23:49 -06:00
2024-07-15 12:12:17 -06:00
2024-08-02 15:16:51 -03:00
2024-07-15 12:12:17 -06:00
2026-05-25 13:43:31 -06:00
2024-06-16 12:13:44 +02:00
2026-02-17 13:50:22 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2025-05-29 08:29:16 -06:00
2024-06-07 10:48:41 -06:00
2024-09-12 17:35:37 +02:00
2024-09-12 17:35:37 +02:00
2026-04-22 14:23:49 -06:00
2026-05-01 10:30:03 +02:00
2026-05-01 10:30:03 +02:00
2025-07-28 13:04:42 -06:00
2022-03-15 16:19:29 -04:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-11-27 08:43:45 -06:00
2026-04-27 11:26:40 -06:00
2024-10-29 16:17:47 -06:00
2025-12-05 08:54:44 -06:00
2025-05-29 08:29:16 -06:00
2024-10-18 14:10:21 -06:00
2026-04-23 11:49:48 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-02 20:00:59 -06:00
2025-05-29 08:29:16 -06:00
2025-04-11 13:20:38 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2026-02-04 10:30:55 -06:00
2025-05-29 08:29:16 -06:00
2025-07-08 15:00:17 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-08-06 07:49:13 +02:00
2025-08-06 08:41:30 +02:00
2026-03-18 13:07:36 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-06-30 10:59:42 -06:00
2026-05-22 16:47:54 -06:00
2025-12-03 11:03:45 -06:00
2025-06-02 17:26:16 -06:00
2019-12-04 17:10:51 -05:00
2024-05-20 13:35:03 -06:00
2025-06-25 09:50:37 -06:00
2025-01-26 11:06:56 +01:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2026-04-27 11:26:40 -06:00
2025-05-29 08:29:16 -06:00
2024-03-07 09:23:10 -05:00
2024-05-20 13:35:03 -06:00
2026-02-17 13:50:22 -06:00
2026-02-07 11:51:43 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2026-02-25 15:07:54 +08:00
2025-05-29 08:29:16 -06:00
2025-11-18 20:06:21 +01:00
2025-06-02 17:26:16 -06:00
2024-05-20 13:35:03 -06:00
2025-08-23 16:37:20 +02:00
2026-01-15 11:09:28 +01:00
2026-02-06 16:37:31 +01:00
2026-05-01 10:30:03 +02:00
2025-12-18 10:26:22 -06:00
2024-05-20 13:35:03 -06:00
2026-01-02 15:51:54 -06:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2026-05-12 15:52:01 +02:00
2022-09-02 13:40:42 -04:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-08 16:23:51 -06:00
2024-05-20 13:35:03 -06:00
2021-07-27 14:50:47 -04:00
2023-10-24 16:34:45 -04:00
2024-05-20 13:35:03 -06:00
2022-03-04 15:20:06 -05:00
2025-05-29 08:31:07 -06:00
2025-11-06 23:26:27 +01:00
2025-12-30 11:22:57 -06:00
2024-09-18 13:01:00 -06:00
2024-05-20 13:35:03 -06:00
2025-07-24 11:49:18 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-12-24 17:02:23 +01:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-12-02 07:40:39 -06:00
2025-10-09 14:16:11 -06:00
2024-05-20 13:35:03 -06:00
2026-04-08 11:07:00 -06:00
2025-05-29 08:29:16 -06:00
2025-02-07 13:35:23 -06:00
2025-10-14 08:19:43 -06:00
2025-05-29 08:29:16 -06:00
2025-05-29 08:29:16 -06:00
2025-12-04 09:38:58 -06:00
2026-02-18 08:27:51 -06:00
2025-05-29 08:29:16 -06:00
2026-02-17 13:50:22 -06:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2024-05-20 13:35:03 -06:00
2026-02-17 13:50:22 -06:00
2020-08-07 22:31:32 -04:00
2025-05-29 08:29:16 -06:00
2025-05-29 08:29:16 -06:00
2025-01-15 08:48:42 -06:00
2024-10-17 03:12:47 +02:00
2025-10-08 13:54:59 -06:00
2025-09-16 13:43:33 -06:00
2026-04-02 16:00:29 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-05-29 08:29:16 -06:00
2025-07-29 08:44:18 +02:00
2024-07-15 12:12:17 -06:00
2024-05-20 13:35:03 -06:00
2023-06-13 08:51:07 +03:00
2024-05-20 13:35:03 -06:00
2025-12-04 09:38:58 -06:00
2024-12-31 19:00:46 -06:00
2025-10-08 11:34:54 +02:00
2024-07-15 12:12:17 -06:00
2026-05-18 11:04:14 +02:00
2025-05-29 08:29:16 -06:00
2024-07-03 07:36:32 +01:00
2026-02-06 09:29:55 -06:00
2025-05-29 08:29:16 -06:00
2024-05-20 13:35:03 -06:00
2026-04-29 10:32:04 +02:00
2024-09-18 13:00:59 -06:00
2024-10-11 11:44:47 -06:00
2025-03-17 08:06:53 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-05-22 14:26:38 -06:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2026-02-06 09:29:53 -06:00