[PATCH] RFC: spi/sa1100: rewrite the SA1100 SPI driver

Linus Walleij linus.walleij at linaro.org
Thu Jan 19 12:49:25 EST 2012


On Wed, Jan 18, 2012 at 1:30 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> On Wed, Jan 18, 2012 at 01:13:29PM +0100, Linus Walleij wrote:

>> We usually merge drivers for microwire, TI, Motorola ... etc into
>> drivers/spi as well. It's a good enough fit, the differences are very
>> small. This is how we configure mode from the PL022 driver platform data:
>
> How do you send audio data at 16-bit 2 channel 48kHz continuously with
> the SPI subsystem?

Can't say because we haven't used it for audio transfers. However
I am pretty convinced that it'd work because we're running a
20 Mbit data link on that SPI port.

To get the high data rates we have an internal message queue in
the driver that saturates the SPI port. Sometimes we even start to
run parts of the driver in parallel on two cores: CPU0 is handling
IRQs from the driver while CPU1 is preparing messages to/from
the SPI subsystem.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list