feat(mt8196): add Mediatek MMinfra stub implementation

Implement stub functions for the MMinfra (Multimedia Infrastructure)
driver to ensure that the build can pass when a prebuilt library is
not available.

Change-Id: Iadac654950c868d3743b13a1d6f7ab5d1015fb86
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
This commit is contained in:
Yong Wu 2024-12-31 09:58:28 +08:00 committed by Gavin Liu
parent 49d8c11285
commit 4794746eec
4 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/*
* Copyright (c) 2025, MediaTek Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <drivers/mminfra_public.h>
int mminfra_get_if_in_use(void)
{
return 0;
}
int mminfra_put(void)
{
return 0;
}

View file

@ -0,0 +1,17 @@
#
# Copyright (c) 2025, MediaTek Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
LOCAL_DIR := $(call GET_LOCAL_DIR)
MODULE := mminfra
PLAT_INCLUDES += -I${MTK_PLAT}/include/drivers/
ifeq ($(MTKLIB_PATH),)
LOCAL_SRCS-y := ${LOCAL_DIR}/mminfra_stub.c
endif
$(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2025, MediaTek Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef MMINFRA_PUBLIC_H
#define MMINFRA_PUBLIC_H
#define MMINFRA_RET_ERR (-1)
#define MMINFRA_RET_POWER_OFF 0
#define MMINFRA_RET_POWER_ON 1
int mminfra_get_if_in_use(void);
int mminfra_put(void);
#endif

View file

@ -34,6 +34,7 @@ MODULES-y += $(MTK_PLAT)/drivers/dp
MODULES-y += $(MTK_PLAT)/drivers/emi
MODULES-y += $(MTK_PLAT)/drivers/gicv3
MODULES-y += $(MTK_PLAT)/drivers/mcusys
MODULES-y += $(MTK_PLAT)/drivers/mminfra
MODULES-y += $(MTK_PLAT)/drivers/spm
MODULES-y += $(MTK_PLAT)/drivers/timer
MODULES-y += $(MTK_PLAT)/drivers/vcp