pm_src.c 835 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2018 Marvell International Ltd.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. * https://spdx.org/licenses
  6. */
  7. #include <a3700_pm.h>
  8. #include <plat_marvell.h>
  9. /* This struct provides the PM wake up src configuration for A3720 Development Board */
  10. static struct pm_wake_up_src_config wake_up_src_cfg = {
  11. .wake_up_src_num = 3,
  12. .wake_up_src[0] = {
  13. .wake_up_src_type = WAKE_UP_SRC_GPIO,
  14. .wake_up_data = {
  15. .gpio_data.bank_num = 0, /* North Bridge */
  16. .gpio_data.gpio_num = 14
  17. }
  18. },
  19. .wake_up_src[1] = {
  20. .wake_up_src_type = WAKE_UP_SRC_GPIO,
  21. .wake_up_data = {
  22. .gpio_data.bank_num = 1, /* South Bridge */
  23. .gpio_data.gpio_num = 2
  24. }
  25. },
  26. .wake_up_src[2] = {
  27. .wake_up_src_type = WAKE_UP_SRC_UART1,
  28. }
  29. };
  30. struct pm_wake_up_src_config *mv_wake_up_src_config_get(void)
  31. {
  32. return &wake_up_src_cfg;
  33. }