diff options
author | Yuval Peress <peress@chromium.org> | 2021-04-06 00:10:56 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-08 07:39:47 +0000 |
commit | 74b190af723b38f3766b0bab63cf9e26f8fa7be3 (patch) | |
tree | 86e87324c64aa23d3915d9a115eb8b13c55bebc8 /zephyr/projects/kohaku/include/gpio_map.h | |
parent | f48f2ee331ead2bf641279d37ee091217e0d141c (diff) | |
download | chrome-ec-74b190af723b38f3766b0bab63cf9e26f8fa7be3.tar.gz |
zephyr: gpio: Move named GPIO entries to devicetree
Migrate NAMED_GPIO() to devicetree enums. This allows us to create
common boards and share the GPIO mappings in dts files.
BRANCH=none
BUG=none
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I41c6151569a04628ac6dcc597f05e529327b7b46
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2804495
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'zephyr/projects/kohaku/include/gpio_map.h')
-rw-r--r-- | zephyr/projects/kohaku/include/gpio_map.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/zephyr/projects/kohaku/include/gpio_map.h b/zephyr/projects/kohaku/include/gpio_map.h index 16f197f657..05fc93d5d5 100644 --- a/zephyr/projects/kohaku/include/gpio_map.h +++ b/zephyr/projects/kohaku/include/gpio_map.h @@ -9,28 +9,6 @@ #include <devicetree.h> #include <gpio_signal.h> -#define GPIO_AC_PRESENT NAMED_GPIO(acok_od) -#define GPIO_CPU_PROCHOT NAMED_GPIO(ec_prochot_odl) -#define GPIO_EC_PCH_WAKE_ODL NAMED_GPIO(pch_wake_l) -#define GPIO_EN_A_RAILS NAMED_GPIO(en_a_rails) -#define GPIO_EN_PP5000_A NAMED_GPIO(en_pp5000_a) -#define GPIO_EN_PP5000 NAMED_GPIO(en_pp5000_a) -#define GPIO_ENABLE_BACKLIGHT NAMED_GPIO(gpio_edp_bklten_od) -#define GPIO_ENTERING_RW NAMED_GPIO(entering_rw) -#define GPIO_LID_OPEN NAMED_GPIO(lid_open) -#define GPIO_PCH_PWRBTN_L NAMED_GPIO(pch_pwrbtn_l) -#define GPIO_PCH_RSMRST_L NAMED_GPIO(ec_pch_rsmrst_l) -#define GPIO_PCH_SLP_S0_L NAMED_GPIO(slp_s0_l) -#define GPIO_PCH_SLP_S3_L NAMED_GPIO(slp_s3_l) -#define GPIO_PCH_SLP_S4_L NAMED_GPIO(slp_s4_l) -#define GPIO_PCH_SYS_PWROK NAMED_GPIO(ec_pch_sys_pwrok) -#define GPIO_PG_EC_ALL_SYS_PWRGD NAMED_GPIO(pg_ec_all_sys_pwrgd) -#define GPIO_POWER_BUTTON_L NAMED_GPIO(power_button_l) -#define GPIO_PP5000_A_PG_OD NAMED_GPIO(pp5000_a_pg_od) -#define GPIO_RSMRST_L_PGOOD NAMED_GPIO(pg_ec_rsmrst_l) -#define GPIO_SYS_RESET_L NAMED_GPIO(sys_reset_l) -#define GPIO_WP_L NAMED_GPIO(wp_l) - /* Cometlake power sequencing requires this definition */ #define PP5000_PGOOD_POWER_SIGNAL_MASK POWER_SIGNAL_MASK(X86_PP5000_A_PGOOD) |