linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] staging: tidspbridge: fix breakages due to CM reorganization
@ 2012-12-24 14:10 Omar Ramirez Luna
  2012-12-24 14:10 ` [PATCH 2/2] staging: tidspbridge: use prepare/unprepare on dsp clocks Omar Ramirez Luna
  2013-01-07 23:03 ` [PATCH 1/2] staging: tidspbridge: fix breakages due to CM reorganization Greg Kroah-Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Omar Ramirez Luna @ 2012-12-24 14:10 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Tony Lindgren, devel, linux-omap

3.8-rc1 introduced changes in the clock management header files,
this resulted in compilation breakages for this driver.

Define this locally while APIs are made available, given that driver
code shouldn't include mach header files.

This fixes:
drivers/staging/tidspbridge/core/tiomap3430.c:550:13: error:
'OMAP3430_CM_AUTOIDLE_PLL' undeclared (first use in this function)
drivers/staging/tidspbridge/core/tiomap_io.c:416:13: error:
'OMAP3430_CM_CLKEN_PLL' undeclared (first use in this function)

Reported-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@copitl.com>
---
 drivers/staging/tidspbridge/core/_tiomap.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/tidspbridge/core/_tiomap.h b/drivers/staging/tidspbridge/core/_tiomap.h
index 543a127..61ea135 100644
--- a/drivers/staging/tidspbridge/core/_tiomap.h
+++ b/drivers/staging/tidspbridge/core/_tiomap.h
@@ -40,6 +40,14 @@
 #include <dspbridge/sync.h>
 #include <dspbridge/clk.h>
 
+/*
+ * XXX These mach-omap2/ defines are wrong and should be removed.  No
+ * driver should read or write to PRM/CM registers directly; they
+ * should rely on OMAP core code to do this.
+ */
+#define OMAP3430_CM_AUTOIDLE_PLL	0x0034
+#define OMAP3430_CM_CLKEN_PLL		0x0004
+
 struct map_l4_peripheral {
 	u32 phys_addr;
 	u32 dsp_virt_addr;
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-08  1:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-24 14:10 [PATCH 1/2] staging: tidspbridge: fix breakages due to CM reorganization Omar Ramirez Luna
2012-12-24 14:10 ` [PATCH 2/2] staging: tidspbridge: use prepare/unprepare on dsp clocks Omar Ramirez Luna
2013-01-07 23:03 ` [PATCH 1/2] staging: tidspbridge: fix breakages due to CM reorganization Greg Kroah-Hartman
2013-01-08  1:03   ` Omar Ramirez Luna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).