x86: apl: Tell of-platdata about a required header file
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:46 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Mar 2021 04:03:09 +0000 (17:03 +1300)
This enum is needed to generate build-time devices. Tell dtoc where to
find the header, to avoid compile errors in the generated code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/apollolake/punit.c

index e67c011e22c2ba8fff40737880272e9e5e23a0dc..5ed7963579eaa43ab1a094e72d8cee9a85509b60 100644 (file)
@@ -93,4 +93,5 @@ U_BOOT_DRIVER(intel_apl_punit) = {
        .id             = UCLASS_SYSCON,
        .of_match       = apl_syscon_ids,
        .probe          = apl_punit_probe,
+       DM_HEADER(<asm/cpu.h>)    /* for X86_SYSCON_PUNIT */
 };