Angel Pons | af4ecc2 | 2020-04-05 13:21:45 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Patrick Georgi | 04746fc | 2015-06-05 18:53:43 +0200 | [diff] [blame] | 2 | |
Aaron Durbin | b0f8151 | 2016-07-25 21:31:41 -0500 | [diff] [blame] | 3 | #include <vendorcode/google/chromeos/chromeos.h> |
Patrick Georgi | 04746fc | 2015-06-05 18:53:43 +0200 | [diff] [blame] | 4 | #include "onboard.h" |
| 5 | |
Elyes HAOUAS | d129d43 | 2018-05-04 20:23:33 +0200 | [diff] [blame] | 6 | static void mainboard_init(struct device *dev) |
Patrick Georgi | 04746fc | 2015-06-05 18:53:43 +0200 | [diff] [blame] | 7 | { |
| 8 | lan_init(); |
| 9 | } |
| 10 | |
| 11 | // mainboard_enable is executed as first thing after |
| 12 | // enumerate_buses(). |
| 13 | |
Elyes HAOUAS | d129d43 | 2018-05-04 20:23:33 +0200 | [diff] [blame] | 14 | static void mainboard_enable(struct device *dev) |
Patrick Georgi | 04746fc | 2015-06-05 18:53:43 +0200 | [diff] [blame] | 15 | { |
| 16 | dev->ops->init = mainboard_init; |
Nico Huber | 68680dd | 2020-03-31 17:34:52 +0200 | [diff] [blame] | 17 | dev->ops->acpi_inject_dsdt = chromeos_dsdt_generator; |
Patrick Georgi | 04746fc | 2015-06-05 18:53:43 +0200 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | struct chip_operations mainboard_ops = { |
| 21 | .enable_dev = mainboard_enable, |
| 22 | }; |