1 /* 2 * Copyright (c) 2025, MediaTek Inc. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef DISP_PRIV_H 8 #define DISP_PRIV_H 9 10 #include <common/debug.h> 11 #include <lib/mmio.h> 12 13 #define DISP_CFG_ENTRY(base_reg, mask) \ 14 { .base = (base_reg), .ns_mask = (mask)} 15 16 struct mtk_disp_config { 17 uint32_t base; 18 uint32_t ns_mask; 19 }; 20 21 enum DISP_ATF_CMD { 22 DISP_ATF_CMD_CONFIG_DISP_CONFIG, 23 DISP_ATF_CMD_COUNT, 24 }; 25 26 /* disable secure mode for disp */ 27 extern const struct mtk_disp_config *disp_cfg; 28 extern const size_t disp_cfg_count; 29 30 #endif /* DISP_PRIV_H */ 31