[][Add Proslic SI3218x audio codec driver]

[Description]
Add Proslic SI3218x audio codec driver

[Release-log]
N/A

Change-Id: I30edf714fda413b220b6a0f3e301a7bc3f899c08
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/5396999
diff --git a/target/linux/mediatek/files-5.4/sound/soc/codecs/si3218x/config_inc/si_voice_datatypes.h b/target/linux/mediatek/files-5.4/sound/soc/codecs/si3218x/config_inc/si_voice_datatypes.h
new file mode 100644
index 0000000..520a79d
--- /dev/null
+++ b/target/linux/mediatek/files-5.4/sound/soc/codecs/si3218x/config_inc/si_voice_datatypes.h
@@ -0,0 +1,60 @@
+/* SPDX-License-Identifier: GPL-2.0 */

+/*

+ * si_voice_datatypes.h

+ * ProSLIC datatypes file

+ *

+ * Author(s): 

+ * laj

+ *

+ * Distributed by: 

+ * Silicon Laboratories, Inc

+ *

+ * This file contains proprietary information.	 

+ * No dissemination allowed without prior written permission from

+ * Silicon Laboratories, Inc.

+ *

+ * File Description:

+ * This is the header file that contains

+ * type definitions for the data types

+ * used in the demonstration code.

+ *

+ */

+#ifndef DATATYPES_H

+#define DATATYPES_H

+#include "proslic_api_config.h"

+

+#ifndef TRUE

+#define TRUE (1)

+#endif

+#ifndef FALSE

+#define FALSE (0)

+#endif

+

+#ifndef NULL

+#define NULL ((void *) 0)

+#endif

+

+#include <linux/types.h>

+typedef u_int8_t            BOOLEAN;

+typedef int8_t              int8;

+typedef u_int8_t            uInt8;

+typedef uInt8               uChar;

+typedef int16_t             int16;

+typedef u_int16_t           uInt16;

+typedef int32_t             int32;

+typedef u_int32_t           uInt32;

+typedef u_int32_t           ramData;

+

+

+#include <linux/slab.h>

+#include <linux/kernel.h> /* for abs() */

+/* NOTE: kcalloc was introduced in ~2.6.14, otherwise use kzalloc() with (X)*(Y) for the block size */

+#define SIVOICE_CALLOC(X,Y)   kcalloc((X),(Y), GFP_KERNEL)

+#define SIVOICE_FREE(X)       kfree((X))

+#define SIVOICE_MALLOC(X)     kmalloc((X), GFP_KERNEL)

+#define SIVOICE_STRCPY        strcpy

+#define SIVOICE_STRNCPY       strncpy

+#define SIVOICE_MEMSET        memset

+#define SIVOICE_ABS           abs

+#endif

+