soc/intel/apollolake: make gpo.h ACPI compatible
BUG=None TEST=Build with <soc/gpio.h> included in mainboard.asl Change-Id: Id6fdc50d09c014f930fdfd5c2fde0df827ad5181 Signed-off-by: Freddy Paul <freddy.paul@intel.com> Reviewed-on: https://review.coreboot.org/15272 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
15fa992cc8
commit
1706cb3ee3
|
@ -18,8 +18,10 @@
|
|||
#ifndef _SOC_APOLLOLAKE_GPIO_H_
|
||||
#define _SOC_APOLLOLAKE_GPIO_H_
|
||||
|
||||
#include <types.h>
|
||||
#include <soc/gpio_defs.h>
|
||||
/* __ACPI__ guard is needed to ignore below code in ACPI/ASL compilation */
|
||||
#ifndef __ACPI__
|
||||
#include <types.h>
|
||||
|
||||
typedef uint32_t gpio_t;
|
||||
|
||||
|
@ -97,4 +99,5 @@ struct pad_config {
|
|||
void gpio_configure_pad(const struct pad_config *cfg);
|
||||
void gpio_configure_pads(const struct pad_config *cfg, size_t num_pads);
|
||||
|
||||
#endif /* __ACPI__ */
|
||||
#endif /* _SOC_APOLLOLAKE_GPIO_H_ */
|
||||
|
|
Loading…
Reference in New Issue