pm_src.c 835 Bytes
Newer Older
1
2
3
4
5
6
/*
 * Copyright (C) 2018 Marvell International Ltd.
 *
 * SPDX-License-Identifier:	BSD-3-Clause
 * https://spdx.org/licenses
 */
7

8
9
10
#include <a3700_pm.h>
#include <plat_marvell.h>

11
/* This struct provides the PM wake up src configuration for A3720 Development Board */
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
static struct pm_wake_up_src_config wake_up_src_cfg = {
	.wake_up_src_num = 3,
	.wake_up_src[0] = {
		.wake_up_src_type = WAKE_UP_SRC_GPIO,
		.wake_up_data = {
			.gpio_data.bank_num = 0, /* North Bridge */
			.gpio_data.gpio_num = 14
		}
	},
	.wake_up_src[1] = {
		.wake_up_src_type = WAKE_UP_SRC_GPIO,
		.wake_up_data = {
			.gpio_data.bank_num = 1, /* South Bridge */
			.gpio_data.gpio_num = 2
		}
	},
	.wake_up_src[2] = {
		.wake_up_src_type = WAKE_UP_SRC_UART1,
	}
};

struct pm_wake_up_src_config *mv_wake_up_src_config_get(void)
{
	return &wake_up_src_cfg;
}