Merge branch 'android-4.14-spl-topic' into exynos9609
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / include / crypto / smu.h
1 /*
2 * Copyright (C) 2016 Samsung Electronics Co., Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9
10 #ifndef _EXYNOS_SMU_H_
11 #define _EXYNOS_SMU_H_
12
13 #define ACCESS_CONTROL_ABORT 0x14
14
15 enum smu_id {
16 SMU_EMBEDDED = 0,
17 SMU_UFSCARD = 1,
18 SMU_SDCARD = 2,
19 SMU_ID_MAX,
20 };
21
22 enum smu_command {
23 SMU_INIT = 0,
24 SMU_SET = 1,
25 SMU_ABORT = 2,
26 };
27
28 int exynos_smu_init(int id, int smu_cmd);
29 int exynos_smu_resume(int id);
30 int exynos_smu_abort(int id, int smu_cmd);
31 #endif /* _EXYNOS_SMU_H_ */