imx23: add SoC sound support

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 37622
This commit is contained in:
Zoltan Herpai 2013-07-31 09:52:46 +00:00
parent 5f2e61addf
commit 0a6e0228d9
4 changed files with 2931 additions and 1 deletions

View file

@ -79,3 +79,24 @@ endef
$(eval $(call KernelPackage,usb-net-smsc95xx))
define KernelPackage/sound-soc-imx23
TITLE:=Freescale i.MX233 built-in SoC sound support
KCONFIG:= \
CONFIG_SND_SOC_MXS_BUILTIN_CODEC \
CONFIG_SND_MXS_SOC_BUILTIN
FILES:= \
$(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-audio.ko \
$(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-dai.ko \
$(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-pcm.ko \
$(LINUX_DIR)/sound/soc/codecs/snd-soc-mxs-builtin-codec.ko
AUTOLOAD:=$(call AutoLoad,65,snd-soc-mxs-builtin-pcm snd-soc-mxs-builtin-dai snd-soc-mxs-builtin-codec snd-soc-mxs-builtin-audio)
DEPENDS:=@TARGET_imx23 +kmod-sound-soc-core
$(call AddDepends/sound)
endef
define KernelPackage/sound-soc-imx23/description
Kernel support for i.MX233 built-in SoC audio
endef
$(eval $(call KernelPackage,sound-soc-imx23))

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,40 @@
diff -ruN linux-3.10/arch/arm/boot/dts/imx23-olinuxino.dts linux-3.10.snd/arch/arm/boot/dts/imx23-olinuxino.dts
--- linux-3.10/arch/arm/boot/dts/imx23-olinuxino.dts 2013-07-01 00:13:29.000000000 +0200
+++ linux-3.10.snd/arch/arm/boot/dts/imx23-olinuxino.dts 2013-07-30 14:43:31.000000000 +0200
@@ -84,6 +84,25 @@
usbphy0: usbphy@8007c000 {
status = "okay";
};
+
+ codec: mxs-builtin-codec {
+ compatible = "fsl,mxs-builtin-codec";
+ reg = <0x80048000 0x2000>, <0x8004c000 0x2000>,
+ <0x8005c000 0x2000>;
+ reg-names = "audioout", "audioin", "rtc";
+ clocks = <&clks 31>;
+ clock-names = "filt";
+ };
+
+ platform_dai: mxs-builtin-cpu-dai {
+ compatible = "fsl,mxs-builtin-cpu-dai";
+ reg = <0x80048000 0x2000>, <0x8004c000 0x2000>,
+ <0x8005c000 0x2000>;
+ reg-names = "audioout", "audioin", "rtc";
+ interrupts = <8 6 4>;
+ dmas = <&dma_apbx 0>, <&dma_apbx 1>;
+ dma-names = "rx", "tx";
+ };
};
};
@@ -118,4 +137,10 @@
gpios = <&gpio2 1 1>;
};
};
+
+ mxs-builtin-audio {
+ compatible = "fsl,mxs-builtin-audio";
+ audio-codec = <&codec>;
+ cpu-dai = <&platform_dai>;
+ };
};

View file

@ -8,7 +8,8 @@
define Profile/olinuxino
NAME:=Olimex Olinuxino boards
PACKAGES += imx-bootlets kmod-usb-mxs-phy kmod-usb-net kmod-usb-net-smsc95xx \
kmod-gpio-mcp23s08 kmod-leds-gpio kmod-ledtrig-heartbeat kmod-rtc-stmp3xxx
kmod-gpio-mcp23s08 kmod-leds-gpio kmod-ledtrig-heartbeat kmod-rtc-stmp3xxx \
kmod-sound-core kmod-sound-soc-imx23
endef
define Profile/olinuxino/Description