bc48ce8ca345bccf457330fcc7eea891beac6bb8
[project/bcm63xx/atf.git] / plat / marvell / a3700 / a3700 / board / pm_src.c
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
10 /* This struct provides the PM wake up src configuration */
11 static struct pm_wake_up_src_config wake_up_src_cfg = {
12 .wake_up_src_num = 3,
13 .wake_up_src[0] = {
14 .wake_up_src_type = WAKE_UP_SRC_GPIO,
15 .wake_up_data = {
16 .gpio_data.bank_num = 0, /* North Bridge */
17 .gpio_data.gpio_num = 14
18 }
19 },
20 .wake_up_src[1] = {
21 .wake_up_src_type = WAKE_UP_SRC_GPIO,
22 .wake_up_data = {
23 .gpio_data.bank_num = 1, /* South Bridge */
24 .gpio_data.gpio_num = 2
25 }
26 },
27 .wake_up_src[2] = {
28 .wake_up_src_type = WAKE_UP_SRC_UART1,
29 }
30 };
31
32 struct pm_wake_up_src_config *mv_wake_up_src_config_get(void)
33 {
34 return &wake_up_src_cfg;
35 }
36