blob: 247f73bc4b71c8723f0ce922312b0c3951ffc02b [file] [log] [blame]
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +03001/*
2 * Copyright (C) 2018 Marvell International Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 * https://spdx.org/licenses
6 */
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +03008#include <a3700_pm.h>
9#include <plat_marvell.h>
10
Pali Roháre7704b02021-04-06 19:18:30 +020011/* This struct provides the PM wake up src configuration for A3720 Development Board */
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030012static 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
33struct pm_wake_up_src_config *mv_wake_up_src_config_get(void)
34{
35 return &wake_up_src_cfg;
36}
37