| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| /* | ||
| * This file is part of the coreboot project. | ||
| * | ||
| * Copyright (C) 2015 Intel Corp. | ||
| * | ||
| * This program is free software; you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation; either version 2 of the License, or | ||
| * (at your option) any later version. | ||
| */ | ||
|
|
||
| #include <console/console.h> | ||
| #include <fsp/util.h> | ||
|
|
||
| asmlinkage void chipset_teardown_car_main(void) | ||
| { | ||
| FSP_INFO_HEADER *fih; | ||
| uint32_t status; | ||
| FSP_TEMP_RAM_EXIT temp_ram_exit; | ||
| struct prog fsp = PROG_INIT(PROG_REFCODE, "fsp.bin"); | ||
|
|
||
| if (prog_locate(&fsp)) { | ||
| die("Unable to locate fsp.bin\n"); | ||
| } else { | ||
| /* This leaks a mapping which this code assumes is benign as | ||
| * the flash is memory mapped CPU's address space. */ | ||
|
|
||
| /* FIXME: the implementation of find_fsp is utter garbage | ||
| as it casts error values to FSP_INFO_HEADER pointers. | ||
| Checking for return values can only be done sanely once | ||
| that is fixed. */ | ||
| fih = find_fsp((uintptr_t)rdev_mmap_full(prog_rdev(&fsp))); | ||
| } | ||
|
|
||
| temp_ram_exit = (FSP_TEMP_RAM_EXIT)(fih->TempRamExitEntryOffset + | ||
| fih->ImageBase); | ||
| printk(BIOS_DEBUG, "Calling TempRamExit: %p\n", temp_ram_exit); | ||
| status = temp_ram_exit(NULL); | ||
|
|
||
| if (status != FSP_SUCCESS) { | ||
| printk(BIOS_CRIT, "TempRamExit returned 0x%08x\n", status); | ||
| die("TempRamExit returned an error!\n"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,14 +40,6 @@ config CBFS_SIZE | |
| hex | ||
| default 0x200000 | ||
|
|
||
| config MAINBOARD_DIR | ||
| string | ||
| default asrock/h81m-hds | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| romstage-y += early_init.c | ||
| bootblock-y += early_init.c | ||
| ramstage-y += cstates.c | ||
| romstage-y += gpio.c |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,6 @@ Scope (\_SB) | |
| { | ||
| Device (PWRB) | ||
| { | ||
| Name (_HID, EisaId ("PNP0C0C")) | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +0,0 @@ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| /* | ||
| * This file is part of the coreboot project. | ||
| * | ||
| * Copyright (C) 2011 Google Inc. | ||
| * | ||
| * This program is free software; you can redistribute it and/or | ||
| * modify it under the terms of the GNU General Public License as | ||
| * published by the Free Software Foundation; version 2 of | ||
| * the License. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| */ | ||
|
|
||
| Scope (\_SB) | ||
| { | ||
| Device (PWRB) | ||
| { | ||
| Name (_HID, EisaId ("PNP0C0C")) | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +0,0 @@ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| Category: desktop | ||
| Board URL: https://www.gigabyte.com/products/product-page.aspx?pid=4151#ov | ||
| ROM package: SOIC-8 | ||
| ROM protocol: SPI | ||
| ROM socketed: n | ||
| Flashrom support: y | ||
| Release year: 2012 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,13 +22,6 @@ | |
|
|
||
| #define GPIO_PCH_WP GPP_C20 | ||
|
|
||
| /* EC wake pin is LAN_WAKE# */ | ||
| #define GPE_EC_WAKE GPE0_LAN_WAK | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /* | ||
| * This file is part of the coreboot project. | ||
| * | ||
| * Copyright (C) 2007-2010 coresystems GmbH | ||
| * Copyright (C) 2014 Google Inc. | ||
| * | ||
| * This program is free software; you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation; version 2 of the License. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| */ | ||
|
|
||
| #include <bootblock_common.h> | ||
| #include <superio/ite/common/ite.h> | ||
| #include <superio/ite/it8772f/it8772f.h> | ||
| #include "onboard.h" | ||
|
|
||
| void bootblock_mainboard_early_init(void) | ||
| { | ||
| /* Early SuperIO setup */ | ||
| it8772f_ac_resume_southbridge(IT8772F_SUPERIO_DEV); | ||
| ite_kill_watchdog(IT8772F_GPIO_DEV); | ||
| ite_enable_serial(IT8772F_SERIAL_DEV, CONFIG_TTYS0_BASE); | ||
|
|
||
| /* Turn On Power LED */ | ||
| set_power_led(LED_ON); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,6 @@ | |
| */ | ||
|
|
||
| #include <bootblock_common.h> | ||
|
|
||
| void bootblock_mainboard_init(void) | ||
| { | ||
|
|
||