common: Make sure arch-specific map_sysmem() is defined
authorJoe Hershberger <joe.hershberger@ni.com>
Sun, 22 Mar 2015 22:08:59 +0000 (17:08 -0500)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:09 +0000 (11:11 -0600)
commit0eb25b619699270a8af95c2f76791fd6c4b52972
treebb85868e6f9403bb59928feccb08662553e93c25
parenteb374221ecac57a85009b801110249e5a0d09ad1
common: Make sure arch-specific map_sysmem() is defined

In the case where the arch defines a custom map_sysmem(), make sure that
including just mapmem.h is sufficient to have these functions as they
are when the arch does not override it.

Also split the non-arch specific functions out of common.h

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
36 files changed:
arch/arm/lib/bootm.c
common/board_f.c
common/board_r.c
common/bootm.c
common/cmd_bootm.c
common/cmd_demo.c
common/cmd_fat.c
common/cmd_fdt.c
common/cmd_lzmadec.c
common/cmd_md5sum.c
common/cmd_mem.c
common/cmd_nvedit.c
common/cmd_pxe.c
common/cmd_sf.c
common/cmd_source.c
common/cmd_trace.c
common/cmd_ximg.c
common/hash.c
common/image-fdt.c
common/image-fit.c
common/image.c
common/iotrace.c
common/lcd.c
common/malloc_simple.c
drivers/demo/demo-simple.c
drivers/i2c/i2c-uniphier-f.c
drivers/i2c/i2c-uniphier.c
drivers/mtd/spi/sf_probe.c
drivers/serial/ns16550.c
drivers/serial/serial_uniphier.c
fs/fs.c
include/common.h
include/mapmem.h [new file with mode: 0644]
lib/trace.c
test/compression.c
test/dm/cmd_dm.c