plat_params.h 710 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */

7
8
#ifndef PLAT_PARAMS_H
#define PLAT_PARAMS_H
9

10
#include <lib/bl_aux_params/bl_aux_params.h>
11
12
13
#include <stdint.h>

/* param type */
14
15
16
17
18
enum bl_aux_rk_param_type {
	BL_AUX_PARAM_RK_RESET_GPIO = BL_AUX_PARAM_VENDOR_SPECIFIC_FIRST,
	BL_AUX_PARAM_RK_POWEROFF_GPIO,
	BL_AUX_PARAM_RK_SUSPEND_GPIO,
	BL_AUX_PARAM_RK_SUSPEND_APIO,
19
20
};

21
struct bl_aux_rk_apio_info {
22
23
24
25
26
	uint8_t apio1 : 1;
	uint8_t apio2 : 1;
	uint8_t apio3 : 1;
	uint8_t apio4 : 1;
	uint8_t apio5 : 1;
27
28
};

29
30
31
struct bl_aux_param_rk_apio {
	struct bl_aux_param_header h;
	struct bl_aux_rk_apio_info apio;
32
33
};

34
#endif /* PLAT_PARAMS_H */