soc/intel/dnv_ns: hook up new gpio device operations
This change hooks up the new gpio operations in DNV-NS. Change-Id: I2179e641153da7230467c5766e4ded58fdb90292 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48618 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
1faaa16a08
commit
fc862dd7d2
|
@ -52,6 +52,7 @@ ramstage-y += tsc_freq.c
|
|||
ramstage-y += spi.c
|
||||
ramstage-y += fiamux.c
|
||||
ramstage-y += hob_mem.c
|
||||
ramstage-y += gpio.c
|
||||
ramstage-$(CONFIG_DRIVERS_UART_8250MEM) += uart_debug.c
|
||||
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
|
||||
ramstage-$(CONFIG_HAVE_SMI_HANDLER) += smm.c
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <fsp/api.h>
|
||||
#include <fsp/util.h>
|
||||
#include <intelblocks/fast_spi.h>
|
||||
#include <intelblocks/gpio.h>
|
||||
#include <soc/iomap.h>
|
||||
#include <soc/intel/common/vbt.h>
|
||||
#include <soc/pci_devs.h>
|
||||
|
@ -39,6 +40,8 @@ static void soc_enable_dev(struct device *dev)
|
|||
dev->ops = &pci_domain_ops;
|
||||
else if (dev->path.type == DEVICE_PATH_CPU_CLUSTER)
|
||||
dev->ops = &cpu_bus_ops;
|
||||
else if (dev->path.type == DEVICE_PATH_GPIO)
|
||||
block_gpio_enable(dev);
|
||||
}
|
||||
|
||||
static void soc_init(void *data)
|
||||
|
|
Loading…
Reference in New Issue