kernel_samsung_a53x/include/soc/samsung/exynos-el3_mon.h

32 lines
874 B
C
Raw Normal View History

2024-06-15 21:02:09 +02:00
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* EXYNOS - EL3 Monitor support
* Author: Junho Choi <junhosj.choi@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __EXYNOS_EL3_MON_H
#define __EXYNOS_EL3_MON_H
/* Error code */
#define EXYNOS_ERROR_TZASC_WRONG_REGION (-1)
#define EXYNOS_ERROR_ALREADY_INITIALIZED (1)
#define EXYNOS_ERROR_NOT_VALID_ADDRESS (0x1000)
/* Mode for setting TZPC of runtime PM domain */
#define EXYNOS_GET_IN_PD_DOWN (0)
#define EXYNOS_WAKEUP_PD_DOWN (1)
#define RUNTIME_PM_TZPC_GROUP (2)
extern int exynos_pd_tz_save(unsigned int addr);
extern int exynos_pd_tz_restore(unsigned int addr);
#endif /* __EXYNOS_EL3_MON_H */