[oe-commits] Ulf Samuelsson : Add AC97 platform for sam9g45(not tested on board), + rename old patch
git version control
git at git.openembedded.org
Sat Aug 22 14:56:01 UTC 2009
Module: openembedded.git
Branch: ulf/linux-2.6.30.2
Commit: fba506c10ffde6ef933c1765434a83964763a051
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=fba506c10ffde6ef933c1765434a83964763a051
Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date: Thu Aug 20 07:53:17 2009 +0200
Add AC97 platform for sam9g45(not tested on board), + rename old patch
---
...nux-2.6.30.2-at91-002-ac97-sam9g45-device.patch | 63 ++++++++++++++++++++
...t91-003-configurable-NAND-partition-size.patch} | 0
2 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/recipes/linux/linux-2.6.30.2/arch-at91/linux-2.6.30.2-at91-002-ac97-sam9g45-device.patch b/recipes/linux/linux-2.6.30.2/arch-at91/linux-2.6.30.2-at91-002-ac97-sam9g45-device.patch
new file mode 100644
index 0000000..938c20e
--- /dev/null
+++ b/recipes/linux/linux-2.6.30.2/arch-at91/linux-2.6.30.2-at91-002-ac97-sam9g45-device.patch
@@ -0,0 +1,63 @@
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/at91sam9g45_devices.c linux-2.6.30/arch/arm/mach-at91/at91sam9g45_devices.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/at91sam9g45_devices.c 2009-08-19 23:22:58.000000000 +0200
++++ linux-2.6.30/arch/arm/mach-at91/at91sam9g45_devices.c 2009-08-19 23:34:24.000000000 +0200
+@@ -548,6 +548,59 @@
+ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) {}
+ #endif
+
++/* --------------------------------------------------------------------
++ * AC97
++ * -------------------------------------------------------------------- */
++
++#if defined(CONFIG_SND_AT91_AC97) || defined(CONFIG_SND_AT91_AC97_MODULE)
++static u64 ac97_dmamask = DMA_BIT_MASK(32);
++static struct atmel_ac97_data ac97_data;
++
++static struct resource ac97_resources[] = {
++ [0] = {
++ .start = AT91SAM9G45_BASE_AC97C,
++ .end = AT91SAM9G45_BASE_AC97C + SZ_16K - 1,
++ .flags = IORESOURCE_MEM,
++ },
++ [1] = {
++ .start = AT91SAM9G45_ID_AC97C,
++ .end = AT91SAM9G45_ID_AC97C,
++ .flags = IORESOURCE_IRQ,
++ },
++};
++
++static struct platform_device at91sam9g45_ac97_device = {
++ .name = "ac97c",
++ .id = 1,
++ .dev = {
++ .dma_mask = &ac97_dmamask,
++ .coherent_dma_mask = DMA_BIT_MASK(32),
++ .platform_data = &ac97_data,
++ },
++ .resource = ac97_resources,
++ .num_resources = ARRAY_SIZE(ac97_resources),
++};
++
++void __init at91_add_device_ac97(struct atmel_ac97_data *data)
++{
++ if (!data)
++ return;
++
++ at91_set_A_periph(AT91_PIN_PD8, 0); /* AC97FS */
++ at91_set_A_periph(AT91_PIN_PD9, 0); /* AC97CK */
++ at91_set_A_periph(AT91_PIN_PD7, 0); /* AC97TX */
++ at91_set_A_periph(AT91_PIN_PD6, 0); /* AC97RX */
++
++ /* reset */
++ if (data->reset_pin)
++ at91_set_gpio_output(data->reset_pin, 0);
++
++ ac97_data = *data;
++ platform_device_register(&at91sam9g45_ac97_device);
++}
++#else
++void __init at91_add_device_ac97(struct atmel_ac97_data *data) {}
++#endif
+
+ /* --------------------------------------------------------------------
+ * LCD Controller
diff --git a/recipes/linux/linux-2.6.30.2/arch-at91/linux-2.6.30.2-configurable-NAND-partition-size.patch b/recipes/linux/linux-2.6.30.2/arch-at91/linux-2.6.30.2-at91-003-configurable-NAND-partition-size.patch
similarity index 100%
rename from recipes/linux/linux-2.6.30.2/arch-at91/linux-2.6.30.2-configurable-NAND-partition-size.patch
rename to recipes/linux/linux-2.6.30.2/arch-at91/linux-2.6.30.2-at91-003-configurable-NAND-partition-size.patch
More information about the Openembedded-commits
mailing list