From: Francisco Alecrim Date: Wed, 30 Jan 2008 15:21:45 +0000 (-0400) Subject: OMAP: Compile fix: including board-2430osk.h missed X-Git-Tag: v2.6.24-omap1~4 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=0ce52a744879282968943ecb59e383e0042515d2;p=linux-2.6-omap-h63xx.git OMAP: Compile fix: including board-2430osk.h missed 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 Signed-off-by: Tony Lindgren --- diff --git a/include/asm-arm/arch-omap/board-2430osk.h b/include/asm-arm/arch-omap/board-2430osk.h new file mode 100644 index 00000000000..e5b63aeb315 --- /dev/null +++ b/include/asm-arm/arch-omap/board-2430osk.h @@ -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 */ diff --git a/include/asm-arm/arch-omap/hardware.h b/include/asm-arm/arch-omap/hardware.h index 54a8246da79..20d96b1cd83 100644 --- a/include/asm-arm/arch-omap/hardware.h +++ b/include/asm-arm/arch-omap/hardware.h @@ -327,6 +327,10 @@ #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