<p>Alexander Morgan has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20921">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Adding in my mainboard source files.<br><br>Change-Id: I999f632748e4b6bc52cc0c5dbd1f3aebc6cad04a<br>---<br>A src/mainboard/gigabyte/ga-h61m-ds2/Kconfig<br>A src/mainboard/gigabyte/ga-h61m-ds2/Kconfig.name<br>A src/mainboard/gigabyte/ga-h61m-ds2/Makefile.inc<br>A src/mainboard/gigabyte/ga-h61m-ds2/acpi/ec.asl<br>A src/mainboard/gigabyte/ga-h61m-ds2/acpi/platform.asl<br>A src/mainboard/gigabyte/ga-h61m-ds2/acpi/superio.asl<br>A src/mainboard/gigabyte/ga-h61m-ds2/acpi/thermal.asl<br>A src/mainboard/gigabyte/ga-h61m-ds2/acpi/video.asl<br>A src/mainboard/gigabyte/ga-h61m-ds2/acpi_tables.c<br>A src/mainboard/gigabyte/ga-h61m-ds2/board_info.txt<br>A src/mainboard/gigabyte/ga-h61m-ds2/cmos.default<br>A src/mainboard/gigabyte/ga-h61m-ds2/cmos.layout<br>A src/mainboard/gigabyte/ga-h61m-ds2/devicetree.cb<br>A src/mainboard/gigabyte/ga-h61m-ds2/dsdt.asl<br>A src/mainboard/gigabyte/ga-h61m-ds2/gma-mainboard.ads<br>A src/mainboard/gigabyte/ga-h61m-ds2/gpio.c<br>A src/mainboard/gigabyte/ga-h61m-ds2/hda_verb.c<br>A src/mainboard/gigabyte/ga-h61m-ds2/mainboard.c<br>A src/mainboard/gigabyte/ga-h61m-ds2/romstage.c<br>A src/mainboard/gigabyte/ga-h61m-ds2/thermal.h<br>20 files changed, 1,279 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/20921/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/Kconfig b/src/mainboard/gigabyte/ga-h61m-ds2/Kconfig<br>new file mode 100644<br>index 0000000..ff22853<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/Kconfig<br>@@ -0,0 +1,71 @@<br>+if BOARD_GIGABYTE_GA_H61M_DS2<br>+<br>+config BOARD_SPECIFIC_OPTIONS<br>+  def_bool y<br>+   select ARCH_X86<br>+      select CPU_INTEL_SOCKET_LGA1155<br>+      select NORTHBRIDGE_INTEL_SANDYBRIDGE<br>+ select USE_NATIVE_RAMINIT<br>+    select SOUTHBRIDGE_INTEL_C216<br>+        select SUPERIO_ITE_IT8728F<br>+   select BOARD_ROMSIZE_KB_8192<br>+ select HAVE_ACPI_TABLES<br>+      select HAVE_OPTION_TABLE<br>+     select HAVE_CMOS_DEFAULT<br>+     select HAVE_ACPI_RESUME<br>+      select HAVE_SMI_HANDLER<br>+      select INTEL_INT15<br>+   select UDELAY_TSC<br>+    select SERIRQ_CONTINUOUS_MODE<br>+        select MAINBOARD_HAS_LIBGFXINIT<br>+#     select MAINBOARD_HAS_NATIVE_VGA_INIT<br>+<br>+config MMCONF_BASE_ADDRESS<br>+ hex<br>+  default 0xf8000000<br>+<br>+config DRAM_RESET_GATE_GPIO<br>+  int<br>+  default 25<br>+<br>+config USBDEBUG_HCD_INDEX<br>+    int<br>+  default 2<br>+<br>+config MAINBOARD_DIR<br>+  string<br>+       default gigabyte/ga-h61m-ds2<br>+<br>+config MAINBOARD_PART_NUMBER<br>+       string<br>+       default "GA-H61M-DS2"<br>+<br>+config MAX_CPUS<br>+ int<br>+  default 8<br>+<br>+config VGA_BIOS_ID<br>+    string<br>+       default "8086,0102"<br>+<br>+config VGA_BIOS_FILE<br>+      string<br>+       default "pci8086,0102.rom"<br>+<br>+config HAVE_IFD_BIN<br>+        bool<br>+ default n<br>+<br>+config HAVE_ME_BIN<br>+    bool<br>+ default n<br>+<br>+config IFD_BIOS_SECTION<br>+       string<br>+       default "0x00600000:0x007fffff"<br>+<br>+config IFD_ME_SECTION<br>+ string<br>+       default "0x00001000:0x004fffff"<br>+<br>+endif # BOARD_GIGABYTE_GA_H61M_DS2<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/Kconfig.name b/src/mainboard/gigabyte/ga-h61m-ds2/Kconfig.name<br>new file mode 100644<br>index 0000000..296b2c7<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/Kconfig.name<br>@@ -0,0 +1,2 @@<br>+config BOARD_GIGABYTE_GA_H61M_DS2<br>+   bool "GA-H61M-DS2"<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/Makefile.inc b/src/mainboard/gigabyte/ga-h61m-ds2/Makefile.inc<br>new file mode 100644<br>index 0000000..63976c4<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/Makefile.inc<br>@@ -0,0 +1,17 @@<br>+##<br>+## This file is part of the coreboot project.<br>+##<br>+## Copyright (C) 2011 The ChromiumOS Authors.  All rights reserved.<br>+##<br>+## This program is free software; you can redistribute it and/or modify<br>+## it under the terms of the GNU General Public License as published by<br>+## the Free Software Foundation; version 2 of the License.<br>+##<br>+## This program is distributed in the hope that it will be useful,<br>+## but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+## GNU General Public License for more details.<br>+##<br>+<br>+romstage-y += gpio.c<br>+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/acpi/ec.asl b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/ec.asl<br>new file mode 100644<br>index 0000000..e69de29<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/ec.asl<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/acpi/platform.asl b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/platform.asl<br>new file mode 100644<br>index 0000000..d8d3320<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/platform.asl<br>@@ -0,0 +1,29 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2012 The Chromium OS Authors. All rights reserved.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+/* The _PTS method (Prepare To Sleep) is called before the OS is<br>+ * entering a sleep state. The sleep state number is passed in Arg0<br>+ */<br>+<br>+Method(_PTS,1)<br>+{<br>+}<br>+<br>+/* The _WAK method is called on system wakeup */<br>+<br>+Method(_WAK,1)<br>+{<br>+       Return(Package(){0,0})<br>+}<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/acpi/superio.asl b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/superio.asl<br>new file mode 100644<br>index 0000000..4c50b6c<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/superio.asl<br>@@ -0,0 +1,4 @@<br>+/* mainboard configuration */<br>+<br>+#define SIO_EC_ENABLE_PS2K       // Enable PS/2 Keyboard<br>+#define SIO_ENABLE_PS2M          // Enable PS/2 Mouse<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/acpi/thermal.asl b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/thermal.asl<br>new file mode 100644<br>index 0000000..c2bc80c<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/thermal.asl<br>@@ -0,0 +1,61 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2011 The Chromium OS Authors. All rights reserved.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+// Thermal Zone<br>+<br>+Scope (\_TZ)<br>+{<br>+        ThermalZone (THRM)<br>+   {<br>+            Name (_TC1, 0x02)<br>+            Name (_TC2, 0x03)<br>+<br>+         // Thermal zone polling frequency: 10 seconds<br>+                Name (_TZP, 100)<br>+<br>+          // Thermal sampling period for passive cooling: 10 seconds<br>+           Name (_TSP, 100)<br>+<br>+          // Convert from Degrees C to 1/10 Kelvin for ACPI<br>+            Method (CTOK, 1)<br>+             {<br>+                    // 10th of Degrees C<br>+                 Multiply (Arg0, 10, Local0)<br>+<br>+                       // Convert to Kelvin<br>+                 Add (Local0, 2732, Local0)<br>+<br>+                        Return (Local0)<br>+              }<br>+<br>+         // Threshold for OS to shutdown<br>+              Method (_CRT, 0, Serialized)<br>+         {<br>+                    Return (CTOK (\TCRT))<br>+                }<br>+<br>+         // Threshold for passive cooling<br>+             Method (_PSV, 0, Serialized)<br>+         {<br>+                    Return (CTOK (\TPSV))<br>+                }<br>+<br>+         // Processors used for passive cooling<br>+               Method (_PSL, 0, Serialized)<br>+         {<br>+                    Return (\PPKG ())<br>+            }<br>+    }<br>+}<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/acpi/video.asl b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/video.asl<br>new file mode 100644<br>index 0000000..f87af3c<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/acpi/video.asl<br>@@ -0,0 +1 @@<br>+// Blank<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/acpi_tables.c b/src/mainboard/gigabyte/ga-h61m-ds2/acpi_tables.c<br>new file mode 100644<br>index 0000000..05a21ae<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/acpi_tables.c<br>@@ -0,0 +1,57 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2007-2009 coresystems GmbH<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#include <types.h><br>+#include <string.h><br>+#include <cbmem.h><br>+#include <console/console.h><br>+#include <arch/acpi.h><br>+#include <arch/ioapic.h><br>+#include <arch/acpigen.h><br>+#include <arch/smp/mpspec.h><br>+#include <device/device.h><br>+#include <device/pci.h><br>+#include <device/pci_ids.h><br>+<br>+#include <southbridge/intel/bd82x6x/pch.h><br>+#include <southbridge/intel/bd82x6x/nvs.h><br>+#include "thermal.h"<br>+<br>+static void acpi_update_thermal_table(global_nvs_t *gnvs)<br>+{<br>+       gnvs->tcrt = CRITICAL_TEMPERATURE;<br>+        gnvs->tpsv = PASSIVE_TEMPERATURE;<br>+}<br>+<br>+void acpi_create_gnvs(global_nvs_t *gnvs)<br>+{<br>+  memset((void *)gnvs, 0, sizeof(*gnvs));<br>+      gnvs->apic = 1;<br>+   gnvs->mpen = 1; /* Enable Multi Processing */<br>+     gnvs->pcnt = dev_count_cpu();<br>+<br>+  /* Disable USB ports in S3 by default */<br>+     gnvs->s3u0 = 0;<br>+   gnvs->s3u1 = 0;<br>+<br>+        /* Disable USB ports in S5 by default */<br>+     gnvs->s5u0 = 0;<br>+   gnvs->s5u1 = 0;<br>+<br>+        // the lid is open by default.<br>+       gnvs->lids = 1;<br>+<br>+        acpi_update_thermal_table(gnvs);<br>+}<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/board_info.txt b/src/mainboard/gigabyte/ga-h61m-ds2/board_info.txt<br>new file mode 100644<br>index 0000000..ede1945<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/board_info.txt<br>@@ -0,0 +1,7 @@<br>+Category: desktop<br>+Board URL: http://www.gigabyte.com/products/product-page.aspx?pid=4151#ov<br>+ROM package: SOIC-8<br>+ROM protocol: SPI<br>+ROM socketed: n<br>+Flashrom support: y<br>+Release date: 2012<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/cmos.default b/src/mainboard/gigabyte/ga-h61m-ds2/cmos.default<br>new file mode 100644<br>index 0000000..767372c<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/cmos.default<br>@@ -0,0 +1,8 @@<br>+boot_option=Fallback<br>+baud_rate=115200<br>+debug_level=Spew<br>+power_on_after_fail=Enable<br>+nmi=Enable<br>+volume=0x3<br>+sata_mode=AHCI<br>+hyper_threading=Enable<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/cmos.layout b/src/mainboard/gigabyte/ga-h61m-ds2/cmos.layout<br>new file mode 100644<br>index 0000000..5600a6b<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/cmos.layout<br>@@ -0,0 +1,125 @@<br>+##<br>+## This file is part of the coreboot project.<br>+##<br>+## Copyright (C) 2007-2008 coresystems GmbH<br>+## Copyright (C) 2014 Vladimir Serbinenko<br>+##<br>+## This program is free software; you can redistribute it and/or modify<br>+## it under the terms of the GNU General Public License as published by<br>+## the Free Software Foundation; version 2 of the License.<br>+##<br>+## This program is distributed in the hope that it will be useful,<br>+## but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+## GNU General Public License for more details.<br>+##<br>+<br>+# -----------------------------------------------------------------<br>+entries<br>+<br>+# -----------------------------------------------------------------<br>+# Status Register A<br>+# -----------------------------------------------------------------<br>+# Status Register B<br>+# -----------------------------------------------------------------<br>+# Status Register C<br>+#96           4       r       0        status_c_rsvd<br>+#100          1       r       0        uf_flag<br>+#101          1       r       0        af_flag<br>+#102          1       r       0        pf_flag<br>+#103          1       r       0        irqf_flag<br>+# -----------------------------------------------------------------<br>+# Status Register D<br>+#104          7       r       0        status_d_rsvd<br>+#111          1       r       0        valid_cmos_ram<br>+# -----------------------------------------------------------------<br>+# Diagnostic Status Register<br>+#112          8       r       0        diag_rsvd1<br>+<br>+# -----------------------------------------------------------------<br>+0          120       r       0        reserved_memory<br>+#120        264       r       0        unused<br>+<br>+# -----------------------------------------------------------------<br>+# RTC_BOOT_BYTE (coreboot hardcoded)<br>+384          1       e       4        boot_option<br>+388          4       h       0        reboot_counter<br>+#390          2       r       0        unused?<br>+<br>+# -----------------------------------------------------------------<br>+# coreboot config options: console<br>+392          3       e       5        baud_rate<br>+395          4       e       6        debug_level<br>+#399          1       r       0        unused<br>+<br>+400          8       h       0        volume<br>+<br>+# coreboot config options: southbridge<br>+408          1       e       1        nmi<br>+409          2       e       7        power_on_after_fail<br>+<br>+#411       10       r       0        unused<br>+421         1       e       9        sata_mode<br>+#422          2       r       0        unused<br>+<br>+# coreboot config options: cpu<br>+424          1       e       2        hyper_threading<br>+#425        7       r       0        unused<br>+<br>+# coreboot config options: northbridge<br>+432         3        e      11        gfx_uma_size<br>+#435        549       r       0        unused<br>+<br>+# SandyBridge MRC Scrambler Seed values<br>+896         32        r       0        mrc_scrambler_seed<br>+928         32        r       0        mrc_scrambler_seed_s3<br>+960         16        r       0        mrc_scrambler_seed_chk<br>+<br>+# coreboot config options: check sums<br>+984         16       h       0        check_sum<br>+<br>+# -----------------------------------------------------------------<br>+<br>+enumerations<br>+<br>+#ID value   text<br>+1     0     Disable<br>+1     1     Enable<br>+2     0     Enable<br>+2     1     Disable<br>+4     0     Fallback<br>+4     1     Normal<br>+5     0     115200<br>+5     1     57600<br>+5     2     38400<br>+5     3     19200<br>+5     4     9600<br>+5     5     4800<br>+5     6     2400<br>+5     7     1200<br>+6     1     Emergency<br>+6     2     Alert<br>+6     3     Critical<br>+6     4     Error<br>+6     5     Warning<br>+6     6     Notice<br>+6     7     Info<br>+6     8     Debug<br>+6     9     Spew<br>+7     0     Disable<br>+7     1     Enable<br>+7     2     Keep<br>+9     0     AHCI<br>+9     1     IDE<br>+11    0     32M<br>+11    1     64M<br>+11    2            96M<br>+11    3           128M<br>+11    4          160M<br>+11    5          192M<br>+11    6          224M<br>+<br>+# -----------------------------------------------------------------<br>+checksums<br>+<br>+checksum 392 415 984<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/devicetree.cb b/src/mainboard/gigabyte/ga-h61m-ds2/devicetree.cb<br>new file mode 100644<br>index 0000000..aa39fc4<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/devicetree.cb<br>@@ -0,0 +1,113 @@<br>+chip northbridge/intel/sandybridge # FIXME: check gfx.ndid and gfx.did<br>+   register "gfx.did" = "{ 0x80000100, 0x80000240, 0x80000410, 0x80000410, 0x00000005 }"<br>+    register "gfx.link_frequency_270_mhz" = "0"<br>+      register "gfx.ndid" = "3"<br>+        register "gfx.use_spread_spectrum_clock" = "0"<br>+   register "gpu_cpu_backlight" = "0x00000000"<br>+      register "gpu_dp_b_hotplug" = "4"<br>+        register "gpu_dp_c_hotplug" = "4"<br>+        register "gpu_dp_d_hotplug" = "4"<br>+        register "gpu_panel_port_select" = "1"<br>+   register "gpu_panel_power_backlight_off_delay" = "500"<br>+   register "gpu_panel_power_backlight_on_delay" = "1"<br>+      register "gpu_panel_power_cycle_delay" = "4"<br>+     register "gpu_panel_power_down_delay" = "5000"<br>+   register "gpu_panel_power_up_delay" = "2100"<br>+     register "gpu_pch_backlight" = "0x00000000"<br>+      device cpu_cluster 0x0 on<br>+            chip cpu/intel/socket_rPGA989<br>+                        device lapic 0x0 on<br>+                  end<br>+          end<br>+          chip cpu/intel/model_206ax # FIXME: check all registers<br>+                      register "c1_acpower" = "1"<br>+                      register "c1_battery" = "1"<br>+                      register "c2_acpower" = "3"<br>+                      register "c2_battery" = "3"<br>+                      register "c3_acpower" = "5"<br>+                      register "c3_battery" = "5"<br>+                      device lapic 0xacac off<br>+                      end<br>+          end<br>+  end<br>+  device domain 0x0 on<br>+         chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH<br>+                     register "c2_latency" = "0x0065"<br>+                 register "docking_supported" = "0"<br>+                       register "gen1_dec" = "0x003c0a01"<br>+                       register "gen2_dec" = "0x00000000"<br>+                       register "gen3_dec" = "0x00000000"<br>+                       register "gen4_dec" = "0x00000000"<br>+                       register "p_cnt_throttling_supported" = "0"<br>+                      register "pcie_hotplug_map" = "{ 0, 0, 0, 0, 0, 0, 0, 0 }"<br>+                       register "pcie_port_coalesce" = "1"<br>+                      register "sata_interface_speed_support" = "0x3"<br>+                  register "sata_port_map" = "0x33"<br>+                        device pci 16.0 on # Management Engine Interface 1<br>+                           subsystemid 0x1458 0x5000<br>+                    end<br>+                  device pci 16.1 off # Management Engine Interface 2<br>+                  end<br>+                  device pci 16.2 off # Management Engine IDE-R<br>+                        end<br>+                  device pci 16.3 off # Management Engine KT<br>+                   end<br>+                  device pci 19.0 off # Intel Gigabit Ethernet<br>+                 end<br>+                  device pci 1a.0 on # USB2 EHCI #2<br>+                            subsystemid 0x1458 0x5006<br>+                    end<br>+                  device pci 1b.0 on # High Definition Audio Audio controller<br>+                          subsystemid 0x1458 0xa002<br>+                    end<br>+                  device pci 1c.0 on # PCIe Port #1<br>+                            subsystemid 0x1458 0x5000<br>+                    end<br>+                  device pci 1c.1 on # PCIe Port #2<br>+                    end<br>+                  device pci 1c.2 off # PCIe Port #3<br>+                   end<br>+                  device pci 1c.3 off # PCIe Port #4<br>+                   end<br>+                  device pci 1c.4 on # PCIe Port #5<br>+                            subsystemid 0x1458 0x5000<br>+                    end<br>+                  device pci 1c.5 on # PCIe Port #6<br>+                            subsystemid 0x1458 0x5000<br>+                    end<br>+                  device pci 1c.6 off # PCIe Port #7<br>+                   end<br>+                  device pci 1c.7 off # PCIe Port #8<br>+                   end<br>+                  device pci 1d.0 on # USB2 EHCI #1<br>+                            subsystemid 0x1458 0x5006<br>+                    end<br>+                  device pci 1e.0 on # PCI bridge VGA controller<br>+                       end<br>+                  device pci 1f.0 on # LPC bridge PCI-LPC bridge<br>+                               subsystemid 0x1458 0x5001<br>+                    end<br>+                  device pci 1f.2 on # SATA Controller 1<br>+                               subsystemid 0x1458 0xb005<br>+                    end<br>+                  device pci 1f.3 on # SMBus<br>+                           subsystemid 0x1458 0x5001<br>+                    end<br>+                  device pci 1f.5 off # SATA Controller 2<br>+                      end<br>+                  device pci 1f.6 off # Thermal<br>+                        end<br>+          end<br>+          device pci 00.0 on # Host bridge Host bridge<br>+                 subsystemid 0x1458 0x5000<br>+            end<br>+          device pci 01.0 on # PCIe Bridge for discrete graphics Unsupported PCI device 8086:0101<br>+              end<br>+          device pci 02.0 on # Internal graphics VGA controller<br>+                        subsystemid 0x1458 0xd000<br>+            end<br>+          device pci 03.0 on # PCIe Bridge for Wifi Card<br>+                       subsystemid 0x1458 0xd000<br>+            end<br>+  end<br>+end<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/dsdt.asl b/src/mainboard/gigabyte/ga-h61m-ds2/dsdt.asl<br>new file mode 100644<br>index 0000000..10faccd<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/dsdt.asl<br>@@ -0,0 +1,29 @@<br>+DefinitionBlock(<br>+       "dsdt.aml",<br>+        "DSDT",<br>+    0x03,           // DSDT revision: ACPI v3.0<br>+  "COREv4",     // OEM id<br>+    "COREBOOT",   // OEM table id<br>+      0x20141018      // OEM revision<br>+)<br>+{<br>+      #include <southbridge/intel/bd82x6x/acpi/platform.asl><br>+<br>+      // Some generic macros<br>+       #include "acpi/platform.asl"<br>+       #include <cpu/intel/model_206ax/acpi/cpu.asl><br>+  /* global NVS and variables.  */<br>+     #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl><br>+        #include <southbridge/intel/bd82x6x/acpi/sleepstates.asl><br>+<br>+   Scope (\_SB) {<br>+               Device (PCI0)<br>+                {<br>+            #include <northbridge/intel/sandybridge/acpi/sandybridge.asl><br>+          #include <southbridge/intel/bd82x6x/acpi/pch.asl><br>+              #include <southbridge/intel/bd82x6x/acpi/default_irq_route.asl><br>+<br>+                     #include <drivers/intel/gma/acpi/default_brightness_levels.asl><br>+                }<br>+    }<br>+}<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/gma-mainboard.ads b/src/mainboard/gigabyte/ga-h61m-ds2/gma-mainboard.ads<br>new file mode 100644<br>index 0000000..06511f9<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/gma-mainboard.ads<br>@@ -0,0 +1,13 @@<br>+with HW.GFX.GMA;<br>+with HW.GFX.GMA.Display_Probing;<br>+<br>+use HW.GFX.GMA;<br>+use HW.GFX.GMA.Display_Probing;<br>+<br>+private package GMA.Mainboard is<br>+<br>+   ports : constant Port_List :=<br>+     (Analog,<br>+      others => Disabled);<br>+<br>+end GMA.Mainboard;<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/gpio.c b/src/mainboard/gigabyte/ga-h61m-ds2/gpio.c<br>new file mode 100644<br>index 0000000..10501e7<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/gpio.c<br>@@ -0,0 +1,476 @@<br>+#include <southbridge/intel/common/gpio.h><br>+<br>+// GPIO_USE_SEL<br>+// 7 Series Default: 0xB96BA1FF<br>+// Inteltool: 0xB96BB9C3<br>+static const struct pch_gpio_set1 pch_gpio_set1_mode = {<br>+     .gpio0 = GPIO_MODE_GPIO,<br>+     .gpio1 = GPIO_MODE_GPIO,<br>+     .gpio2 = GPIO_MODE_NATIVE,<br>+   .gpio3 = GPIO_MODE_NATIVE,<br>+   .gpio4 = GPIO_MODE_NATIVE,<br>+   .gpio5 = GPIO_MODE_NATIVE,<br>+   .gpio6 = GPIO_MODE_GPIO,<br>+     .gpio7 = GPIO_MODE_GPIO,<br>+     .gpio8 = GPIO_MODE_GPIO,<br>+     .gpio9 = GPIO_MODE_NATIVE,<br>+   .gpio10 = GPIO_MODE_NATIVE,<br>+  .gpio11 = GPIO_MODE_GPIO,<br>+    .gpio12 = GPIO_MODE_GPIO,<br>+    .gpio13 = GPIO_MODE_GPIO,<br>+    .gpio14 = GPIO_MODE_NATIVE,<br>+  .gpio15 = GPIO_MODE_GPIO,<br>+    .gpio16 = GPIO_MODE_GPIO,<br>+    .gpio17 = GPIO_MODE_GPIO,<br>+    .gpio18 = GPIO_MODE_NATIVE,<br>+  .gpio19 = GPIO_MODE_GPIO,<br>+    .gpio20 = GPIO_MODE_NATIVE,<br>+  .gpio21 = GPIO_MODE_GPIO,<br>+    .gpio22 = GPIO_MODE_GPIO,<br>+    .gpio23 = GPIO_MODE_NATIVE,<br>+  .gpio24 = GPIO_MODE_GPIO,<br>+    .gpio25 = GPIO_MODE_NATIVE,<br>+  .gpio26 = GPIO_MODE_NATIVE,<br>+  .gpio27 = GPIO_MODE_GPIO,<br>+    .gpio28 = GPIO_MODE_GPIO,<br>+    .gpio29 = GPIO_MODE_GPIO,<br>+    .gpio30 = GPIO_MODE_NATIVE,<br>+  .gpio31 = GPIO_MODE_GPIO,<br>+};<br>+<br>+// GP_IO_SEL<br>+// 7 Series Default: 0xEEFF6EFF<br>+// Inteltool: 0xAEFF6EC3<br>+static const struct pch_gpio_set1 pch_gpio_set1_direction = {<br>+        .gpio0 = GPIO_DIR_INPUT,<br>+     .gpio1 = GPIO_DIR_INPUT,<br>+     .gpio2 = GPIO_DIR_OUTPUT,<br>+    .gpio3 = GPIO_DIR_OUTPUT,<br>+    .gpio4 = GPIO_DIR_OUTPUT,<br>+    .gpio5 = GPIO_DIR_OUTPUT,<br>+    .gpio6 = GPIO_DIR_INPUT,<br>+     .gpio7 = GPIO_DIR_INPUT,<br>+     .gpio8 = GPIO_DIR_OUTPUT,<br>+    .gpio9 = GPIO_DIR_INPUT,<br>+     .gpio10 = GPIO_DIR_INPUT,<br>+    .gpio11 = GPIO_DIR_INPUT,<br>+    .gpio12 = GPIO_DIR_OUTPUT,<br>+   .gpio13 = GPIO_DIR_INPUT,<br>+    .gpio14 = GPIO_DIR_INPUT,<br>+    .gpio15 = GPIO_DIR_OUTPUT,<br>+   .gpio16 = GPIO_DIR_INPUT,<br>+    .gpio17 = GPIO_DIR_INPUT,<br>+    .gpio18 = GPIO_DIR_INPUT,<br>+    .gpio19 = GPIO_DIR_INPUT,<br>+    .gpio20 = GPIO_DIR_INPUT,<br>+    .gpio21 = GPIO_DIR_INPUT,<br>+    .gpio22 = GPIO_DIR_INPUT,<br>+    .gpio23 = GPIO_DIR_INPUT,<br>+    .gpio24 = GPIO_DIR_OUTPUT,<br>+   .gpio25 = GPIO_DIR_INPUT,<br>+    .gpio26 = GPIO_DIR_INPUT,<br>+    .gpio27 = GPIO_DIR_INPUT,<br>+    .gpio28 = GPIO_DIR_OUTPUT,<br>+   .gpio29 = GPIO_DIR_INPUT,<br>+    .gpio30 = GPIO_DIR_OUTPUT,<br>+   .gpio31 = GPIO_DIR_INPUT,<br>+};<br>+<br>+// GP_LVL<br>+// 7 Series Default: 0x02FE0100<br>+// Inteltool: 0xE8FB6FBD<br>+static const struct pch_gpio_set1 pch_gpio_set1_level = {<br>+       .gpio0 = GPIO_LEVEL_HIGH,<br>+    .gpio1 = GPIO_LEVEL_LOW,<br>+     .gpio2 = GPIO_LEVEL_HIGH,<br>+    .gpio3 = GPIO_LEVEL_HIGH,<br>+    .gpio4 = GPIO_LEVEL_HIGH,<br>+    .gpio5 = GPIO_LEVEL_HIGH,<br>+    .gpio6 = GPIO_LEVEL_LOW,<br>+     .gpio7 = GPIO_LEVEL_HIGH,<br>+    .gpio8 = GPIO_LEVEL_HIGH,<br>+    .gpio9 = GPIO_LEVEL_HIGH,<br>+    .gpio10 = GPIO_LEVEL_HIGH,<br>+   .gpio11 = GPIO_LEVEL_HIGH,<br>+   .gpio12 = GPIO_LEVEL_LOW,<br>+    .gpio13 = GPIO_LEVEL_HIGH,<br>+   .gpio14 = GPIO_LEVEL_HIGH,<br>+   .gpio15 = GPIO_LEVEL_LOW,<br>+    .gpio16 = GPIO_LEVEL_HIGH,<br>+   .gpio17 = GPIO_LEVEL_HIGH,<br>+   .gpio18 = GPIO_LEVEL_LOW,<br>+    .gpio19 = GPIO_LEVEL_HIGH,<br>+   .gpio20 = GPIO_LEVEL_HIGH,<br>+   .gpio21 = GPIO_LEVEL_HIGH,<br>+   .gpio22 = GPIO_LEVEL_HIGH,<br>+   .gpio23 = GPIO_LEVEL_HIGH,<br>+   .gpio24 = GPIO_LEVEL_LOW,<br>+    .gpio25 = GPIO_LEVEL_LOW,<br>+    .gpio26 = GPIO_LEVEL_LOW,<br>+    .gpio27 = GPIO_LEVEL_HIGH,<br>+   .gpio28 = GPIO_LEVEL_LOW,<br>+    .gpio29 = GPIO_LEVEL_HIGH,<br>+   .gpio30 = GPIO_LEVEL_HIGH,<br>+   .gpio31 = GPIO_LEVEL_HIGH,<br>+};<br>+<br>+// GP_RST_SEL1<br>+// 7 Series Default: 0x01000000<br>+// Inteltool: 0x01000000<br>+static const struct pch_gpio_set1 pch_gpio_set1_reset = {<br>+ .gpio0 = GPIO_RESET_PWROK,<br>+   .gpio1 = GPIO_RESET_PWROK,<br>+   .gpio2 = GPIO_RESET_PWROK,<br>+   .gpio3 = GPIO_RESET_PWROK,<br>+   .gpio4 = GPIO_RESET_PWROK,<br>+   .gpio5 = GPIO_RESET_PWROK,<br>+   .gpio6 = GPIO_RESET_PWROK,<br>+   .gpio7 = GPIO_RESET_PWROK,<br>+   .gpio8 = GPIO_RESET_PWROK,<br>+   .gpio9 = GPIO_RESET_PWROK,<br>+   .gpio10 = GPIO_RESET_PWROK,<br>+  .gpio11 = GPIO_RESET_PWROK,<br>+  .gpio12 = GPIO_RESET_PWROK,<br>+  .gpio13 = GPIO_RESET_PWROK,<br>+  .gpio14 = GPIO_RESET_PWROK,<br>+  .gpio15 = GPIO_RESET_PWROK,<br>+  .gpio16 = GPIO_RESET_PWROK,<br>+  .gpio17 = GPIO_RESET_PWROK,<br>+  .gpio18 = GPIO_RESET_PWROK,<br>+  .gpio19 = GPIO_RESET_PWROK,<br>+  .gpio20 = GPIO_RESET_PWROK,<br>+  .gpio21 = GPIO_RESET_PWROK,<br>+  .gpio22 = GPIO_RESET_PWROK,<br>+  .gpio23 = GPIO_RESET_PWROK,<br>+  .gpio24 = GPIO_RESET_RSMRST,<br>+ .gpio25 = GPIO_RESET_PWROK,<br>+  .gpio26 = GPIO_RESET_PWROK,<br>+  .gpio27 = GPIO_RESET_PWROK,<br>+  .gpio28 = GPIO_RESET_PWROK,<br>+  .gpio29 = GPIO_RESET_PWROK,<br>+  .gpio30 = GPIO_RESET_PWROK,<br>+  .gpio31 = GPIO_RESET_PWROK,<br>+};<br>+<br>+// GPI_INV<br>+// 7 Series Default: 0x00000000<br>+// Inteltool: 0x00002800<br>+static const struct pch_gpio_set1 pch_gpio_set1_invert = {<br>+   .gpio0 = GPIO_NO_INVERT,<br>+     .gpio1 = GPIO_NO_INVERT,<br>+     .gpio2 = GPIO_NO_INVERT,<br>+     .gpio3 = GPIO_NO_INVERT,<br>+     .gpio4 = GPIO_NO_INVERT,<br>+     .gpio5 = GPIO_NO_INVERT,<br>+     .gpio6 = GPIO_NO_INVERT,<br>+     .gpio7 = GPIO_NO_INVERT,<br>+     .gpio8 = GPIO_NO_INVERT,<br>+     .gpio9 = GPIO_NO_INVERT,<br>+     .gpio10 = GPIO_NO_INVERT,<br>+    .gpio11 = GPIO_INVERT,<br>+       .gpio12 = GPIO_NO_INVERT,<br>+    .gpio13 = GPIO_INVERT,<br>+       .gpio14 = GPIO_NO_INVERT,<br>+    .gpio15 = GPIO_NO_INVERT,<br>+    .gpio16 = GPIO_NO_INVERT,<br>+    .gpio17 = GPIO_NO_INVERT,<br>+    .gpio18 = GPIO_NO_INVERT,<br>+    .gpio19 = GPIO_NO_INVERT,<br>+    .gpio20 = GPIO_NO_INVERT,<br>+    .gpio21 = GPIO_NO_INVERT,<br>+    .gpio22 = GPIO_NO_INVERT,<br>+    .gpio23 = GPIO_NO_INVERT,<br>+    .gpio24 = GPIO_NO_INVERT,<br>+    .gpio25 = GPIO_NO_INVERT,<br>+    .gpio26 = GPIO_NO_INVERT,<br>+    .gpio27 = GPIO_NO_INVERT,<br>+    .gpio28 = GPIO_NO_INVERT,<br>+    .gpio29 = GPIO_NO_INVERT,<br>+    .gpio30 = GPIO_NO_INVERT,<br>+    .gpio31 = GPIO_NO_INVERT,<br>+};<br>+<br>+// GPO_BLINK<br>+// 7 Series Default: 0x00040000<br>+// Inteltool: 0x00040000<br>+static const struct pch_gpio_set1 pch_gpio_set1_blink = {<br>+    .gpio0 = GPIO_NO_BLINK,<br>+      .gpio1 = GPIO_NO_BLINK,<br>+      .gpio2 = GPIO_NO_BLINK,<br>+      .gpio3 = GPIO_NO_BLINK,<br>+      .gpio4 = GPIO_NO_BLINK,<br>+      .gpio5 = GPIO_NO_BLINK,<br>+      .gpio6 = GPIO_NO_BLINK,<br>+      .gpio7 = GPIO_NO_BLINK,<br>+      .gpio8 = GPIO_NO_BLINK,<br>+      .gpio9 = GPIO_NO_BLINK,<br>+      .gpio10 = GPIO_NO_BLINK,<br>+     .gpio11 = GPIO_NO_BLINK,<br>+     .gpio12 = GPIO_NO_BLINK,<br>+     .gpio13 = GPIO_NO_BLINK,<br>+     .gpio14 = GPIO_NO_BLINK,<br>+     .gpio15 = GPIO_NO_BLINK,<br>+     .gpio16 = GPIO_NO_BLINK,<br>+     .gpio17 = GPIO_NO_BLINK,<br>+     .gpio18 = GPIO_BLINK,<br>+        .gpio19 = GPIO_NO_BLINK,<br>+     .gpio20 = GPIO_NO_BLINK,<br>+     .gpio21 = GPIO_NO_BLINK,<br>+     .gpio22 = GPIO_NO_BLINK,<br>+     .gpio23 = GPIO_NO_BLINK,<br>+     .gpio24 = GPIO_NO_BLINK,<br>+     .gpio25 = GPIO_NO_BLINK,<br>+     .gpio26 = GPIO_NO_BLINK,<br>+     .gpio27 = GPIO_NO_BLINK,<br>+     .gpio28 = GPIO_NO_BLINK,<br>+     .gpio29 = GPIO_NO_BLINK,<br>+     .gpio30 = GPIO_NO_BLINK,<br>+     .gpio31 = GPIO_NO_BLINK,<br>+};<br>+<br>+// GPIO_USE_SEL2<br>+// 7 Series Default: 0x020300FF<br>+// Inteltool: 0x020380FF<br>+static const struct pch_gpio_set2 pch_gpio_set2_mode = {<br>+  .gpio32 = GPIO_MODE_GPIO,<br>+    .gpio33 = GPIO_MODE_GPIO,<br>+    .gpio34 = GPIO_MODE_GPIO,<br>+    .gpio35 = GPIO_MODE_GPIO,<br>+    .gpio36 = GPIO_MODE_GPIO,<br>+    .gpio37 = GPIO_MODE_GPIO,<br>+    .gpio38 = GPIO_MODE_GPIO,<br>+    .gpio39 = GPIO_MODE_GPIO,<br>+    .gpio40 = GPIO_MODE_NATIVE,<br>+  .gpio41 = GPIO_MODE_NATIVE,<br>+  .gpio42 = GPIO_MODE_NATIVE,<br>+  .gpio43 = GPIO_MODE_NATIVE,<br>+  .gpio44 = GPIO_MODE_NATIVE,<br>+  .gpio45 = GPIO_MODE_NATIVE,<br>+  .gpio46 = GPIO_MODE_NATIVE,<br>+  .gpio47 = GPIO_MODE_GPIO,<br>+    .gpio48 = GPIO_MODE_GPIO,<br>+    .gpio49 = GPIO_MODE_GPIO,<br>+    .gpio50 = GPIO_MODE_NATIVE,<br>+  .gpio51 = GPIO_MODE_NATIVE,<br>+  .gpio52 = GPIO_MODE_NATIVE,<br>+  .gpio53 = GPIO_MODE_NATIVE,<br>+  .gpio54 = GPIO_MODE_NATIVE,<br>+  .gpio55 = GPIO_MODE_NATIVE,<br>+  .gpio56 = GPIO_MODE_NATIVE,<br>+  .gpio57 = GPIO_MODE_GPIO,<br>+    .gpio58 = GPIO_MODE_NATIVE,<br>+  .gpio59 = GPIO_MODE_NATIVE,<br>+  .gpio60 = GPIO_MODE_NATIVE,<br>+  .gpio61 = GPIO_MODE_NATIVE,<br>+  .gpio62 = GPIO_MODE_NATIVE,<br>+  .gpio63 = GPIO_MODE_NATIVE,<br>+};<br>+<br>+// GP_IO_SEL2<br>+// 7 Series Default: 0x1F57FFF4<br>+// Inteltool: 0x1F57FFF4<br>+static const struct pch_gpio_set2 pch_gpio_set2_direction = {<br>+     .gpio32 = GPIO_DIR_OUTPUT,<br>+   .gpio33 = GPIO_DIR_OUTPUT,<br>+   .gpio34 = GPIO_DIR_INPUT,<br>+    .gpio35 = GPIO_DIR_OUTPUT,<br>+   .gpio36 = GPIO_DIR_INPUT,<br>+    .gpio37 = GPIO_DIR_INPUT,<br>+    .gpio38 = GPIO_DIR_INPUT,<br>+    .gpio39 = GPIO_DIR_INPUT,<br>+    .gpio40 = GPIO_DIR_INPUT,<br>+    .gpio41 = GPIO_DIR_INPUT,<br>+    .gpio42 = GPIO_DIR_INPUT,<br>+    .gpio43 = GPIO_DIR_INPUT,<br>+    .gpio44 = GPIO_DIR_INPUT,<br>+    .gpio45 = GPIO_DIR_INPUT,<br>+    .gpio46 = GPIO_DIR_INPUT,<br>+    .gpio47 = GPIO_DIR_INPUT,<br>+    .gpio48 = GPIO_DIR_INPUT,<br>+    .gpio49 = GPIO_DIR_INPUT,<br>+    .gpio50 = GPIO_DIR_INPUT,<br>+    .gpio51 = GPIO_DIR_OUTPUT,<br>+   .gpio52 = GPIO_DIR_INPUT,<br>+    .gpio53 = GPIO_DIR_OUTPUT,<br>+   .gpio54 = GPIO_DIR_INPUT,<br>+    .gpio55 = GPIO_DIR_OUTPUT,<br>+   .gpio56 = GPIO_DIR_INPUT,<br>+    .gpio57 = GPIO_DIR_INPUT,<br>+    .gpio58 = GPIO_DIR_INPUT,<br>+    .gpio59 = GPIO_DIR_INPUT,<br>+    .gpio60 = GPIO_DIR_INPUT,<br>+    .gpio61 = GPIO_DIR_OUTPUT,<br>+   .gpio62 = GPIO_DIR_OUTPUT,<br>+   .gpio63 = GPIO_DIR_OUTPUT,<br>+};<br>+<br>+// GP_LVL2<br>+// 7 Series Default: 0xA4AA0007<br>+// Inteltool: 0xFEFF7FC7<br>+static const struct pch_gpio_set2 pch_gpio_set2_level = {<br>+     .gpio32 = GPIO_LEVEL_HIGH,<br>+   .gpio33 = GPIO_LEVEL_HIGH,<br>+   .gpio34 = GPIO_LEVEL_HIGH,<br>+   .gpio35 = GPIO_LEVEL_LOW,<br>+    .gpio36 = GPIO_LEVEL_LOW,<br>+    .gpio37 = GPIO_LEVEL_LOW,<br>+    .gpio38 = GPIO_LEVEL_HIGH,<br>+   .gpio39 = GPIO_LEVEL_HIGH,<br>+   .gpio40 = GPIO_LEVEL_HIGH,<br>+   .gpio41 = GPIO_LEVEL_HIGH,<br>+   .gpio42 = GPIO_LEVEL_HIGH,<br>+   .gpio43 = GPIO_LEVEL_HIGH,<br>+   .gpio44 = GPIO_LEVEL_HIGH,<br>+   .gpio45 = GPIO_LEVEL_HIGH,<br>+   .gpio46 = GPIO_LEVEL_HIGH,<br>+   .gpio47 = GPIO_LEVEL_LOW,<br>+    .gpio48 = GPIO_LEVEL_HIGH,<br>+   .gpio49 = GPIO_LEVEL_HIGH,<br>+   .gpio50 = GPIO_LEVEL_HIGH,<br>+   .gpio51 = GPIO_LEVEL_HIGH,<br>+   .gpio52 = GPIO_LEVEL_HIGH,<br>+   .gpio53 = GPIO_LEVEL_HIGH,<br>+   .gpio54 = GPIO_LEVEL_HIGH,<br>+   .gpio55 = GPIO_LEVEL_HIGH,<br>+   .gpio56 = GPIO_LEVEL_LOW,<br>+    .gpio57 = GPIO_LEVEL_HIGH,<br>+   .gpio58 = GPIO_LEVEL_HIGH,<br>+   .gpio59 = GPIO_LEVEL_HIGH,<br>+   .gpio60 = GPIO_LEVEL_HIGH,<br>+   .gpio61 = GPIO_LEVEL_HIGH,<br>+   .gpio62 = GPIO_LEVEL_HIGH,<br>+   .gpio63 = GPIO_LEVEL_HIGH,<br>+};<br>+<br>+// GP_RST_SEL2<br>+// 7 Series Default: 0x00000000<br>+// Inteltool: 0x00000000<br>+static const struct pch_gpio_set2 pch_gpio_set2_reset = {<br>+ .gpio32 = GPIO_RESET_PWROK,<br>+  .gpio33 = GPIO_RESET_PWROK,<br>+  .gpio34 = GPIO_RESET_PWROK,<br>+  .gpio35 = GPIO_RESET_PWROK,<br>+  .gpio36 = GPIO_RESET_PWROK,<br>+  .gpio37 = GPIO_RESET_PWROK,<br>+  .gpio38 = GPIO_RESET_PWROK,<br>+  .gpio39 = GPIO_RESET_PWROK,<br>+  .gpio40 = GPIO_RESET_PWROK,<br>+  .gpio41 = GPIO_RESET_PWROK,<br>+  .gpio42 = GPIO_RESET_PWROK,<br>+  .gpio43 = GPIO_RESET_PWROK,<br>+  .gpio44 = GPIO_RESET_PWROK,<br>+  .gpio45 = GPIO_RESET_PWROK,<br>+  .gpio46 = GPIO_RESET_PWROK,<br>+  .gpio47 = GPIO_RESET_PWROK,<br>+  .gpio48 = GPIO_RESET_PWROK,<br>+  .gpio49 = GPIO_RESET_PWROK,<br>+  .gpio50 = GPIO_RESET_PWROK,<br>+  .gpio51 = GPIO_RESET_PWROK,<br>+  .gpio52 = GPIO_RESET_PWROK,<br>+  .gpio53 = GPIO_RESET_PWROK,<br>+  .gpio54 = GPIO_RESET_PWROK,<br>+  .gpio55 = GPIO_RESET_PWROK,<br>+  .gpio56 = GPIO_RESET_PWROK,<br>+  .gpio57 = GPIO_RESET_PWROK,<br>+  .gpio58 = GPIO_RESET_PWROK,<br>+  .gpio59 = GPIO_RESET_PWROK,<br>+  .gpio60 = GPIO_RESET_PWROK,<br>+  .gpio61 = GPIO_RESET_PWROK,<br>+  .gpio62 = GPIO_RESET_PWROK,<br>+  .gpio63 = GPIO_RESET_PWROK,<br>+};<br>+<br>+// GPIO_USE_SEL3<br>+// 7 Series Default: 0x00000130<br>+// Inteltool: 0x00000130<br>+static const struct pch_gpio_set3 pch_gpio_set3_mode = {<br>+       .gpio64 = GPIO_MODE_NATIVE,<br>+  .gpio65 = GPIO_MODE_NATIVE,<br>+  .gpio66 = GPIO_MODE_NATIVE,<br>+  .gpio67 = GPIO_MODE_NATIVE,<br>+  .gpio68 = GPIO_MODE_GPIO,<br>+    .gpio69 = GPIO_MODE_GPIO,<br>+    .gpio70 = GPIO_MODE_NATIVE,<br>+  .gpio71 = GPIO_MODE_NATIVE,<br>+  .gpio72 = GPIO_MODE_GPIO,<br>+    .gpio73 = GPIO_MODE_NATIVE,<br>+  .gpio74 = GPIO_MODE_NATIVE,<br>+  .gpio75 = GPIO_MODE_NATIVE,<br>+};<br>+<br>+// GP_IO_SEL3<br>+// 7 Series Default: 0x00000FF0<br>+// Inteltool: 0x00000FF0<br>+static const struct pch_gpio_set3 pch_gpio_set3_direction = {<br>+     .gpio64 = GPIO_DIR_OUTPUT,<br>+   .gpio65 = GPIO_DIR_OUTPUT,<br>+   .gpio66 = GPIO_DIR_OUTPUT,<br>+   .gpio67 = GPIO_DIR_OUTPUT,<br>+   .gpio68 = GPIO_DIR_INPUT,<br>+    .gpio69 = GPIO_DIR_INPUT,<br>+    .gpio70 = GPIO_DIR_INPUT,<br>+    .gpio71 = GPIO_DIR_INPUT,<br>+    .gpio72 = GPIO_DIR_INPUT,<br>+    .gpio73 = GPIO_DIR_INPUT,<br>+    .gpio74 = GPIO_DIR_INPUT,<br>+    .gpio75 = GPIO_DIR_INPUT,<br>+};<br>+<br>+// GP_LVL3<br>+// 7 Series Default: 0x000000C0<br>+// Inteltool: 0x00000DDF<br>+static const struct pch_gpio_set3 pch_gpio_set3_level = {<br>+      .gpio64 = GPIO_LEVEL_HIGH,<br>+   .gpio65 = GPIO_LEVEL_HIGH,<br>+   .gpio66 = GPIO_LEVEL_HIGH,<br>+   .gpio67 = GPIO_LEVEL_HIGH,<br>+   .gpio68 = GPIO_LEVEL_HIGH,<br>+   .gpio69 = GPIO_LEVEL_LOW,<br>+    .gpio70 = GPIO_LEVEL_HIGH,<br>+   .gpio71 = GPIO_LEVEL_HIGH,<br>+   .gpio72 = GPIO_LEVEL_HIGH,<br>+   .gpio73 = GPIO_LEVEL_LOW,<br>+    .gpio74 = GPIO_LEVEL_HIGH,<br>+   .gpio75 = GPIO_LEVEL_HIGH,<br>+};<br>+<br>+// GP_RST_SEL3<br>+// 7 Series Default: 0x00000000<br>+// Inteltool: 0x00000000<br>+static const struct pch_gpio_set3 pch_gpio_set3_reset = {<br>+ .gpio64 = GPIO_RESET_PWROK,<br>+  .gpio65 = GPIO_RESET_PWROK,<br>+  .gpio66 = GPIO_RESET_PWROK,<br>+  .gpio67 = GPIO_RESET_PWROK,<br>+  .gpio68 = GPIO_RESET_PWROK,<br>+  .gpio69 = GPIO_RESET_PWROK,<br>+  .gpio70 = GPIO_RESET_PWROK,<br>+  .gpio71 = GPIO_RESET_PWROK,<br>+  .gpio72 = GPIO_RESET_PWROK,<br>+  .gpio73 = GPIO_RESET_PWROK,<br>+  .gpio74 = GPIO_RESET_PWROK,<br>+  .gpio75 = GPIO_RESET_PWROK,<br>+};<br>+<br>+const struct pch_gpio_map mainboard_gpio_map = {<br>+       .set1 = {<br>+            .mode           = &pch_gpio_set1_mode,<br>+           .direction      = &pch_gpio_set1_direction,<br>+              .level          = &pch_gpio_set1_level,<br>+          .blink          = &pch_gpio_set1_blink,<br>+          .invert         = &pch_gpio_set1_invert,<br>+         .reset          = &pch_gpio_set1_reset,<br>+  },<br>+   .set2 = {<br>+            .mode           = &pch_gpio_set2_mode,<br>+           .direction      = &pch_gpio_set2_direction,<br>+              .level          = &pch_gpio_set2_level,<br>+          .reset          = &pch_gpio_set2_reset,<br>+  },<br>+   .set3 = {<br>+            .mode           = &pch_gpio_set3_mode,<br>+           .direction      = &pch_gpio_set3_direction,<br>+              .level          = &pch_gpio_set3_level,<br>+          .reset          = &pch_gpio_set3_reset,<br>+  },<br>+};<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/hda_verb.c b/src/mainboard/gigabyte/ga-h61m-ds2/hda_verb.c<br>new file mode 100644<br>index 0000000..62688c9<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/hda_verb.c<br>@@ -0,0 +1,28 @@<br>+#include <device/azalia_device.h><br>+<br>+const u32 cim_verb_data[] = {<br>+ /* coreboot specific header */<br>+       0x10ec0887,     // Realtek 887<br>+       0x1458a002,     // Subsystem ID<br>+      0x0000000e,     // Number of entries<br>+<br>+      /* Pin Widget Verb Table */<br>+  AZALIA_PIN_CFG(0, 0x11, 0x411111f0),<br>+ AZALIA_PIN_CFG(0, 0x12, 0x411111f0),<br>+ AZALIA_PIN_CFG(0, 0x14, 0x01014410),<br>+ AZALIA_PIN_CFG(0, 0x15, 0x411111f0),<br>+ AZALIA_PIN_CFG(0, 0x16, 0x411111f0),<br>+ AZALIA_PIN_CFG(0, 0x17, 0x411111f0),<br>+ AZALIA_PIN_CFG(0, 0x18, 0x01a19c50),<br>+ AZALIA_PIN_CFG(0, 0x19, 0x02a19c60),<br>+ AZALIA_PIN_CFG(0, 0x1a, 0x0181345f),<br>+ AZALIA_PIN_CFG(0, 0x1b, 0x02214c20),<br>+ AZALIA_PIN_CFG(0, 0x1c, 0x411111f0),<br>+ AZALIA_PIN_CFG(0, 0x1d, 0x4004c601),<br>+ AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),<br>+ AZALIA_PIN_CFG(0, 0x1f, 0x411111f0)<br>+};<br>+<br>+const u32 pc_beep_verbs[] = {<br>+};<br>+AZALIA_ARRAY_SIZES;<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/mainboard.c b/src/mainboard/gigabyte/ga-h61m-ds2/mainboard.c<br>new file mode 100644<br>index 0000000..f1968db<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/mainboard.c<br>@@ -0,0 +1,86 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2007-2009 coresystems GmbH<br>+ * Copyright (C) 2011-2012 Google Inc.<br>+ * Copyright (C) 2014 Vladimir Serbinenko<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#include <types.h><br>+#include <string.h><br>+#include <device/device.h><br>+#include <device/pci_def.h><br>+#include <device/pci_ops.h><br>+#include <console/console.h><br>+#include <drivers/intel/gma/int15.h><br>+#include <pc80/mc146818rtc.h><br>+#include <arch/acpi.h><br>+#include <arch/io.h><br>+#include <arch/interrupt.h><br>+#include <boot/coreboot_tables.h><br>+#include <southbridge/intel/bd82x6x/pch.h><br>+#include <smbios.h><br>+#include <device/pci.h><br>+#include <cbfs.h><br>+<br>+static void mainboard_init(device_t dev)<br>+{<br>+      RCBA32(0x38c8) = 0x00002005;<br>+ RCBA32(0x38c4) = 0x00802005;<br>+ RCBA32(0x38c0) = 0x00000007;<br>+ RCBA32(0x2240) = 0x00330e71;<br>+ RCBA32(0x2244) = 0x003f0eb1;<br>+ RCBA32(0x2248) = 0x002102cd;<br>+ RCBA32(0x224c) = 0x00f60000;<br>+ RCBA32(0x2250) = 0x00020000;<br>+ RCBA32(0x2254) = 0x00e3004c;<br>+ RCBA32(0x2258) = 0x00e20bef;<br>+ RCBA32(0x2260) = 0x003304ed;<br>+ RCBA32(0x2278) = 0x001107c1;<br>+ RCBA32(0x227c) = 0x001d07e9;<br>+ RCBA32(0x2280) = 0x00e20000;<br>+ RCBA32(0x2284) = 0x00ee0000;<br>+ RCBA32(0x2288) = 0x005b05d3;<br>+ RCBA32(0x2318) = 0x04b8ff2e;<br>+ RCBA32(0x231c) = 0x03930f2e;<br>+ RCBA32(0x3808) = 0x005044a3;<br>+ RCBA32(0x3810) = 0x52410000;<br>+ RCBA32(0x3814) = 0x0000008a;<br>+ RCBA32(0x3818) = 0x00000006;<br>+ RCBA32(0x381c) = 0x0000072e;<br>+ RCBA32(0x3820) = 0x0000000a;<br>+ RCBA32(0x3824) = 0x00000123;<br>+ RCBA32(0x3828) = 0x00000009;<br>+ RCBA32(0x382c) = 0x00000001;<br>+ RCBA32(0x3834) = 0x0000061a;<br>+ RCBA32(0x3838) = 0x00000003;<br>+ RCBA32(0x383c) = 0x00000a76;<br>+ RCBA32(0x3840) = 0x00000004;<br>+ RCBA32(0x3844) = 0x0000e5e4;<br>+ RCBA32(0x3848) = 0x0000000e;<br>+}<br>+<br>+// mainboard_enable is executed as first thing after<br>+// enumerate_buses().<br>+<br>+static void mainboard_enable(device_t dev)<br>+{<br>+       dev->ops->init = mainboard_init;<br>+<br>+    install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE,<br>+                                   GMA_INT15_PANEL_FIT_DEFAULT,<br>+                                 GMA_INT15_BOOT_DISPLAY_CRT, 0);<br>+}<br>+<br>+struct chip_operations mainboard_ops = {<br>+    .enable_dev = mainboard_enable,<br>+};<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/romstage.c b/src/mainboard/gigabyte/ga-h61m-ds2/romstage.c<br>new file mode 100644<br>index 0000000..cf5825f<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/romstage.c<br>@@ -0,0 +1,126 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2014 Damien Zammit <damien@zamaudio.com><br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#define SUPERIO_BASE 0x2e<br>+#define SUPERIO_DEV PNP_DEV(SUPERIO_BASE, 0)<br>+#define SUPERIO_GPIO PNP_DEV(SUPERIO_BASE, IT8728F_GPIO)<br>+#define SERIAL_DEV PNP_DEV(SUPERIO_BASE, 0x01)<br>+<br>+#include <arch/io.h><br>+#include <device/pci_def.h><br>+#include <device/pnp_def.h><br>+#include <cpu/x86/lapic.h><br>+#include <arch/acpi.h><br>+#include <console/console.h><br>+#include <superio/ite/it8728f/it8728f.h><br>+#include <superio/ite/common/ite.h><br>+#include <northbridge/intel/sandybridge/sandybridge.h><br>+#include <northbridge/intel/sandybridge/raminit_native.h><br>+#include <southbridge/intel/bd82x6x/pch.h><br>+#include <southbridge/intel/common/gpio.h><br>+#include <arch/cpu.h><br>+#include <cpu/x86/msr.h><br>+<br>+static void it8728f_h61mds2_disable_reboot(pnp_devfn_t dev)<br>+{<br>+    /* GPIO SIO settings */<br>+      ite_reg_write(dev, 0xEF, 0x7E); // magic<br>+<br>+  ite_reg_write(dev, 0x25, 0x40); // gpio pin function -> gp16<br>+      ite_reg_write(dev, 0x27, 0x10); // gpio pin function -> gp34<br>+      ite_reg_write(dev, 0x2c, 0x80); // smbus isolation on parallel port<br>+  ite_reg_write(dev, 0x62, 0x0a); // simple iobase 0xa00<br>+       ite_reg_write(dev, 0x72, 0x20); // watchdog timeout clear!<br>+   ite_reg_write(dev, 0x73, 0x00); // watchdog timeout clear!<br>+   ite_reg_write(dev, 0xcb, 0x00); // simple io set4 direction -> in<br>+ ite_reg_write(dev, 0xe9, 0x27); // bus select disable<br>+        ite_reg_write(dev, 0xf0, 0x10); // ?<br>+ ite_reg_write(dev, 0xf1, 0x42); // ?<br>+ ite_reg_write(dev, 0xf6, 0x1c); // hw monitor alert beep -> gp36(pin12)<br>+<br>+        /* EC SIO settings */<br>+        ite_reg_write(IT8728F_EC, 0xf1, 0xc0);<br>+       ite_reg_write(IT8728F_EC, 0xf6, 0xf0);<br>+       ite_reg_write(IT8728F_EC, 0xf9, 0x48);<br>+       ite_reg_write(IT8728F_EC, 0x60, 0x0a);<br>+       ite_reg_write(IT8728F_EC, 0x61, 0x30);<br>+       ite_reg_write(IT8728F_EC, 0x62, 0x0a);<br>+       ite_reg_write(IT8728F_EC, 0x63, 0x20);<br>+       ite_reg_write(IT8728F_EC, 0x30, 0x01);<br>+}<br>+<br>+void rcba_config(void)<br>+{<br>+   /* Disable unused devices (board specific) */<br>+        RCBA32(FD) = 0x17ee1fe1;<br>+<br>+  /* Enable HECI */<br>+    RCBA32(FD2) &= ~0x2;<br>+}<br>+<br>+void pch_enable_lpc(void)<br>+{<br>+      /*<br>+    * Enable:<br>+    *  EC Decode Range PortA30/A20<br>+       *  SuperIO Port2E/2F<br>+         *  PS/2 Keyboard/Mouse Port60/64<br>+     *  FDD Port3F0h-3F5h and Port3F7h<br>+    */<br>+  pci_write_config16(PCH_LPC_DEV, LPC_EN, KBC_LPC_EN | MC_LPC_EN |<br>+                     CNF1_LPC_EN | CNF2_LPC_EN | COMA_LPC_EN);<br>+<br>+ pci_write_config32(PCH_LPC_DEV, LPC_GEN1_DEC, 0x3c0a01);<br>+     pci_write_config16(PCH_LPC_DEV, LPC_IO_DEC, 0x10);<br>+<br>+        pci_write_config32(PCH_LPC_DEV, 0xac, 0x10000);<br>+<br>+   /* Initialize SuperIO */<br>+     ite_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);<br>+    it8728f_h61mds2_disable_reboot(SUPERIO_GPIO);<br>+}<br>+<br>+const struct southbridge_usb_port mainboard_usb_ports[] = {<br>+   { 1, 5, 0 },<br>+ { 1, 5, 0 },<br>+ { 1, 5, 1 },<br>+ { 1, 5, 1 },<br>+ { 1, 5, 2 },<br>+ { 1, 5, 2 },<br>+ { 1, 5, 3 },<br>+ { 1, 5, 3 },<br>+ { 1, 5, 4 },<br>+ { 1, 5, 4 },<br>+ { 1, 5, 6 },<br>+ { 1, 5, 5 },<br>+ { 1, 5, 5 },<br>+ { 1, 5, 6 },<br>+};<br>+<br>+void mainboard_get_spd(spd_raw_data *spd, bool id_only)<br>+{<br>+   read_spd(&spd[0], 0x50, id_only);<br>+        read_spd(&spd[1], 0x51, id_only);<br>+        read_spd(&spd[2], 0x52, id_only);<br>+        read_spd(&spd[3], 0x53, id_only);<br>+}<br>+<br>+void mainboard_early_init(int s3resume)<br>+{<br>+}<br>+<br>+void mainboard_config_superio(void)<br>+{<br>+}<br>diff --git a/src/mainboard/gigabyte/ga-h61m-ds2/thermal.h b/src/mainboard/gigabyte/ga-h61m-ds2/thermal.h<br>new file mode 100644<br>index 0000000..f14a7e4<br>--- /dev/null<br>+++ b/src/mainboard/gigabyte/ga-h61m-ds2/thermal.h<br>@@ -0,0 +1,26 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2011 The Chromium OS Authors. All rights reserved.<br>+ * Copyright (C) 2014 Vladimir Serbinenko<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#ifndef GAH61MDS2_THERMAL_H<br>+#define GAH61MDS2_THERMAL_H<br>+<br>+    /* Temperature which OS will shutdown at */<br>+  #define CRITICAL_TEMPERATURE    100<br>+<br>+       /* Temperature which OS will throttle CPU */<br>+ #define PASSIVE_TEMPERATURE     90<br>+<br>+#endif<br></pre><p>To view, visit <a href="https://review.coreboot.org/20921">change 20921</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/20921"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I999f632748e4b6bc52cc0c5dbd1f3aebc6cad04a </div>
<div style="display:none"> Gerrit-Change-Number: 20921 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Morgan <xamboni@protonmail.com> </div>