summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2012-07-31 19:47:32 +0100
committerAndy Green <andy.green@linaro.org>2012-11-27 11:41:36 +0800
commit2f4a1e75b8bb373ed806eea1ab4fc458a582f51b (patch)
treee09634b7168d227b9cd335ba8ee7ad598dabc240
parent0ea591c2e993ccc3578d572d76f90ff04e810629 (diff)
ASoC: aess: Allow userspace to include abe memory offsets
Signed-off-by: Liam Girdwood <lrg@ti.com>
-rw-r--r--sound/soc/omap/aess/abe_mem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/omap/aess/abe_mem.h b/sound/soc/omap/aess/abe_mem.h
index c8fba3b9ae7..7fedfc647a5 100644
--- a/sound/soc/omap/aess/abe_mem.h
+++ b/sound/soc/omap/aess/abe_mem.h
@@ -159,6 +159,7 @@ struct omap_aess_addr {
#define OMAP_AESS_CMEM__ID 7
+#ifdef __KERNEL__
/* Distinction between Read and Write from/to ABE memory
* is useful for simulation tool */
@@ -209,5 +210,5 @@ static inline void *omap_aess_reset_mem(struct omap_aess *abe,
return memset(abe->io_base[addr.bank] + addr.offset, 0, addr.bytes);
}
-
+#endif /* __KERNEL__ */
#endif /*_ABE_MEM_H_*/