Rex-BC Chen | b48c6c4 | 2021-04-12 11:10:31 +0800 | [diff] [blame] | 1 | /* |
developer | ec6eef7 | 2022-07-11 18:48:43 +0800 | [diff] [blame] | 2 | * Copyright (c) 2020-2022, MediaTek Inc. All rights reserved. |
Rex-BC Chen | b48c6c4 | 2021-04-12 11:10:31 +0800 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef MT_DP_H |
| 8 | #define MT_DP_H |
| 9 | |
| 10 | #define DP_TX_SECURE_REG11 (0x2c) |
| 11 | |
| 12 | #define VIDEO_MUTE_SEL_SECURE_FLDMASK (0x10) |
| 13 | #define VIDEO_MUTE_SW_SECURE_FLDMASK (0x8) |
| 14 | |
| 15 | enum DP_ATF_HW_TYPE { |
| 16 | DP_ATF_TYPE_DP = 0, |
| 17 | DP_ATF_TYPE_EDP = 1 |
| 18 | }; |
| 19 | |
| 20 | enum DP_ATF_CMD { |
| 21 | DP_ATF_DP_VIDEO_UNMUTE = 0x20, |
| 22 | DP_ATF_EDP_VIDEO_UNMUTE, |
| 23 | DP_ATF_CMD_COUNT |
| 24 | }; |
| 25 | |
| 26 | int32_t dp_secure_handler(uint64_t cmd, uint64_t para, uint32_t *val); |
| 27 | |
| 28 | #endif |