@@ -602,5 +602,7 @@ config TILE_SROM
source "drivers/char/xillybus/Kconfig"
+source "drivers/char/axd/Kconfig"
+
endmenu
@@ -62,3 +62,5 @@ js-rtc-y = rtc.o
obj-$(CONFIG_TILE_SROM) += tile-srom.o
obj-$(CONFIG_XILLYBUS) += xillybus/
+
+obj-$(CONFIG_AXD) += axd/
new file mode 100644
@@ -0,0 +1,19 @@
+config AXD
+ tristate "AXD Audio Processing IP"
+ depends on MIPS && COMMON_CLK && CMA
+ ---help---
+ Say Y here if you want to use AXD Audio Processing IP.
+
+config AXD_DEBUG_DIAG
+ bool "AXD diagnostics"
+ depends on AXD
+ ---help---
+ Say Y if you want AXD driver to print some diagnostics after playing
+ a stream.
+
+config AXD_DEBUG_VERBOSE
+ bool "AXD verbose debug"
+ depends on AXD
+ ---help---
+ Say Y if you want AXD driver to print verbose debug information.
+ The output is extensive.
new file mode 100644
@@ -0,0 +1,20 @@
+obj-$(CONFIG_AXD) := axd.o
+
+axd-objs = axd_buffers.o \
+ axd_cmds.o \
+ axd_cmds_codec_internal.o \
+ axd_cmds_config.o \
+ axd_cmds_decoder_config.o \
+ axd_cmds_encoder_config.o \
+ axd_cmds_info.o \
+ axd_cmds_internal.o \
+ axd_cmds_pipes.o \
+ axd_hdr.o \
+ axd_module.o \
+ axd_platform_mips.o \
+ axd_sysfs_ctrl.o \
+ axd_sysfs_input.o \
+ axd_sysfs_output.o
+
+ccflags-$(CONFIG_AXD_DEBUG_DIAG) += -DDEBUG_DIAG
+ccflags-$(CONFIG_AXD_DEBUG_VERBOSE) += -DDEBUG_BUFFERS
Now all necessary files are added, allow AXD to be selected through Kconfig and compiled. NOTE: at the moment AXD can only work on MIPS but this restrictions should be lifted in the future as it evolves. Signed-off-by: Qais Yousef <qais.yousef@imgtec.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: <alsa-devel@alsa-project.org> --- drivers/char/Kconfig | 2 ++ drivers/char/Makefile | 2 ++ drivers/char/axd/Kconfig | 19 +++++++++++++++++++ drivers/char/axd/Makefile | 20 ++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 drivers/char/axd/Kconfig create mode 100644 drivers/char/axd/Makefile