aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2010-11-10 12:22:48 -0500
committerOmar Ramirez Luna <omar.ramirez@ti.com>2010-11-10 19:34:18 -0500
commita9db2036744676e0a9bf01522ef24140a591c0f0 (patch)
treecee53e63be6cff89a741f0b5117d0b0da5bfbf19
parent89346f950014f2c615ed96c630be2a9c8576743c (diff)
staging: tidspbridge: hardcode SCM macros while fix is upstreamed
On 2.6.37-rc1, omap platform internals for SCM have changed, so the build is broken again. drivers/staging/tidspbridge/core/tiomap3430.c:26: fatal error: plat/control.h: No such file or directory This is a totally ugly layer violation, but needed until omap_ctrl_set_dsp_boot*() are provided. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
-rw-r--r--drivers/staging/tidspbridge/core/tiomap3430.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core/tiomap3430.c
index f22bc12bc0d..d302e30443a 100644
--- a/drivers/staging/tidspbridge/core/tiomap3430.c
+++ b/drivers/staging/tidspbridge/core/tiomap3430.c
@@ -23,7 +23,6 @@
23#include <dspbridge/host_os.h> 23#include <dspbridge/host_os.h>
24#include <linux/mm.h> 24#include <linux/mm.h>
25#include <linux/mmzone.h> 25#include <linux/mmzone.h>
26#include <plat/control.h>
27 26
28/* ----------------------------------- DSP/BIOS Bridge */ 27/* ----------------------------------- DSP/BIOS Bridge */
29#include <dspbridge/dbdefs.h> 28#include <dspbridge/dbdefs.h>
@@ -68,6 +67,19 @@
68#define OMAP3_IVA2_BOOTADDR_MASK 0xFFFFFC00 67#define OMAP3_IVA2_BOOTADDR_MASK 0xFFFFFC00
69#define PAGES_II_LVL_TABLE 512 68#define PAGES_II_LVL_TABLE 512
70 69
70/*
71 * This is a totally ugly layer violation, but needed until
72 * omap_ctrl_set_dsp_boot*() are provided.
73 */
74#define OMAP3_IVA2_BOOTMOD_IDLE 1
75#define OMAP2_CONTROL_GENERAL 0x270
76#define OMAP343X_CONTROL_IVA2_BOOTADDR (OMAP2_CONTROL_GENERAL + 0x0190)
77#define OMAP343X_CONTROL_IVA2_BOOTMOD (OMAP2_CONTROL_GENERAL + 0x0194)
78
79#define OMAP343X_CTRL_REGADDR(reg) \
80 OMAP2_L4_IO_ADDRESS(OMAP343X_CTRL_BASE + (reg))
81
82
71/* Forward Declarations: */ 83/* Forward Declarations: */
72static int bridge_brd_monitor(struct bridge_dev_context *dev_ctxt); 84static int bridge_brd_monitor(struct bridge_dev_context *dev_ctxt);
73static int bridge_brd_read(struct bridge_dev_context *dev_ctxt, 85static int bridge_brd_read(struct bridge_dev_context *dev_ctxt,