mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 1/4] xtensa: move definition of irq numbers to platform header
@ 2009-03-26 13:33 Daniel Glöckner
  2009-03-26 13:33 ` [patch 2/4] xtensa: define irq number for I2S on s6105 Daniel Glöckner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniel Glöckner @ 2009-03-26 13:33 UTC (permalink / raw)
  To: Chris Zankel; +Cc: linux-kernel, Daniel Glöckner

Alsa SoC drivers traditionally provide the platform specific code as
separate modules. Move the list of irq numbers to a header file to
allow it being used in several files.

Signed-off-by: Daniel Glöckner <dg@emlix.com>
---
 arch/xtensa/platforms/s6105/device.c               |    8 +-------
 arch/xtensa/platforms/s6105/include/platform/irq.h |   11 +++++++++++
 2 files changed, 12 insertions(+), 7 deletions(-)
 create mode 100644 arch/xtensa/platforms/s6105/include/platform/irq.h

diff --git a/arch/xtensa/platforms/s6105/device.c b/arch/xtensa/platforms/s6105/device.c
index bb59580..d296201 100644
--- a/arch/xtensa/platforms/s6105/device.c
+++ b/arch/xtensa/platforms/s6105/device.c
@@ -26,13 +26,7 @@
 #include <variant/dmac.h>
 
 #include <platform/gpio.h>
-
-#define GPIO3_INTNUM		3
-#define UART_INTNUM		4
-#define GMAC_INTNUM		5
-#define I2C_INTNUM		6
-#define ISEF_INTNUM		8
-#define SPI_INTNUM		11
+#include <platform/irq.h>
 
 static const signed char gpio3_irq_mappings[] = {
 	S6_INTC_GPIO(3),
diff --git a/arch/xtensa/platforms/s6105/include/platform/irq.h b/arch/xtensa/platforms/s6105/include/platform/irq.h
new file mode 100644
index 0000000..3d5d4d2
--- /dev/null
+++ b/arch/xtensa/platforms/s6105/include/platform/irq.h
@@ -0,0 +1,11 @@
+#ifndef __XTENSA_PLATFORM_S6105_IRQ_H
+#define __XTENSA_PLATFORM_S6105_IRQ_H
+
+#define GPIO3_INTNUM	3
+#define UART_INTNUM	4
+#define GMAC_INTNUM	5
+#define I2C_INTNUM	6
+#define ISEF_INTNUM	8
+#define SPI_INTNUM	11
+
+#endif
-- 
1.6.2.107.ge47ee


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-26 13:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-26 13:33 [patch 1/4] xtensa: move definition of irq numbers to platform header Daniel Glöckner
2009-03-26 13:33 ` [patch 2/4] xtensa: define irq number for I2S on s6105 Daniel Glöckner
2009-03-26 13:33 ` [patch 3/4] xtensa: prepare s6105 platform for I2S Daniel Glöckner
2009-03-26 13:33 ` [patch 4/4] xtensa: enable on-board sound in s6105_defconfig Daniel Glöckner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®