All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philipp Zabel <philipp.zabel@gmail.com>
To: alsa-devel@alsa-project.org
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Philipp Zabel <philipp.zabel@gmail.com>
Subject: [PATCH, RFC 3/3] pxa/magician: add I2C board info and platform data for UDA1380
Date: Sun, 14 Jun 2009 12:51:32 +0200	[thread overview]
Message-ID: <1244976692-5189-5-git-send-email-philipp.zabel@gmail.com> (raw)
In-Reply-To: <1244976692-5189-4-git-send-email-philipp.zabel@gmail.com>

Configures I2C address, power/reset GPIOs and DAC clock from WSPLL.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
---
 arch/arm/mach-pxa/magician.c |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
index 869f083..3da8284 100644
--- a/arch/arm/mach-pxa/magician.c
+++ b/arch/arm/mach-pxa/magician.c
@@ -43,6 +43,8 @@
 #include <mach/irda.h>
 #include <mach/ohci.h>
 
+#include <sound/uda1380.h>
+
 #include "devices.h"
 #include "generic.h"
 
@@ -862,9 +864,22 @@ static struct platform_device calypso = {
 };
 
 /*
- * I2C
+ * Philips UDA1380 on I2C
  */
 
+static struct uda1380_platform_data uda1380_info = {
+	.gpio_power = EGPIO_MAGICIAN_CODEC_POWER,
+	.gpio_reset = EGPIO_MAGICIAN_CODEC_RESET,
+	.dac_clk    = UDA1380_DAC_CLK_WSPLL,
+};
+
+static struct i2c_board_info i2c_board_info[] = {
+	{
+		I2C_BOARD_INFO("uda1380", 0x18),
+		.platform_data = &uda1380_info,
+	},
+};
+
 static struct i2c_pxa_platform_data i2c_info = {
 	.fast_mode = 1,
 };
@@ -906,6 +921,7 @@ static void __init magician_init(void)
 	}
 	pxa27x_set_i2c_power_info(NULL);
 	pxa_set_i2c_info(&i2c_info);
+	i2c_register_board_info(0, ARRAY_AND_SIZE(i2c_board_info));
 	i2c_register_board_info(1, ARRAY_AND_SIZE(pi2c_board_info));
 	pxa_set_mci_info(&magician_mci_info);
 	pxa_set_ohci_info(&magician_ohci_info);
-- 
1.6.3.1

  reply	other threads:[~2009-06-14 10:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-14 10:51 [PATCH, RFC 0/3] magician fix and UDA1380 i2c device registration change Philipp Zabel
     [not found] ` <1244976692-5189-2-git-send-email-philipp.zabel@gmail.com>
2009-06-14 10:51   ` [PATCH 1/3] ASoC: magician: fix PXA SSP clock polarity Philipp Zabel
2009-06-14 10:51     ` [PATCH, RFC 2/3] ASoC: UDA1380: register from board files, configure via pdata Philipp Zabel
2009-06-14 10:51       ` Philipp Zabel [this message]
2009-06-14 15:00         ` [PATCH, RFC 3/3] pxa/magician: add I2C board info and platform data for UDA1380 Mark Brown
2009-06-15  2:06           ` Eric Miao
2009-06-15 10:26             ` Mark Brown
2009-06-14 14:51       ` [PATCH, RFC 2/3] ASoC: UDA1380: register from board files, configure via pdata Mark Brown
2009-06-14 20:52         ` pHilipp Zabel
2009-06-15  4:56           ` Can't use bluetooth headset after upgrade of alsa/bluez with fedora 11 Ted T. Logan
2009-06-15  5:38             ` busy device issue when it is not busy! Guilherme
2009-06-15 20:18         ` [PATCH] ASoC: UDA1380: refactor device registration Philipp Zabel
2009-06-15 21:10           ` Mark Brown
2009-06-14 14:23     ` [PATCH 1/3] ASoC: magician: fix PXA SSP clock polarity Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1244976692-5189-5-git-send-email-philipp.zabel@gmail.com \
    --to=philipp.zabel@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.