From mboxrd@z Thu Jan 1 00:00:00 1970 From: florian.meier@koalo.de (Florian Meier) Date: Wed, 22 May 2013 19:16:41 +0200 Subject: [PATCH] ASoC: Add support for BCM2708 In-Reply-To: <20130522163942.GQ1627@sirena.org.uk> References: <519CD1CC.8070507@koalo.de> <20130522163942.GQ1627@sirena.org.uk> Message-ID: <519CFD79.3050002@koalo.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 22.05.2013 18:39, Mark Brown wrote: > On Wed, May 22, 2013 at 04:10:20PM +0200, Florian Meier wrote: > >> This driver adds support for digital audio (I2S) >> for the BCM2708 SoC that is used by the >> Raspberry Pi. External audio codecs can be >> connected to the Raspberry Pi via P5 header. > > Split this up into a patch series, for example one per CPU side driver > and one per machine driver. I've given the code a relatively quick run > through here, it looks mostly sensible though DT would be nice but > there's a few comments. > >> +static inline void bcm2708_i2s_write_reg(struct bcm2708_i2s_dev *dev, >> + int reg, u32 val) >> +{ >> + dev_dbg(dev->dev, "I2S write to register %p = %x\n", >> + dev->clk_base + reg, val); >> + __raw_writel(val, dev->i2s_base + reg); >> +} > > This all looks like you want to use regmap-mmio......... Thank you for your comments! I will have a look at them and send a new patch series taking them into account. Before that I will create a patch for the DMA engine driver.