summaryrefslogtreecommitdiff
path: root/lib_generic/lmb.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-11-03 11:35:59 -0500
committerWolfgang Denk <wd@denx.de>2010-01-21 22:26:00 +0100
commita16028da63c78001823bfb375b3f6d9d86e5a534 (patch)
treeaea901c9aabc6df0cf0db97e55ec39a55d76b653 /lib_generic/lmb.c
parentdac4d7e8849d275023ea2fcae6caf941db91c042 (diff)
downloadu-boot-imx-a16028da63c78001823bfb375b3f6d9d86e5a534.zip
u-boot-imx-a16028da63c78001823bfb375b3f6d9d86e5a534.tar.gz
u-boot-imx-a16028da63c78001823bfb375b3f6d9d86e5a534.tar.bz2
lmb: only force on arches that use it
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib_generic/lmb.c')
-rw-r--r--lib_generic/lmb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib_generic/lmb.c b/lib_generic/lmb.c
index 1c6cf7c..c5e75fb 100644
--- a/lib_generic/lmb.c
+++ b/lib_generic/lmb.c
@@ -334,3 +334,15 @@ int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr)
}
return 0;
}
+
+void __board_lmb_reserve(struct lmb *lmb)
+{
+ /* please define platform specific board_lmb_reserve() */
+}
+void board_lmb_reserve(struct lmb *lmb) __attribute__((weak, alias("__board_lmb_reserve")));
+
+void __arch_lmb_reserve(struct lmb *lmb)
+{
+ /* please define platform specific arch_lmb_reserve() */
+}
+void arch_lmb_reserve(struct lmb *lmb) __attribute__((weak, alias("__arch_lmb_reserve")));