1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/device.h>
6 * Declare the resources we are using
8 static void mainboard_reserve_resources(struct device
*dev
)
14 * CPLD: Reserve the IRQ here all others are within the default LPC
17 res
= new_resource(dev
, idx
++);
20 res
->flags
= IORESOURCE_IRQ
| IORESOURCE_ASSIGNED
| IORESOURCE_FIXED
;
24 * mainboard_enable is executed as first thing after
27 static void mainboard_enable(struct device
*dev
)
29 mainboard_reserve_resources(dev
);
32 struct chip_operations mainboard_ops
= {
33 .enable_dev
= mainboard_enable
,