* [PATCH] staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS
@ 2012-04-23 14:34 Felipe Contreras
2012-04-23 14:39 ` Russell King - ARM Linux
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Contreras @ 2012-04-23 14:34 UTC (permalink / raw)
To: linux-arm-kernel
drivers/staging/tidspbridge/core/tiomap3430.c: In function 'bridge_brd_start':
drivers/staging/tidspbridge/core/tiomap3430.c:425: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'
drivers/staging/tidspbridge/core/wdt.c: In function 'dsp_wdt_init':
drivers/staging/tidspbridge/core/wdt.c:56: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'
The proper fix will come later.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
drivers/staging/tidspbridge/include/dspbridge/dbdefs.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h b/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h
index c8f4645..f9a0d16 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h
@@ -28,6 +28,14 @@
#define PG_ALIGN_LOW(addr, pg_size) ((addr) & PG_MASK(pg_size))
#define PG_ALIGN_HIGH(addr, pg_size) (((addr)+(pg_size)-1) & PG_MASK(pg_size))
+/*
+ * NOTE: Please update to use ioremap + read/write
+ */
+
+#define OMAP2_L4_IO_OFFSET 0xb2000000
+#define IOMEM(x) ((void __force __iomem *)(x))
+#define OMAP2_L4_IO_ADDRESS(pa) IOMEM((pa) + OMAP2_L4_IO_OFFSET)
+
/* API return value and calling convention */
#define DBAPI int
--
1.7.10
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS
2012-04-23 14:34 [PATCH] staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS Felipe Contreras
@ 2012-04-23 14:39 ` Russell King - ARM Linux
2012-04-23 14:49 ` Felipe Contreras
0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2012-04-23 14:39 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Apr 23, 2012 at 05:34:14PM +0300, Felipe Contreras wrote:
> drivers/staging/tidspbridge/core/tiomap3430.c: In function 'bridge_brd_start':
> drivers/staging/tidspbridge/core/tiomap3430.c:425: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'
> drivers/staging/tidspbridge/core/wdt.c: In function 'dsp_wdt_init':
> drivers/staging/tidspbridge/core/wdt.c:56: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'
>
> The proper fix will come later.
Hmm. Given that this is staging stuff, which hasn't been making much
progress out of staging, I'd suggest not doing the quick fix on it, but
spending the time to implement the proper fix now and move the code
closer to the point where it can move out of staging. You might get
a gold star from Greg for moving this forward...
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS
2012-04-23 14:39 ` Russell King - ARM Linux
@ 2012-04-23 14:49 ` Felipe Contreras
0 siblings, 0 replies; 3+ messages in thread
From: Felipe Contreras @ 2012-04-23 14:49 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Apr 23, 2012 at 5:39 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Mon, Apr 23, 2012 at 05:34:14PM +0300, Felipe Contreras wrote:
>> drivers/staging/tidspbridge/core/tiomap3430.c: In function 'bridge_brd_start':
>> drivers/staging/tidspbridge/core/tiomap3430.c:425: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'
>> drivers/staging/tidspbridge/core/wdt.c: In function 'dsp_wdt_init':
>> drivers/staging/tidspbridge/core/wdt.c:56: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'
>>
>> The proper fix will come later.
>
> Hmm. ?Given that this is staging stuff, which hasn't been making much
> progress out of staging, I'd suggest not doing the quick fix on it, but
> spending the time to implement the proper fix now and move the code
> closer to the point where it can move out of staging.
Omar is already on that.
> You might get a gold star from Greg for moving this forward...
In my experience gold stars from Greg mean nothing.
Cheers.
--
Felipe Contreras
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-23 14:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 14:34 [PATCH] staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS Felipe Contreras
2012-04-23 14:39 ` Russell King - ARM Linux
2012-04-23 14:49 ` Felipe Contreras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox