]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP: Compile fix: including board-2430osk.h missed
authorFrancisco Alecrim <francisco.alecrim@indt.org.br>
Wed, 30 Jan 2008 15:21:45 +0000 (11:21 -0400)
committerTony Lindgren <tony@atomide.com>
Wed, 30 Jan 2008 21:14:51 +0000 (13:14 -0800)
Including board file board-2430osk.h missed.

drivers/i2c/chips/twl4030_core.c:480: error: `IH_TWL4030_BASE' undeclared (first use in this function)
drivers/i2c/chips/twl4030_core.c:853: error: `IH_TWL4030_END' undeclared (first use in this function)
drivers/i2c/chips/twl4030_core.c:860: error: `TWL4030_IRQNUM' undeclared (first use in this function)
drivers/i2c/chips/twl4030_gpio.c:249: error: `IH_TWL4030_GPIO_BASE' undeclared (first use in this function)
drivers/i2c/chips/twl4030_gpio.c:787: error: `IH_TWL4030_BASE' undeclared (first use in this function)
...

Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
include/asm-arm/arch-omap/board-2430osk.h [new file with mode: 0644]
include/asm-arm/arch-omap/hardware.h

diff --git a/include/asm-arm/arch-omap/board-2430osk.h b/include/asm-arm/arch-omap/board-2430osk.h
new file mode 100644 (file)
index 0000000..e5b63ae
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * linux/include/asm-arm/arch-omap/board-2430osk.h
+ *
+ * Hardware definitions for TI OMAP2430 OSK board.
+ *
+ * Based on board-2330sdp.h
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
+ * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __ASM_ARCH_OMAP_2430OSK_H
+#define __ASM_ARCH_OMAP_2430OSK_H
+
+/* Placeholder for 2430OSK specific defines */
+#define OMAP24XX_ETHR_START            0x08000300
+#define OMAP24XX_ETHR_GPIO_IRQ         149
+
+#define TWL4030_IRQNUM                 INT_24XX_SYS_NIRQ
+
+/* TWL4030 Primary Interrupt Handler (PIH) interrupts */
+#define IH_TWL4030_BASE                        IH_BOARD_BASE
+#define IH_TWL4030_END                 (IH_TWL4030_BASE+8)
+
+/* TWL4030 GPIO Interrupts */
+#define IH_TWL4030_GPIO_BASE           (IH_TWL4030_END)
+#define IH_TWL4030_GPIO_END            (IH_TWL4030_BASE+18)
+#define NR_IRQS                                (IH_TWL4030_GPIO_END)
+
+#endif /* __ASM_ARCH_OMAP_2430OSK_H */
index 54a8246da79c84bd2210c31aa34cc4e4b93229ea..20d96b1cd83fb2e87e04f7cce973a58ac4de4b71 100644 (file)
 #include "board-2430sdp.h"
 #endif
 
+#ifdef CONFIG_MACH_OMAP_2430OSK
+#include "board-2430osk.h"
+#endif
+
 #ifdef CONFIG_MACH_OMAP_3430SDP
 #include "board-3430sdp.h"
 #endif