diff --git a/Kconfig b/Kconfig index 037b190fb2a2bee3bc2025fc9c8955bed9306823..b540920274c97f185738e300c3abd1d8c6b545aa 100644 --- a/Kconfig +++ b/Kconfig @@ -25,4 +25,6 @@ source "drivers/hdf/khdf/model/usb/host/Kconfig" source "drivers/hdf/khdf/model/usb/device/Kconfig" source "drivers/hdf/khdf/model/audio/Kconfig" source "drivers/hdf/khdf/model/misc/vibrator/Kconfig" -source "drivers/hdf/khdf/model/misc/dsoftbus/Kconfig" \ No newline at end of file +source "drivers/hdf/khdf/model/misc/dsoftbus/Kconfig" +source "../../../../../device/nxp/drivers/ethernet/adapter/Kconfig" +source "drivers/hdf/framework/model/input/driver/touchscreen/Kconfig" diff --git a/Makefile b/Makefile index 33c8c23cdb6740b9d25cabb9e5ac0d7135931fb0..42742d19ca58cd7aab03e33aafd22992784a85c6 100644 --- a/Makefile +++ b/Makefile @@ -51,3 +51,10 @@ obj-$(CONFIG_DRIVERS_HDF_BT) += model/network/bluetooth/ obj-$(CONFIG_DRIVERS_HDF_VIBRATOR) += model/misc/vibrator/ obj-$(CONFIG_DRIVERS_HDF_AUDIO) += model/audio/ obj-$(CONFIG_DRIVERS_HDF_DSOFTBUS) += model/misc/dsoftbus/ +# ThunderSoft for OpenHarmony start +obj-y += network/ +obj-$(CONFIG_DRIVERS_HDF_IMX8MM_ETHERNET) += ../../../../device/nxp/drivers/ethernet/adapter/ +ccflags-$(CONFIG_DRIVERS_HDF_IMX8MM_ETHERNET) += -Idrivers/net/ethernet/freescale/ +obj-$(CONFIG_DRIVERS_HDF_WIFI) += ../../../../device/nxp/drivers/wifi/ap6212/ +# ThunderSoft for OpenHarmony end + diff --git a/model/audio/Kconfig b/model/audio/Kconfig index a760df7f5d214b951def6ef647d352c053a8feb2..e0312122304b22fa6a176e09a36591da349feab1 100755 --- a/model/audio/Kconfig +++ b/model/audio/Kconfig @@ -11,3 +11,17 @@ config DRIVERS_HDF_AUDIO_TEST depends on DRIVERS_HDF_AUDIO help Answer Y to choice HDF Audio Test input driver. + +config ARCH_ARM64 + bool "Enable HDF arm64 lib" + default n + depends on DRIVERS_HDF_AUDIO + help + Answer Y to choice HDF arm64 lib. + +config IMX8MM_AUDIO + bool "Enable HDF imx8mm driver" + default n + depends on DRIVERS_HDF_AUDIO + help + Answer Y to choice HDF imx8mm driver. \ No newline at end of file diff --git a/model/audio/Makefile b/model/audio/Makefile index f6eeeb8a39e8170a8a70e03d656200ab752e8db9..6f076b266294079708ed730e7cb77311c99713c5 100755 --- a/model/audio/Makefile +++ b/model/audio/Makefile @@ -28,17 +28,16 @@ obj-y += \ $(KHDF_AUDIO_ROOT_DIR)/common/src/audio_platform_base.o \ $(KHDF_AUDIO_ROOT_DIR)/sapm/src/audio_sapm.o \ $(KHDF_AUDIO_ROOT_DIR)/dispatch/src/audio_stream_dispatch.o \ - $(KHDF_AUDIO_ROOT_DIR)/dispatch/src/audio_control_dispatch.o \ - $(KHDF_AUDIO_CODEC_DIR)/tfa9879/accessory/src/tfa9879_accessory_adapter.o \ - $(KHDF_AUDIO_CODEC_DIR)/tfa9879/accessory/src/tfa9879_accessory_impl.o \ - $(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/codec/src/hi3516_codec_adapter.o \ - $(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/codec/src/hi3516_codec_impl.o \ - $(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/codec/src/hi3516_codec_ops.o \ - $(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/dsp/src/dsp_adapter.o \ - $(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/soc/src/hi3516_dai_adapter.o \ - $(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/soc/src/hi3516_aiao_impl.o \ - $(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/soc/src/hi3516_platform_ops.o \ - $(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/soc/src/hi3516_platform_adapter.o + $(KHDF_AUDIO_ROOT_DIR)/dispatch/src/audio_control_dispatch.o + +obj-$(CONFIG_IMX8MM_AUDIO) += \ + $(KHDF_AUDIO_CODEC_DIR)/imx8mm/soc/src/sai_driver.o \ + $(KHDF_AUDIO_CODEC_DIR)/imx8mm/soc/src/dma_driver.o \ + $(KHDF_AUDIO_CODEC_DIR)/imx8mm/soc/src/imx8mm_platform_ops.o \ + $(KHDF_AUDIO_CODEC_DIR)/imx8mm/soc/src/imx8mm_dai_adapter.o \ + $(KHDF_AUDIO_CODEC_DIR)/imx8mm/soc/src/imx8mm_platform_adapter.o \ + $(KHDF_AUDIO_CODEC_DIR)/wm8904/codec/src/wm8904.o \ + $(KHDF_AUDIO_CODEC_DIR)/wm8904/codec/src/wm8904_impl.o obj-$(CONFIG_ARCH_HI3516DV300) += \ $(KHDF_AUDIO_ROOT_DIR)/core/src/audio_core.o \ @@ -83,9 +82,8 @@ ccflags-y += -lm -lc -lgcc -std=gnu99 -Werror \ -Iinclude/$(KHDF_FRAMEWORK_ROOT_DIR)/model/audio/sapm/include \ -Iinclude/$(KHDF_FRAMEWORK_ROOT_DIR)/model/audio/dispatch/include \ -Iinclude/$(KHDF_FRAMEWORK_ROOT_DIR)/model/audio/common/include \ - -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/tfa9879/accessory/include \ - -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/codec/include \ - -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/soc/include \ - -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/hi3516dv300/include \ -Iinclude/$(KHDF_AUDIO_PERIPHERAL_ROOT_DIR)/audio/interfaces/include \ - -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/include + -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/include \ + -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/imx8mm/soc/include \ + -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/imx8mm/include \ + -Iinclude/$(KHDF_AUDIO_CODEC_DIR)/wm8904/codec/include diff --git a/model/input/Makefile b/model/input/Makefile index 024bc5e2d1b856f72a17ec8583d95f4cf1871422..ab7c92bcfe1f4adcfd5ad0bb4fc942ecb6b60fe7 100644 --- a/model/input/Makefile +++ b/model/input/Makefile @@ -25,6 +25,8 @@ obj-$(CONFIG_DRIVERS_HDF_INPUT) += \ obj-$(CONFIG_DRIVERS_HDF_TP_5P5_GT911) += \ $(INPUT_ROOT_DIR)/touchscreen/touch_gt911.o +obj-$(CONFIG_ARCH_NXP_TOUCH) += \ + $(INPUT_ROOT_DIR)/touchscreen/touch_ft5x06.o obj-$(CONFIG_DRIVERS_HDF_TP_2P35_FT6236) += \ $(INPUT_ROOT_DIR)/touchscreen/touch_ft6336.o diff --git a/model/network/wifi/hdfwifi.mk b/model/network/wifi/hdfwifi.mk index 63703c3544c08877984f3c786776c29b3e73476c..915903b079e8aaea2023b1025003941459a6cbe9 100644 --- a/model/network/wifi/hdfwifi.mk +++ b/model/network/wifi/hdfwifi.mk @@ -14,7 +14,7 @@ HDF_WIFI_FRAMEWORKS_ROOT = $(HDF_DIR_PREFIX)/framework/model/network/wifi HDF_WIFI_KHDF_FRAMEWORKS_ROOT = $(HDF_DIR_PREFIX)/adapter/khdf/linux/model/network/wifi -HDF_WIFI_VENDOR_ROOT = $(HDF_VENDOR_PREFIX)/device/hisilicon/drivers/wifi/driver +HDF_WIFI_VENDOR_ROOT = $(HDF_VENDOR_PREFIX)/device/nxp/drivers/wifi HDF_FRAMEWORKS_INC := \ -Idrivers/hdf/framework/ability/sbuf/include \ -Idrivers/hdf/framework/core/common/include/host \ diff --git a/model/usb/device/f_generic.c b/model/usb/device/f_generic.c index 6878c95797b997e83e6a7d3ebd36f86efc22652b..1d9bde529463c276f77ffcc68824600aef212d97 100644 --- a/model/usb/device/f_generic.c +++ b/model/usb/device/f_generic.c @@ -28,6 +28,7 @@ #include "u_f.h" #include "u_os_desc.h" #include "configfs.h" +#include "linux/swait.h" #define FUNCTIONFS_MAGIC 0xa647361 /* Chosen by a honest dice roll ;) */ diff --git a/network/Makefile b/network/Makefile index e6891c599a534da63764ae2e38b25f750906e69f..93b3a29b02f696bb7706ae57ec70d1e53d9813c6 100644 --- a/network/Makefile +++ b/network/Makefile @@ -12,4 +12,4 @@ # # -obj-$(CONFIG_DRIVERS_HDF_WIFI) += src/ \ No newline at end of file +obj-y += src/ diff --git a/network/src/Makefile b/network/src/Makefile index 34d25ae0f500475e6f3eaa77127a910e27a38dff..408e22945c0a96c15798ba5a73d5c283f71bffd1 100755 --- a/network/src/Makefile +++ b/network/src/Makefile @@ -12,9 +12,9 @@ # # -obj-$(CONFIG_DRIVERS_HDF_WIFI) += net_device_adapter.o netbuf_adapter.o +obj-y += net_device_adapter.o netbuf_adapter.o -ccflags-$(CONFIG_DRIVERS_HDF_WIFI) += \ +ccflags-y += \ -Idrivers/hdf/framework/model/network/common/netdevice \ -Idrivers/hdf/framework/include/net\ -Idrivers/hdf/khdf/network/include \ diff --git a/osal/src/osal_mutex.c b/osal/src/osal_mutex.c index 180954076b52c052b379875d3a549f1fea1e6e53..85f66c9fdd704a87d85b25365696ea492181697f 100644 --- a/osal/src/osal_mutex.c +++ b/osal/src/osal_mutex.c @@ -73,14 +73,27 @@ int32_t OsalMutexLock(struct OsalMutex *mutex) } EXPORT_SYMBOL(OsalMutexLock); +int32_t OsalMutexTryLock(struct OsalMutex *mutex) +{ + int32_t retVal = 0; + if (mutex == NULL || mutex->realMutex == NULL) { + HDF_LOGE("%s invalid param", __func__); + return HDF_ERR_INVALID_PARAM; + } + + retVal = mutex_trylock((struct mutex *)mutex->realMutex); + return HDF_SUCCESS; +} +EXPORT_SYMBOL(OsalMutexTryLock); + int32_t OsalMutexTimedLock(struct OsalMutex *mutex, uint32_t mSec) { - if (mutex == NULL || mutex->realMutex == NULL) { - HDF_LOGE("%s invalid param", __func__); - return HDF_ERR_INVALID_PARAM; - } + if (mutex == NULL || mutex->realMutex == NULL) { + HDF_LOGE("%s invalid param", __func__); + return HDF_ERR_INVALID_PARAM; + } - (void)mSec; + (void)mSec; mutex_lock((struct mutex *)mutex->realMutex); return HDF_SUCCESS; diff --git a/platform/Kconfig b/platform/Kconfig index 658fbf587e0325255e2758dfbafe478bdc6381be..e19e4ee2324bddbee8435e25b956f1fc34f26e8d 100644 --- a/platform/Kconfig +++ b/platform/Kconfig @@ -85,3 +85,38 @@ config DRIVERS_HDF_PLATFORM_RTC depends on DRIVERS_HDF_PLATFORM help Answer Y to enable HDF platform rtc driver. + +config DRIVERS_HDF_PLATFORM_IMX8MM_MIPI_DSI + bool "Enable HDF platform imx8mm mipi dsi driver" + default n + depends on DRIVERS_HDF_PLATFORM_MIPI_DSI + help + Answer Y to enable HDF platform imx8mm mipi dsi driver. + +config IMX8MM_WDT + bool "Enable HDF platform imx8mm watchdog driver" + default n + depends on DRIVERS_HDF_PLATFORM + help + Answer Y to enable HDF platform watchdog driver. + +config IMX8MM_SDIO + bool "Enable HDF platform imx8mm sdio driver" + default n + depends on DRIVERS_HDF_PLATFORM + help + Answer Y to enable HDF platform imx8mm sdio driver. + +config IMX8MM_RTC + bool "Enable HDF platform imx8mm rtc driver" + default n + depends on DRIVERS_HDF_PLATFORM + help + Answer Y to enable HDF platform imx8mm rtc driver. + +config IMX8MM_EMMC + bool "Enable HDF platform imx8mm emmc driver" + default n + depends on DRIVERS_HDF_PLATFORM_MIPI_DSI + help + Answer Y to enable HDF platform imx8mm emmc driver. diff --git a/platform/emmc/emmc_adapter.c b/platform/emmc/emmc_adapter.c index 449cab0213e5c94dfdd5b087e50b496fca337a4c..6c4bab3ee3061bf3090d56e4ee3941007b2e4bc0 100644 --- a/platform/emmc/emmc_adapter.c +++ b/platform/emmc/emmc_adapter.c @@ -1,7 +1,7 @@ /* * emmc_adapter.c * - * hi35xx linux emmc driver implement. + * linux emmc driver implement. * * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * @@ -27,45 +27,49 @@ #define HDF_LOG_TAG emmc_adapter_c +#if defined(CONFIG_IMX8MM_EMMC) +struct mmc_host *sdhci_esdhc_get_mmc_host(int slot); +#else struct mmc_host *himci_get_mmc_host(int slot); +#endif // CONFIG_IMX8MM_EMMC -int32_t Hi35xxLinuxEmmcGetCid(struct EmmcDevice *dev, uint8_t *cid, uint32_t size) +int32_t LinuxEmmcGetCid(struct EmmcDevice *dev, uint8_t *cid, uint32_t size) { struct mmc_host *mmcHost = NULL; struct MmcCntlr *cntlr = NULL; if (dev == NULL || dev->mmc.cntlr == NULL) { - HDF_LOGE("Hi35xxLinuxEmmcGetCid: dev or cntlr is null."); + HDF_LOGE("LinuxEmmcGetCid: dev or cntlr is null."); return HDF_ERR_INVALID_OBJECT; } if (cid == NULL || size < EMMC_CID_LEN) { - HDF_LOGE("Hi35xxLinuxEmmcGetCid: cid is null or size is invalid."); + HDF_LOGE("LinuxEmmcGetCid: cid is null or size is invalid."); return HDF_ERR_INVALID_PARAM; } cntlr = dev->mmc.cntlr; mmcHost = (struct mmc_host *)cntlr->priv; if (mmcHost == NULL) { - HDF_LOGE("Hi35xxLinuxEmmcGetCid: mmcHost is NULL!"); + HDF_LOGE("LinuxEmmcGetCid: mmcHost is NULL!"); return HDF_ERR_NOT_SUPPORT; } if (mmcHost->card == NULL) { - HDF_LOGE("Hi35xxLinuxEmmcGetCid: card is null."); + HDF_LOGE("LinuxEmmcGetCid: card is null."); return HDF_ERR_NOT_SUPPORT; } if (memcpy_s(cid, sizeof(uint8_t) * size, (uint8_t *)(mmcHost->card->raw_cid), sizeof(mmcHost->card->raw_cid)) != EOK) { - HDF_LOGE("Hi35xxLinuxEmmcGetCid: memcpy_s fail!"); + HDF_LOGE("LinuxEmmcGetCid: memcpy_s fail!"); return HDF_FAILURE; } return HDF_SUCCESS; } static struct EmmcDeviceOps g_emmcMethod = { - .getCid = Hi35xxLinuxEmmcGetCid, + .getCid = LinuxEmmcGetCid, }; -static void Hi35xxLinuxEmmcDeleteCntlr(struct MmcCntlr *cntlr) +static void LinuxEmmcDeleteCntlr(struct MmcCntlr *cntlr) { if (cntlr == NULL) { return; @@ -79,110 +83,112 @@ static void Hi35xxLinuxEmmcDeleteCntlr(struct MmcCntlr *cntlr) OsalMemFree(cntlr); } -static int32_t Hi35xxLinuxEmmcCntlrParse(struct MmcCntlr *cntlr, struct HdfDeviceObject *obj) +static int32_t LinuxEmmcCntlrParse(struct MmcCntlr *cntlr, struct HdfDeviceObject *obj) { const struct DeviceResourceNode *node = NULL; struct DeviceResourceIface *drsOps = NULL; int32_t ret; if (obj == NULL || cntlr == NULL) { - HDF_LOGE("Hi35xxLinuxEmmcCntlrParse: input para is NULL."); + HDF_LOGE("LinuxEmmcCntlrParse: input para is NULL."); return HDF_FAILURE; } node = obj->property; if (node == NULL) { - HDF_LOGE("Hi35xxLinuxEmmcCntlrParse: drs node is NULL."); + HDF_LOGE("LinuxEmmcCntlrParse: drs node is NULL."); return HDF_FAILURE; } drsOps = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); if (drsOps == NULL || drsOps->GetUint16 == NULL || drsOps->GetUint32 == NULL) { - HDF_LOGE("Hi35xxLinuxEmmcCntlrParse: invalid drs ops fail!"); + HDF_LOGE("LinuxEmmcCntlrParse: invalid drs ops fail!"); return HDF_FAILURE; } ret = drsOps->GetUint16(node, "hostId", &(cntlr->index), 0); if (ret != HDF_SUCCESS) { - HDF_LOGE("Hi35xxLinuxEmmcCntlrParse: read hostIndex fail!"); + HDF_LOGE("LinuxEmmcCntlrParse: read hostIndex fail!"); return ret; } ret = drsOps->GetUint32(node, "devType", &(cntlr->devType), 0); if (ret != HDF_SUCCESS) { - HDF_LOGE("Hi35xxLinuxEmmcCntlrParse: read devType fail!"); + HDF_LOGE("LinuxEmmcCntlrParse: read devType fail!"); return ret; } return HDF_SUCCESS; } -static int32_t Hi35xxLinuxEmmcBind(struct HdfDeviceObject *obj) +static int32_t LinuxEmmcBind(struct HdfDeviceObject *obj) { struct MmcCntlr *cntlr = NULL; int32_t ret; - HDF_LOGE("Hi35xxLinuxEmmcBind: entry!"); + HDF_LOGE("LinuxEmmcBind: entry!"); if (obj == NULL) { - HDF_LOGE("Hi35xxLinuxEmmcBind: Fail, obj is NULL."); + HDF_LOGE("LinuxEmmcBind: Fail, obj is NULL."); return HDF_ERR_INVALID_OBJECT; } cntlr = (struct MmcCntlr *)OsalMemCalloc(sizeof(struct MmcCntlr)); if (cntlr == NULL) { - HDF_LOGE("Hi35xxLinuxEmmcBind: no mem for MmcCntlr."); + HDF_LOGE("LinuxEmmcBind: no mem for MmcCntlr."); return HDF_ERR_MALLOC_FAIL; } cntlr->ops = NULL; cntlr->hdfDevObj = obj; obj->service = &cntlr->service; - ret = Hi35xxLinuxEmmcCntlrParse(cntlr, obj); + ret = LinuxEmmcCntlrParse(cntlr, obj); if (ret != HDF_SUCCESS) { - HDF_LOGE("Hi35xxLinuxEmmcBind: cntlr parse fail."); - goto _ERR; + HDF_LOGE("LinuxEmmcBind: cntlr parse fail."); + LinuxEmmcDeleteCntlr(cntlr); + return HDF_FAILURE; } - cntlr->priv = (void *)himci_get_mmc_host((int32_t)cntlr->index); +#if defined(CONFIG_IMX8MM_EMMC) + cntlr->priv = (void *)sdhci_esdhc_get_mmc_host((int32_t)cntlr->index); +#else + cntlr->priv = (void *)himci_get_mmc_host((int32_t)cntlr->index); +#endif // CONFIG_IMX8MM_EMMC ret = MmcCntlrAdd(cntlr); if (ret != HDF_SUCCESS) { - HDF_LOGE("Hi35xxLinuxEmmcBind: cntlr add fail."); - goto _ERR; + HDF_LOGE("LinuxEmmcBind: cntlr add fail."); + LinuxEmmcDeleteCntlr(cntlr); + return HDF_FAILURE; } ret = MmcCntlrAllocDev(cntlr, (enum MmcDevType)cntlr->devType); if (ret != HDF_SUCCESS) { - HDF_LOGE("Hi35xxLinuxEmmcBind: alloc dev fail."); - goto _ERR; + HDF_LOGE("LinuxEmmcBind: alloc dev fail."); + LinuxEmmcDeleteCntlr(cntlr); + return HDF_FAILURE; } MmcDeviceAddOps(cntlr->curDev, &g_emmcMethod); - HDF_LOGD("Hi35xxLinuxEmmcBind: Success!"); + HDF_LOGD("LinuxEmmcBind: Success!"); return HDF_SUCCESS; - -_ERR: - Hi35xxLinuxEmmcDeleteCntlr(cntlr); - HDF_LOGE("Hi35xxLinuxEmmcBind: Fail!"); - return HDF_FAILURE; } -static int32_t Hi35xxLinuxEmmcInit(struct HdfDeviceObject *obj) +static int32_t LinuxEmmcInit(struct HdfDeviceObject *obj) { (void)obj; - HDF_LOGD("Hi35xxLinuxEmmcInit: Success!"); + HDF_LOGD("LinuxEmmcInit: Success!"); return HDF_SUCCESS; } -static void Hi35xxLinuxEmmcRelease(struct HdfDeviceObject *obj) +static void LinuxEmmcRelease(struct HdfDeviceObject *obj) { if (obj == NULL) { return; } - Hi35xxLinuxEmmcDeleteCntlr((struct MmcCntlr *)obj->service); + LinuxEmmcDeleteCntlr((struct MmcCntlr *)obj->service); } -struct HdfDriverEntry g_emmcDriverEntry = { +struct HdfDriverEntry g_emmcdriverentry = { .moduleVersion = 1, - .Bind = Hi35xxLinuxEmmcBind, - .Init = Hi35xxLinuxEmmcInit, - .Release = Hi35xxLinuxEmmcRelease, + .Bind = LinuxEmmcBind, + .Init = LinuxEmmcInit, + .Release = LinuxEmmcRelease, .moduleName = "HDF_PLATFORM_EMMC", }; -HDF_INIT(g_emmcDriverEntry); +HDF_INIT(g_emmcdriverentry); diff --git a/platform/mipi_dsi/Makefile b/platform/mipi_dsi/Makefile index 82728cce50b4d91a65cb0f597f55936964bc73ff..9cbb95bdba3b30fcd0c5178f0c27893350941635 100644 --- a/platform/mipi_dsi/Makefile +++ b/platform/mipi_dsi/Makefile @@ -17,8 +17,11 @@ include drivers/hdf/khdf/platform/platform.mk obj-y += $(HDF_PLATFORM_FRAMEWORKS_ROOT)/src/mipi_dsi_core.o \ $(HDF_PLATFORM_FRAMEWORKS_ROOT)/src/mipi_dsi_if.o \ mipi_dsi_adapter.o - -obj-y += mipi_tx_dev.o \ - mipi_tx_hi35xx.o +ifeq ($(CONFIG_DRIVERS_HDF_PLATFORM_IMX8MM_MIPI_DSI), y) +obj-y += mipi_drm_adapter.o +else +obj-y += mipi_tx_dev.o +obj-y += mipi_tx_hi35xx.o +endif EXTRA_CFLAGS += -Wno-error=date-time diff --git a/platform/mipi_dsi/mipi_drm_adapter.c b/platform/mipi_dsi/mipi_drm_adapter.c new file mode 100644 index 0000000000000000000000000000000000000000..231039aa798cc9c9e980990b4e6d1bfa87731a68 --- /dev/null +++ b/platform/mipi_dsi/mipi_drm_adapter.c @@ -0,0 +1,209 @@ +/* + * mipi_drm_adapter.c + * + * Mipi drm adapter driver. + * + * Copyright (c) 2021 Huawei Device Co., Ltd. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#include +#include "hdf_base.h" +#include +#include