• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <device/device.h>
4 #include <northbridge/intel/i945/i945.h>
5 #include <drivers/intel/gma/int15.h>
6 #include <ec/acpi/ec.h>
7 
8 #define PANEL INT15_5F35_CL_DISPLAY_DEFAULT
9 
mainboard_init(struct device * dev)10 static void mainboard_init(struct device *dev)
11 {
12 	install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, PANEL, 3);
13 }
14 
mainboard_enable(struct device * dev)15 static void mainboard_enable(struct device *dev)
16 {
17 	dev->ops->init = mainboard_init;
18 }
19 
mainboard_final(void * chip_info)20 static void mainboard_final(void *chip_info)
21 {
22 	ec_set_bit(0x10, 2); /* switch off led */
23 }
24 
25 struct chip_operations mainboard_ops = {
26 	.enable_dev = mainboard_enable,
27 	.final = mainboard_final,
28 };
29