1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <baseboard/variants.h>
5 #include <device/device.h>
10 static void mainboard_init(void *chip_info
)
12 const struct pad_config
*pads
;
15 pads
= variant_gpio_table(&num
);
16 gpio_configure_pads(pads
, num
);
19 static unsigned long mainboard_write_acpi_tables(const struct device
*device
,
20 unsigned long current
,
34 variant_nhlt_init(nhlt
);
36 end_addr
= nhlt_soc_serialize(nhlt
, start_addr
);
38 if (end_addr
!= start_addr
)
39 acpi_add_table(rsdp
, (void *)start_addr
);
44 static void mainboard_enable(struct device
*dev
)
46 dev
->ops
->write_acpi_tables
= mainboard_write_acpi_tables
;
49 struct chip_operations mainboard_ops
= {
50 .init
= mainboard_init
,
51 .enable_dev
= mainboard_enable
,