summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/supermicro/x11-lga1151-series/include/mainboard.h2
-rw-r--r--src/mainboard/supermicro/x11-lga1151-series/mainboard.c13
-rw-r--r--src/mainboard/supermicro/x11-lga1151-series/variants/x11ssm-f/mainboard.c2
3 files changed, 6 insertions, 11 deletions
diff --git a/src/mainboard/supermicro/x11-lga1151-series/include/mainboard.h b/src/mainboard/supermicro/x11-lga1151-series/include/mainboard.h
index c63b434597..cad75f4baf 100644
--- a/src/mainboard/supermicro/x11-lga1151-series/include/mainboard.h
+++ b/src/mainboard/supermicro/x11-lga1151-series/include/mainboard.h
@@ -5,6 +5,6 @@
#include <device/device.h>
-void variant_mainboard_init(struct device *dev);
+void variant_mainboard_init(void *chip_info);
#endif /* _BASEBOARD_X11_LGA1151_SERIES_H */
diff --git a/src/mainboard/supermicro/x11-lga1151-series/mainboard.c b/src/mainboard/supermicro/x11-lga1151-series/mainboard.c
index 92718e8c0d..1377a874fe 100644
--- a/src/mainboard/supermicro/x11-lga1151-series/mainboard.c
+++ b/src/mainboard/supermicro/x11-lga1151-series/mainboard.c
@@ -5,24 +5,19 @@
#include <soc/ramstage.h>
#include <variant/gpio.h>
-__weak void variant_mainboard_init(struct device *dev)
+__weak void variant_mainboard_init(void *chip_info)
{
}
-static void mainboard_init(struct device *dev)
+static void mainboard_chip_init(void *chip_info)
{
/* do common init */
gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
/* do variant init */
- variant_mainboard_init(dev);
-}
-
-static void mainboard_enable(struct device *dev)
-{
- dev->ops->init = mainboard_init;
+ variant_mainboard_init(chip_info);
}
struct chip_operations mainboard_ops = {
- .enable_dev = mainboard_enable,
+ .init = mainboard_chip_init,
};
diff --git a/src/mainboard/supermicro/x11-lga1151-series/variants/x11ssm-f/mainboard.c b/src/mainboard/supermicro/x11-lga1151-series/variants/x11ssm-f/mainboard.c
index 0b26e06aa4..75351eb6de 100644
--- a/src/mainboard/supermicro/x11-lga1151-series/variants/x11ssm-f/mainboard.c
+++ b/src/mainboard/supermicro/x11-lga1151-series/variants/x11ssm-f/mainboard.c
@@ -5,7 +5,7 @@
#include <intelblocks/pcr.h>
#include <soc/pcr_ids.h>
-void variant_mainboard_init(struct device *dev)
+void variant_mainboard_init(void *chip_info)
{
// TODO: NMI; is this needed? vendor sets it
pcr_write32(0xae, 0x01e4, 0x00000004);