Vladimir Serbinenko | 55f3e2f | 2015-05-29 22:07:29 +0200 | [diff] [blame] | 1 | #include <device/device.h> |
| 2 | #include <drivers/intel/gma/int15.h> |
| 3 | #include <southbridge/intel/bd82x6x/pch.h> |
| 4 | #include <ec/acpi/ec.h> |
| 5 | #include <console/console.h> |
| 6 | |
| 7 | static void mainboard_init(device_t dev) |
| 8 | { |
| 9 | RCBA32(0x38c8) = 0x00002005; |
| 10 | RCBA32(0x38c4) = 0x00800000; |
| 11 | RCBA32(0x38c0) = 0x00000007; |
Vladimir Serbinenko | 55f3e2f | 2015-05-29 22:07:29 +0200 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | static void mainboard_enable(device_t dev) |
| 15 | { |
| 16 | dev->ops->init = mainboard_init; |
| 17 | |
Vladimir Serbinenko | d57fb2d | 2015-10-10 14:21:36 +0200 | [diff] [blame] | 18 | install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); |
Vladimir Serbinenko | 55f3e2f | 2015-05-29 22:07:29 +0200 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | struct chip_operations mainboard_ops = { |
| 22 | .enable_dev = mainboard_enable, |
| 23 | }; |