forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/media/platform/qcom/venus/hfi_venus_io.h
....@@ -1,16 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
34 * Copyright (C) 2017 Linaro Ltd.
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 and
7
- * only version 2 as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
145 */
156 #ifndef __VENUS_HFI_VENUS_IO_H__
167 #define __VENUS_HFI_VENUS_IO_H__
....@@ -112,6 +103,14 @@
112103 #define WRAPPER_CPU_STATUS (WRAPPER_BASE + 0x2014)
113104 #define WRAPPER_CPU_STATUS_WFI BIT(0)
114105 #define WRAPPER_SW_RESET (WRAPPER_BASE + 0x3000)
106
+#define WRAPPER_CPA_START_ADDR (WRAPPER_BASE + 0x1020)
107
+#define WRAPPER_CPA_END_ADDR (WRAPPER_BASE + 0x1024)
108
+#define WRAPPER_FW_START_ADDR (WRAPPER_BASE + 0x1028)
109
+#define WRAPPER_FW_END_ADDR (WRAPPER_BASE + 0x102C)
110
+#define WRAPPER_NONPIX_START_ADDR (WRAPPER_BASE + 0x1030)
111
+#define WRAPPER_NONPIX_END_ADDR (WRAPPER_BASE + 0x1034)
112
+#define WRAPPER_A9SS_SW_RESET (WRAPPER_BASE + 0x3000)
113
+#define WRAPPER_A9SS_SW_RESET_BIT BIT(4)
115114
116115 /* Venus 4xx */
117116 #define WRAPPER_VCODEC0_MMCC_POWER_STATUS (WRAPPER_BASE + 0x90)