Skip to contentSkip to conversation

asoc/multi-component: add support for the Freescale P1022 DS reference board

PATCH Applied Timur Tabi 4 participants 4 messages Aug 19, 2010 – Aug 20, 2010

Subsystems (2)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/3 asoc/multi-component: add support for the Freescale P1022 DS reference board

The Freescale P1022 is a dual-core e500-based SOC with multimedia capabilities, specifically the same SSI audio controller on the MPC8610. The P1022 DS reference board includes a P1022 and a Wolfson Microelectronics WM8776 codec.

---
 sound/soc/fsl/Kconfig    |   24 ++-
 sound/soc/fsl/Makefile   |    8 +-
 sound/soc/fsl/p1022_ds.c |  590 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 614 insertions(+), 8 deletions(-)
 create mode 100644 sound/soc/fsl/p1022_ds.c
sound/soc/fsl/Kconfig +18 -6
index 9818687..d754d34 100644
@@ -1,24 +1,36 @@
 config SND_MPC52xx_DMA
 	tristate
 
-# ASoC platform support for the Freescale MPC8610 SOC.  This compiles drivers
-# for the SSI and the Elo DMA controller.  You will still need to select
-# a platform driver and a codec driver.
-config SND_SOC_MPC8610
+# ASoC platform support for the Freescale PowerPC SOCs that have an SSI and
+# an Elo DMA controller, such as the MPC8610 and P1022.  You will still need to
+# select a platform driver and a codec driver.
+config SND_SOC_POWERPC_SSI
 	tristate
-	depends on MPC8610
+	depends on FSL_SOC
 
 config SND_SOC_MPC8610_HPCD
 	tristate "ALSA SoC support for the Freescale MPC8610 HPCD board"
 	# I2C is necessary for the CS4270 driver
 	depends on MPC8610_HPCD && I2C
-	select SND_SOC_MPC8610
+	select SND_SOC_POWERPC_SSI
 	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.
 
+config SND_SOC_P1022_DS
+	tristate "ALSA SoC support for the Freescale P1022 DS board"
+	# I2C is necessary for the WM8776 driver
+	depends on P1022_DS && I2C
+	select SND_SOC_POWERPC_SSI
+	select SND_SOC_WM8776
+	default y if P1022_DS
+	help
+	  Say Y if you want to enable audio on the Freescale P1022 DS board.
+	  This will also include the Wolfson Microelectronics WM8776 codec
+	  driver.
+
 config SND_SOC_MPC5200_I2S
 	tristate "Freescale MPC5200 PSC in I2S mode driver"
 	depends on PPC_MPC52xx && PPC_BESTCOMM
sound/soc/fsl/Makefile +6 -2
index 7e472a5..b4a38c0 100644
@@ -2,10 +2,14 @@
 snd-soc-mpc8610-hpcd-objs := mpc8610_hpcd.o
 obj-$(CONFIG_SND_SOC_MPC8610_HPCD) += snd-soc-mpc8610-hpcd.o
 
-# MPC8610 Platform Support
+# P1022 DS Machine Support
+snd-soc-p1022-ds-objs := p1022_ds.o
+obj-$(CONFIG_SND_SOC_P1022_DS) += snd-soc-p1022-ds.o
+
+# Freescale PowerPC SSI/DMA Platform Support
 snd-soc-fsl-ssi-objs := fsl_ssi.o
 snd-soc-fsl-dma-objs := fsl_dma.o
-obj-$(CONFIG_SND_SOC_MPC8610) += snd-soc-fsl-ssi.o snd-soc-fsl-dma.o
+obj-$(CONFIG_SND_SOC_POWERPC_SSI) += snd-soc-fsl-ssi.o snd-soc-fsl-dma.o
 
 # MPC5200 Platform Support
 obj-$(CONFIG_SND_MPC52xx_DMA) += mpc5200_dma.o
sound/soc/fsl/p1022_ds.c new file +590 -0

590 lines not on this page · raw message

Signature · 1 line
1.7.0.1
Acked-by on v1 1/3
#1 lore raw
Quoted 5 lines · Timur Tabi

The Freescale P1022 is a dual-core e500-based SOC with multimedia capabilities, specifically the same SSI audio controller on the MPC8610. The P1022 DS reference board includes a P1022 and a Wolfson Microelectronics WM8776 codec.

Quoted 7 lines
---
 sound/soc/fsl/Kconfig    |   24 ++-
 sound/soc/fsl/Makefile   |    8 +-
 sound/soc/fsl/p1022_ds.c |  590 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 614 insertions(+), 8 deletions(-)
 create mode 100644 sound/soc/fsl/p1022_ds.c
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
Applied
#2 lore raw
In reply to Timur Tabi
Quoted 6 lines · Timur Tabi

The Freescale P1022 is a dual-core e500-based SOC with multimedia capabilities, specifically the same SSI audio controller on the MPC8610. The P1022 DS reference board includes a P1022 and a Wolfson Microelectronics WM8776 codec.

Applied, thanks.

sound/soc/fsl/p1022_ds.c line 206

Quoted 3 lines
sound/soc/fsl/p1022_ds.c new file +3 -0
+static struct device_node *get_node_by_phandle_name(struct device_node *np,
+	const char *name, const char *compatible)
+{

This and a few of the other functions look like they ought to be moved somewhere more generic - they don't look specific to this driver at all.

#3 lore raw
Quoted 6 lines · Mark Brown

+static struct device_node *get_node_by_phandle_name(struct device_node *np,

Review

Quoted 2 lines
(quoted diff) +2 -0
+	const char *name, const char *compatible)
+{

This and a few of the other functions look like they ought to be moved somewhere more generic - they don't look specific to this driver at all.

I'm planning on doing that, but I can't be sure that they'll be accepted as generic functions, so I put them here first.

Quoted 1 line