* patch 0/1 ldp fix
@ 2008-09-22 15:10 Felipe Balbi
2008-09-22 15:10 ` [PATCH] omap: ldp: fix compile breakage and physical/virtual address usage Felipe Balbi
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2008-09-22 15:10 UTC (permalink / raw)
To: linux-omap; +Cc: tony, Nishant Kamat
Hi all,
the following patch is compile tested only. I'm Ccing Nishant since he's
the one who sent board-ldp.c originaly.
Nishant, if you can test the patch, I'd be glad.
regards,
- balbi
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] omap: ldp: fix compile breakage and physical/virtual address usage
2008-09-22 15:10 patch 0/1 ldp fix Felipe Balbi
@ 2008-09-22 15:10 ` Felipe Balbi
2008-10-06 8:39 ` Tony Lindgren
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2008-09-22 15:10 UTC (permalink / raw)
To: linux-omap; +Cc: tony, Nishant Kamat, Felipe Balbi
commit bf9454a3aaf2cad2321aa8f97bfd5d8c4ebc7bf5 broke compilation
for ldp board. The following patch fixes it. Also fixes a wrong
cast from a void __iomem * to u32.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
arch/arm/mach-omap2/board-ldp.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c
index 9263be9..8b0256c 100644
--- a/arch/arm/mach-omap2/board-ldp.c
+++ b/arch/arm/mach-omap2/board-ldp.c
@@ -54,9 +54,10 @@ static int __init msecure_init(void)
#ifdef CONFIG_RTC_DRV_TWL4030
/* 3430ES2.0 doesn't have msecure/gpio-22 line connected to T2 */
- if (omap_device_type() == OMAP2_DEVICE_TYPE_GP &&
+ if (omap_type() == OMAP2_DEVICE_TYPE_GP &&
system_rev < OMAP3430_REV_ES2_0) {
- u32 msecure_pad_config_reg = omap_ctrl_base_get() + 0xA3C;
+ void __iomem *msecure_pad_config_reg =
+ omap_ctrl_base_get() + 0xA3C;
int mux_mask = 0x04;
u16 tmp;
@@ -72,10 +73,10 @@ static int __init msecure_init(void)
* TWL4030 RTC time and calender registers.
*/
- tmp = omap_readw(msecure_pad_config_reg);
+ tmp = __raw_readw(msecure_pad_config_reg);
tmp &= 0xF8; /* To enable mux mode 03/04 = GPIO_RTC */
tmp |= mux_mask;/* To enable mux mode 03/04 = GPIO_RTC */
- omap_writew(tmp, msecure_pad_config_reg);
+ __raw_writew(tmp, msecure_pad_config_reg);
gpio_direction_output(TWL4030_MSECURE_GPIO, 1);
}
--
1.6.0.1.308.gede4c
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] omap: ldp: fix compile breakage and physical/virtual address usage
2008-09-22 15:10 ` [PATCH] omap: ldp: fix compile breakage and physical/virtual address usage Felipe Balbi
@ 2008-10-06 8:39 ` Tony Lindgren
0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2008-10-06 8:39 UTC (permalink / raw)
To: Felipe Balbi; +Cc: linux-omap, Nishant Kamat
* Felipe Balbi <felipe.balbi@nokia.com> [080922 18:11]:
> commit bf9454a3aaf2cad2321aa8f97bfd5d8c4ebc7bf5 broke compilation
> for ldp board. The following patch fixes it. Also fixes a wrong
> cast from a void __iomem * to u32.
Pushing today.
Tony
> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
> ---
> arch/arm/mach-omap2/board-ldp.c | 9 +++++----
> 1 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c
> index 9263be9..8b0256c 100644
> --- a/arch/arm/mach-omap2/board-ldp.c
> +++ b/arch/arm/mach-omap2/board-ldp.c
> @@ -54,9 +54,10 @@ static int __init msecure_init(void)
>
> #ifdef CONFIG_RTC_DRV_TWL4030
> /* 3430ES2.0 doesn't have msecure/gpio-22 line connected to T2 */
> - if (omap_device_type() == OMAP2_DEVICE_TYPE_GP &&
> + if (omap_type() == OMAP2_DEVICE_TYPE_GP &&
> system_rev < OMAP3430_REV_ES2_0) {
> - u32 msecure_pad_config_reg = omap_ctrl_base_get() + 0xA3C;
> + void __iomem *msecure_pad_config_reg =
> + omap_ctrl_base_get() + 0xA3C;
> int mux_mask = 0x04;
> u16 tmp;
>
> @@ -72,10 +73,10 @@ static int __init msecure_init(void)
> * TWL4030 RTC time and calender registers.
> */
>
> - tmp = omap_readw(msecure_pad_config_reg);
> + tmp = __raw_readw(msecure_pad_config_reg);
> tmp &= 0xF8; /* To enable mux mode 03/04 = GPIO_RTC */
> tmp |= mux_mask;/* To enable mux mode 03/04 = GPIO_RTC */
> - omap_writew(tmp, msecure_pad_config_reg);
> + __raw_writew(tmp, msecure_pad_config_reg);
>
> gpio_direction_output(TWL4030_MSECURE_GPIO, 1);
> }
> --
> 1.6.0.1.308.gede4c
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-06 8:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 15:10 patch 0/1 ldp fix Felipe Balbi
2008-09-22 15:10 ` [PATCH] omap: ldp: fix compile breakage and physical/virtual address usage Felipe Balbi
2008-10-06 8:39 ` Tony Lindgren
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.