firmware/dmi_scan: generalize for use by other archs
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 23 Jan 2014 23:54:39 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:57 +0000 (16:36 -0800)
commitcf0744021c5d5de54d2c66e2020c6de2fe800264
tree0d2032c3d04aabe53ac3d9a2963c41d8c0b331c1
parent3e2a4c183ace8708c69f589505fb82bb63010ade
firmware/dmi_scan: generalize for use by other archs

This patch makes a couple of changes to the SMBIOS/DMI scanning
code so it can be used on other archs (such as ARM and arm64):
(a) wrap the calls to ioremap()/iounmap(), this allows the use of a
    flavor of ioremap() more suitable for random unaligned access;
(b) allow the non-EFI fallback probe into hardcoded physical address
    0xF0000 to be disabled.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Grant Likely <grant.likely@linaro.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/Kconfig
arch/ia64/include/asm/dmi.h
arch/x86/Kconfig
arch/x86/include/asm/dmi.h
drivers/firmware/Kconfig
drivers/firmware/dmi_scan.c