From: apatard@mandriva.com
To: alsa-devel@alsa-project.org
Cc: nico@fluxnic.net, broonie@opensource.wolfsonmicro.com,
saeed@marvell.com, Arnaud Patard <apatard@mandriva.com>,
tbm@cyrius.com, linux-arm-kernel@lists.infradead.org,
lrg@slimlogic.co.uk
Subject: [patch 1/6] orion/kirkwood: add audio functions.
Date: Thu, 27 May 2010 14:57:38 +0200 [thread overview]
Message-ID: <20100527130337.925751129@mandriva.com> (raw)
In-Reply-To: 20100527125737.524554667@mandriva.com
[-- Attachment #1: kirkwood_add_audio_dev.patch --]
[-- Type: text/plain, Size: 3970 bytes --]
This patch add audio related definitions and functions
Signed-off-by: Arnaud Patard <apatard@mandriva.com>
Index: sound-2.6/arch/arm/mach-kirkwood/common.c
===================================================================
--- sound-2.6.orig/arch/arm/mach-kirkwood/common.c 2010-05-27 14:09:33.244174174 +0200
+++ sound-2.6/arch/arm/mach-kirkwood/common.c 2010-05-27 14:09:35.840194356 +0200
@@ -25,6 +25,7 @@
#include <asm/mach/time.h>
#include <mach/kirkwood.h>
#include <mach/bridge-regs.h>
+#include <plat/audio.h>
#include <plat/cache-feroceon-l2.h>
#include <plat/ehci-orion.h>
#include <plat/mvsdio.h>
@@ -855,6 +856,42 @@ struct sys_timer kirkwood_timer = {
.init = kirkwood_timer_init,
};
+/*****************************************************************************
+ * Audio
+ ****************************************************************************/
+static struct resource kirkwood_i2s_resources[] = {
+ [0] = {
+ .start = AUDIO_PHYS_BASE,
+ .end = AUDIO_PHYS_BASE + SZ_16K - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ [1] = {
+ .start = IRQ_KIRKWOOD_I2S,
+ .end = IRQ_KIRKWOOD_I2S,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static struct kirkwood_asoc_platform_data kirkwood_i2s_data = {
+ .dram = &kirkwood_mbus_dram_info,
+ .burst = 128,
+};
+
+static struct platform_device kirkwood_i2s_device = {
+ .name = "kirkwood-i2s",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(kirkwood_i2s_resources),
+ .resource = kirkwood_i2s_resources,
+ .dev = {
+ .platform_data = &kirkwood_i2s_data,
+ },
+};
+
+void __init kirkwood_audio_init(void)
+{
+ kirkwood_clk_ctrl |= CGC_AUDIO;
+ platform_device_register(&kirkwood_i2s_device);
+}
/*****************************************************************************
* General
@@ -914,6 +951,7 @@ void __init kirkwood_init(void)
kirkwood_spi_plat_data.tclk = kirkwood_tclk;
kirkwood_uart0_data[0].uartclk = kirkwood_tclk;
kirkwood_uart1_data[0].uartclk = kirkwood_tclk;
+ kirkwood_i2s_data.tclk = kirkwood_tclk;
/*
* Disable propagation of mbus errors to the CPU local bus,
Index: sound-2.6/arch/arm/mach-kirkwood/common.h
===================================================================
--- sound-2.6.orig/arch/arm/mach-kirkwood/common.h 2010-05-27 14:09:33.204173835 +0200
+++ sound-2.6/arch/arm/mach-kirkwood/common.h 2010-05-27 14:09:35.883694381 +0200
@@ -16,6 +16,7 @@ struct mv643xx_eth_platform_data;
struct mv_sata_platform_data;
struct mvsdio_platform_data;
struct mtd_partition;
+struct kirkwood_asoc_platform_data;
/*
* Basic Kirkwood init functions used early by machine-setup.
@@ -41,6 +42,7 @@ void kirkwood_i2c_init(void);
void kirkwood_uart0_init(void);
void kirkwood_uart1_init(void);
void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay);
+void kirkwood_audio_init(void);
extern int kirkwood_tclk;
extern struct sys_timer kirkwood_timer;
Index: sound-2.6/arch/arm/mach-kirkwood/include/mach/kirkwood.h
===================================================================
--- sound-2.6.orig/arch/arm/mach-kirkwood/include/mach/kirkwood.h 2010-05-27 14:09:33.188174747 +0200
+++ sound-2.6/arch/arm/mach-kirkwood/include/mach/kirkwood.h 2010-05-27 14:09:35.895694344 +0200
@@ -96,6 +96,9 @@
#define SDIO_PHYS_BASE (KIRKWOOD_REGS_PHYS_BASE | 0x90000)
+#define AUDIO_PHYS_BASE (KIRKWOOD_REGS_PHYS_BASE | 0xA0000)
+#define AUDIO_VIRT_BASE (KIRKWOOD_REGS_VIRT_BASE | 0xA0000)
+
/*
* Supported devices and revisions.
*/
Index: sound-2.6/arch/arm/plat-orion/include/plat/audio.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ sound-2.6/arch/arm/plat-orion/include/plat/audio.h 2010-05-27 14:09:35.895694344 +0200
@@ -0,0 +1,11 @@
+#ifndef __PLAT_AUDIO_H
+#define __PLAT_AUDIO_H
+
+#include <linux/mbus.h>
+
+struct kirkwood_asoc_platform_data {
+ u32 tclk;
+ struct mbus_dram_target_info *dram;
+ int burst;
+};
+#endif
WARNING: multiple messages have this Message-ID (diff)
From: apatard@mandriva.com (apatard at mandriva.com)
To: linux-arm-kernel@lists.infradead.org
Subject: [patch 1/6] orion/kirkwood: add audio functions.
Date: Thu, 27 May 2010 14:57:38 +0200 [thread overview]
Message-ID: <20100527130337.925751129@mandriva.com> (raw)
In-Reply-To: 20100527125737.524554667@mandriva.com
An embedded and charset-unspecified text was scrubbed...
Name: kirkwood_add_audio_dev.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100527/86aa58b8/attachment.el>
next prev parent reply other threads:[~2010-05-27 13:03 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-27 12:57 [patch 0/6] kirkwood openrd client audio support - v4 apatard
2010-05-27 12:57 ` apatard at mandriva.com
2010-05-27 12:57 ` apatard [this message]
2010-05-27 12:57 ` [patch 1/6] orion/kirkwood: add audio functions apatard at mandriva.com
2010-05-30 20:16 ` Nicolas Pitre
2010-05-30 20:16 ` Nicolas Pitre
2010-05-31 11:14 ` Mark Brown
2010-05-31 11:14 ` Mark Brown
2010-05-31 11:49 ` [patch 0/4] " apatard
2010-05-31 11:49 ` apatard at mandriva.com
2010-05-31 11:49 ` [patch 1/4] " apatard
2010-05-31 11:49 ` apatard at mandriva.com
2010-05-31 12:17 ` Mark Brown
2010-05-31 12:17 ` Mark Brown
2010-05-31 11:49 ` [patch 2/4] openrd-client: initialise audio apatard
2010-05-31 11:49 ` apatard at mandriva.com
2010-05-31 11:49 ` [patch 3/4] kirkwood: Add i2s support apatard
2010-05-31 11:49 ` apatard at mandriva.com
2010-05-31 11:49 ` [patch 4/4] kirkwood: Add audio support to openrd client platforms apatard
2010-05-31 11:49 ` apatard at mandriva.com
2010-05-27 12:57 ` [patch 2/6] openrd-client: initialise audio apatard
2010-05-27 12:57 ` apatard at mandriva.com
2010-05-27 12:57 ` [patch 3/6] soc-dapm.h: add SND_SOC_DAPM_PRE_POST_PMD event apatard
2010-05-27 12:57 ` apatard at mandriva.com
2010-05-31 11:20 ` Mark Brown
2010-05-31 11:20 ` Mark Brown
2010-05-27 12:57 ` [patch 4/6] cs42l51: add asoc driver apatard
2010-05-27 12:57 ` apatard at mandriva.com
2010-05-31 11:20 ` Mark Brown
2010-05-31 11:20 ` Mark Brown
2010-05-27 12:57 ` [patch 5/6] kirkwood: Add i2s support apatard
2010-05-27 12:57 ` apatard at mandriva.com
2010-05-27 12:57 ` [patch 6/6] kirkwood: Add audio support to openrd client platforms apatard
2010-05-27 12:57 ` apatard at mandriva.com
2010-05-30 20:44 ` [patch 0/6] kirkwood openrd client audio support - v4 Nicolas Pitre
2010-05-30 20:44 ` Nicolas Pitre
2010-05-31 10:15 ` Liam Girdwood
2010-05-31 10:15 ` [alsa-devel] " Liam Girdwood
-- strict thread matches above, loose matches on Subject: below --
2010-05-15 15:29 [patch 0/6] kirkwood openrd client audio support - v2 apatard
2010-05-15 15:29 ` [patch 1/6] orion/kirkwood: add audio functions apatard
2010-05-15 15:29 ` apatard at mandriva.com
2010-05-16 17:35 ` Mark Brown
2010-05-16 17:35 ` 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=20100527130337.925751129@mandriva.com \
--to=apatard@mandriva.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=lrg@slimlogic.co.uk \
--cc=nico@fluxnic.net \
--cc=saeed@marvell.com \
--cc=tbm@cyrius.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.