ASoC drivers for the Freescale MPC8610 SoC
Subsystems (6)
cover ASoC drivers for the Freescale MPC8610 SoC
These patches add ALSA SoC device drivers for the Freescale MPC8610 SoC and the MPC8610-HPCD reference board.
The first patch updates some files in arch/powerpc and booting-without-of.txt.
The second patch adds the new audio driver files to sound/soc.
Both must be applied in order to avoid a build break.
PATCH 1/2 Update MPC8610 HPCD to support audio drivers
Update the MPC8610 HPCD files to support the audio driver. Update booting-without-of.txt with information on the SSI device.
---
This patch applies on top ofgit://git.kernel.org/pub/scm/linux/kernel/git/perex/alsa.git.
Documentation/powerpc/booting-without-of.txt | 40 ++++++ arch/powerpc/boot/dts/mpc8610_hpcd.dts | 107 ++++++++++++++++ arch/powerpc/configs/mpc8610_hpcd_defconfig | 171 +++++++++++++++++++++++++- arch/powerpc/platforms/86xx/mpc8610_hpcd.c | 19 +++ 4 files changed, 334 insertions(+), 3 deletions(-)
Documentation/powerpc/booting-without-of.txt +40 -0
@@ -53,6 +53,7 @@ Table of Contents j) CFI or JEDEC memory-mapped NOR flash k) Global Utilities Block l) Xilinx IP cores + p) Freescale Synchronous Serial Interface VII - Specifying interrupt information for devices 1) interrupts property
@@ -2514,6 +2515,45 @@ platforms are moved over to use the flattened-device-tree model. Requred properties: - current-speed : Baud rate of uartlite + p) Freescale Synchronous Serial Interface + + The SSI is a serial device that communicates with audio codecs. It can + be programmed in AC97, I2S, left-justified, or right-justified modes. + + Required properties: + - compatible : compatible list, containing "fsl,ssi" + - cell-index : the SSI, <0> = SSI1, <1> = SSI2, and so on + - reg : offset and length of the register set for the device + - interrupts : <a b> where a is the interrupt number and b is a + field that represents an encoding of the sense and + level information for the interrupt. This should be + encoded based on the information in section 2) + depending on the type of interrupt controller you + have. + - interrupt-parent : the phandle for the interrupt controller that + services interrupts for this device. + - fsl,mode : the operating mode for the SSI interface + "i2s-slave" - I2S mode, SSI is clock slave + "i2s-master" - I2S mode, SSI is clock master + "lj-slave" - left-justified mode, SSI is clock slave + "lj-master" - l.j. mode, SSI is clock master + "rj-slave" - right-justified mode, SSI is clock slave + "rj-master" - r.j., SSI is clock master + "ac97-slave" - AC97 mode, SSI is clock slave + "ac97-master" - AC97 mode, SSI is clock master + + Optional properties: + - codec : child node that defines an audio codec connected + to this SSI + + Child 'codec' node required properties: + - compatible : compatible list, contains the name of the codec + + Child 'codec' node optional properties: + - bus-frequency : The frequency of the input clock, which typically + comes from an on-board dedicated oscillator. + + More devices will be defined as this spec matures. VII - Specifying interrupt information for devices
arch/powerpc/boot/dts/mpc8610_hpcd.dts +107 -0
113 lines not on this page · raw message
arch/powerpc/configs/mpc8610_hpcd_defconfig +168 -3
189 lines not on this page · raw message
arch/powerpc/platforms/86xx/mpc8610_hpcd.c +19 -0
@@ -34,9 +34,28 @@#include <asm/mpic.h> +#include <linux/of_platform.h> #include <sysdev/fsl_pci.h> #include <sysdev/fsl_soc.h> +static struct of_device_id mpc8610_ids[] = { + { .type ="soc" , }, + { .compatible ="soc" , }, + {} +}; + +static int __init mpc8610_declare_of_platform_devices (void ) +{ +if (!machine_is (mpc86xx_hpcd)) +return 0 ; + +/* Without this call, the SSI device driver won't get probed. */ +of_platform_bus_probe (NULL , mpc8610_ids,NULL ); + +return 0 ; +} +device_initcall (mpc8610_declare_of_platform_devices); +void __init mpc86xx_hpcd_init_irq (void ) {
Signature · 1 line
1.5.2.4
PATCH 2/2 Add ASoC drivers for the Freescale MPC8610 SoC
Add the ASoC drivers for the Freescale MPC8610 SoC and the MPC8610 HPCD reference board.
--- sound/soc/Kconfig | 1 + sound/soc/Makefile | 2 +- sound/soc/fsl/Kconfig | 20 + sound/soc/fsl/Makefile | 6 + sound/soc/fsl/fsl_dma.c | 839 ++++++++++++++++++++++++++++++++++++++++++ sound/soc/fsl/fsl_dma.h | 149 ++++++++ sound/soc/fsl/fsl_ssi.c | 644 ++++++++++++++++++++++++++++++++ sound/soc/fsl/fsl_ssi.h | 224 +++++++++++ sound/soc/fsl/mpc8610_hpcd.c | 626 +++++++++++++++++++++++++++++++ 9 files changed, 2510 insertions(+), 1 deletions(-) create mode 100644 sound/soc/fsl/Kconfig create mode 100644 sound/soc/fsl/Makefile create mode 100644 sound/soc/fsl/fsl_dma.c create mode 100644 sound/soc/fsl/fsl_dma.h create mode 100644 sound/soc/fsl/fsl_ssi.c create mode 100644 sound/soc/fsl/fsl_ssi.h create mode 100644 sound/soc/fsl/mpc8610_hpcd.c
sound/soc/Kconfig +1 -0
@@ -28,6 +28,7 @@ source "sound/soc/at91/Kconfig" source "sound/soc/pxa/Kconfig" source "sound/soc/s3c24xx/Kconfig" source "sound/soc/sh/Kconfig" +source "sound/soc/fsl/Kconfig" # Supported codecs source "sound/soc/codecs/Kconfig"
sound/soc/Makefile +1 -1
@@ -1,4 +1,4 @@ snd-soc-core-objs := soc-core.o soc-dapm.o obj-$(CONFIG_SND_SOC) += snd-soc-core.o -obj-$(CONFIG_SND_SOC) += codecs/ at91/ pxa/ s3c24xx/ sh/ +obj-$(CONFIG_SND_SOC) += codecs/ at91/ pxa/ s3c24xx/ sh/ fsl/
sound/soc/fsl/Kconfig new file +20 -0
@@ -0,0 +1,20 @@ +menu "ALSA SoC audio for Freescale SOCs" + +config SND_SOC_MPC8610 + bool "ALSA SoC support for the MPC8610 SOC" + depends on SND_SOC && MPC8610_HPCD + default y if MPC8610 + help + Say Y if you want to add support for codecs attached to the SSI + device on an MPC8610. + +config SND_SOC_MPC8610_HPCD + bool "ALSA SoC support for the Freescale MPC8610 HPCD board" + depends on SND_SOC_MPC8610 + select SND_SOC_CS4270 + select SND_SOC_CS4270_VD33_ERRATA + default y if MPC8610_HPCD + help + Say Y if you want to enable audio on the Freescale MPC8610 HPCD. + +endmenu
sound/soc/fsl/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# MPC8610 HPCD Machine Support +obj-$(CONFIG_SND_SOC_MPC8610_HPCD) += mpc8610_hpcd.o + +# MPC8610 Platform Support +obj-$(CONFIG_SND_SOC_MPC8610) += fsl_ssi.o fsl_dma.o +
sound/soc/fsl/fsl_dma.c new file +839 -0
839 lines not on this page · raw message
sound/soc/fsl/fsl_dma.h new file +149 -0
149 lines not on this page · raw message
sound/soc/fsl/fsl_ssi.c new file +644 -0
644 lines not on this page · raw message
sound/soc/fsl/fsl_ssi.h new file +224 -0
224 lines not on this page · raw message
sound/soc/fsl/mpc8610_hpcd.c new file +626 -0
626 lines not on this page · raw message
Signature · 1 line
1.5.2.4