diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-11-03 11:35:59 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-01-21 22:26:00 +0100 |
commit | a16028da63c78001823bfb375b3f6d9d86e5a534 (patch) | |
tree | aea901c9aabc6df0cf0db97e55ec39a55d76b653 /lib_generic | |
parent | dac4d7e8849d275023ea2fcae6caf941db91c042 (diff) | |
download | u-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')
-rw-r--r-- | lib_generic/Makefile | 2 | ||||
-rw-r--r-- | lib_generic/lmb.c | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib_generic/Makefile b/lib_generic/Makefile index 4b8ed3a..4e4496a 100644 --- a/lib_generic/Makefile +++ b/lib_generic/Makefile @@ -38,7 +38,7 @@ COBJS-y += ctype.o COBJS-y += display_options.o COBJS-y += div64.o COBJS-y += gunzip.o -COBJS-y += lmb.o +COBJS-$(CONFIG_LMB) += lmb.o COBJS-y += ldiv.o COBJS-$(CONFIG_MD5) += md5.o COBJS-y += net_utils.o 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"))); |