From: Tony Lindgren <tony@atomide.com>
To: Carlos Aguiar <carlos.aguiar@indt.org.br>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/1] OMAP2430: Add missing defines for TWL4030
Date: Wed, 9 Apr 2008 21:18:43 +0000 [thread overview]
Message-ID: <20080409211842.GP31071@atomide.com> (raw)
In-Reply-To: <47FB90CD.90104@indt.org.br>
* Carlos Aguiar <carlos.aguiar@indt.org.br> [080408 15:37]:
> From: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
>
> This patch adds missing defines for TWL4030.
I've pushed this. We should fix the defines, as it now looks like this
will again break efforts of building multiple omaps into the same
kernel. Basically the same things need to be defined in just one
common place.
Tony
> Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br>
> Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
> ---
> include/asm-arm/arch-omap/board-2430osk.h | 15 +++++++++++++--
> include/asm-arm/arch-omap/board-2430sdp.h | 15 +++++++++++++--
> 2 files changed, 26 insertions(+), 4 deletions(-)
>
> diff --git a/include/asm-arm/arch-omap/board-2430osk.h b/include/asm-arm/arch-omap/board-2430osk.h
> index e5b63ae..14c996e 100644
> --- a/include/asm-arm/arch-omap/board-2430osk.h
> +++ b/include/asm-arm/arch-omap/board-2430osk.h
> @@ -33,15 +33,26 @@
> #define OMAP24XX_ETHR_START 0x08000300
> #define OMAP24XX_ETHR_GPIO_IRQ 149
>
> +#ifdef CONFIG_TWL4030_CORE
> +
> #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)
>
> +#define IH_TWL4030_PWRBASE (IH_TWL4030_END)
> +#define IH_TWL4030_PWRBASE_END (IH_TWL4030_PWRBASE+8)
> +
> +#ifdef CONFIG_TWL4030_GPIO
> +
> /* TWL4030 GPIO Interrupts */
> -#define IH_TWL4030_GPIO_BASE (IH_TWL4030_END)
> -#define IH_TWL4030_GPIO_END (IH_TWL4030_BASE+18)
> +#define IH_TWL4030_GPIO_BASE (IH_TWL4030_PWRBASE_END)
> +#define IH_TWL4030_GPIO_END (IH_TWL4030_GPIO_BASE+18)
> #define NR_IRQS (IH_TWL4030_GPIO_END)
> +#else
> +#define NR_IRQS (IH_TWL4030_PWRBASE_END)
> +#endif /* CONFIG_I2C_TWL4030_GPIO */
> +#endif /* End of support for TWL4030 */
>
> #endif /* __ASM_ARCH_OMAP_2430OSK_H */
> diff --git a/include/asm-arm/arch-omap/board-2430sdp.h b/include/asm-arm/arch-omap/board-2430sdp.h
> index 186e9cc..217f197 100644
> --- a/include/asm-arm/arch-omap/board-2430sdp.h
> +++ b/include/asm-arm/arch-omap/board-2430sdp.h
> @@ -34,16 +34,27 @@
> #define OMAP24XX_ETHR_GPIO_IRQ 149
> #define SDP2430_CS0_BASE 0x04000000
>
> +#ifdef CONFIG_TWL4030_CORE
> +
> #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)
>
> +#define IH_TWL4030_PWRBASE (IH_TWL4030_END)
> +#define IH_TWL4030_PWRBASE_END (IH_TWL4030_PWRBASE+8)
> +
> +#ifdef CONFIG_TWL4030_GPIO
> +
> /* TWL4030 GPIO Interrupts */
> -#define IH_TWL4030_GPIO_BASE (IH_TWL4030_END)
> -#define IH_TWL4030_GPIO_END (IH_TWL4030_BASE+18)
> +#define IH_TWL4030_GPIO_BASE (IH_TWL4030_PWRBASE_END)
> +#define IH_TWL4030_GPIO_END (IH_TWL4030_GPIO_BASE+18)
> #define NR_IRQS (IH_TWL4030_GPIO_END)
> +#else
> +#define NR_IRQS (IH_TWL4030_PWRBASE_END)
> +#endif /* CONFIG_I2C_TWL4030_GPIO */
> +#endif /* End of support for TWL4030 */
>
> /* Function prototypes */
> extern void sdp2430_flash_init(void);
> -- 1.5.3.GIT
>
prev parent reply other threads:[~2008-04-09 21:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 15:35 [PATCH 1/1] OMAP2430: Add missing defines for TWL4030 Carlos Aguiar
2008-04-09 21:18 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080409211842.GP31071@atomide.com \
--to=tony@atomide.com \
--cc=carlos.aguiar@indt.org.br \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox