diff options
author | Yi Li <yi.li@linaro.org> | 2014-10-04 11:46:43 -0400 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2014-11-05 03:03:25 -0500 |
commit | d1ae8c0057921681ca489bba7efbfacbb60d0f28 (patch) | |
tree | bbc462d4e9fd5e166cbdc6580fb4e0cf053186ad /arch/arm64/kernel/efi.c | |
parent | fc43026278b23b3515cf8f909ec29df94b3ae1a2 (diff) |
arm64: dmi: Add SMBIOS/DMI support
SMBIOS is important for server hardware vendors. It implements a spec for
providing descriptive information about the platform. Things like serial
numbers, physical layout of the ports, build configuration data, and the like.
Signed-off-by: Yi Li <yi.li@linaro.org>
Tested-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'arch/arm64/kernel/efi.c')
-rw-r--r-- | arch/arm64/kernel/efi.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c index 558572ef1ea3..9ae5e7918b8f 100644 --- a/arch/arm64/kernel/efi.c +++ b/arch/arm64/kernel/efi.c | |||
@@ -11,6 +11,7 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/dmi.h> | ||
14 | #include <linux/efi.h> | 15 | #include <linux/efi.h> |
15 | #include <linux/export.h> | 16 | #include <linux/export.h> |
16 | #include <linux/memblock.h> | 17 | #include <linux/memblock.h> |
@@ -469,3 +470,15 @@ err_unmap: | |||
469 | return -1; | 470 | return -1; |
470 | } | 471 | } |
471 | early_initcall(arm64_enter_virtual_mode); | 472 | early_initcall(arm64_enter_virtual_mode); |
473 | |||
474 | static int __init arm64_dmi_init(void) | ||
475 | { | ||
476 | /* | ||
477 | * On arm64, DMI depends on UEFI, and dmi_scan_machine() needs to | ||
478 | * be called early because dmi_id_init(), which is an arch_initcall | ||
479 | * itself, depends on dmi_scan_machine() having been called already. | ||
480 | */ | ||
481 | dmi_scan_machine(); | ||
482 | return 0; | ||
483 | } | ||
484 | core_initcall(arm64_dmi_init); | ||