Konstantin Porotchkin | e7be6e2 | 2018-10-08 16:53:09 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 Marvell International Ltd. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * https://spdx.org/licenses |
| 6 | */ |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | |
Konstantin Porotchkin | e7be6e2 | 2018-10-08 16:53:09 +0300 | [diff] [blame] | 8 | #include <a3700_pm.h> |
| 9 | #include <plat_marvell.h> |
| 10 | |
Pali Rohár | e7704b0 | 2021-04-06 19:18:30 +0200 | [diff] [blame] | 11 | /* This struct provides the PM wake up src configuration for A3720 Development Board */ |
Konstantin Porotchkin | e7be6e2 | 2018-10-08 16:53:09 +0300 | [diff] [blame] | 12 | static struct pm_wake_up_src_config wake_up_src_cfg = { |
| 13 | .wake_up_src_num = 3, |
| 14 | .wake_up_src[0] = { |
| 15 | .wake_up_src_type = WAKE_UP_SRC_GPIO, |
| 16 | .wake_up_data = { |
| 17 | .gpio_data.bank_num = 0, /* North Bridge */ |
| 18 | .gpio_data.gpio_num = 14 |
| 19 | } |
| 20 | }, |
| 21 | .wake_up_src[1] = { |
| 22 | .wake_up_src_type = WAKE_UP_SRC_GPIO, |
| 23 | .wake_up_data = { |
| 24 | .gpio_data.bank_num = 1, /* South Bridge */ |
| 25 | .gpio_data.gpio_num = 2 |
| 26 | } |
| 27 | }, |
| 28 | .wake_up_src[2] = { |
| 29 | .wake_up_src_type = WAKE_UP_SRC_UART1, |
| 30 | } |
| 31 | }; |
| 32 | |
| 33 | struct pm_wake_up_src_config *mv_wake_up_src_config_get(void) |
| 34 | { |
| 35 | return &wake_up_src_cfg; |
| 36 | } |
| 37 | |