aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/panther/mainboard.c
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2014-07-13 18:51:28 -0500
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-07-18 08:17:56 +0200
commitae141dd91b7960dd6ed87d57ad4dad0e06eb709e (patch)
tree31d36b4f776cbb0fedc2162813f7c03e772ea249 /src/mainboard/google/panther/mainboard.c
parent1f9653a1bc737587deed507cd173595b180aad8f (diff)
google/panther: general cleanup, file organization (non-functional)
acpi_tables.c: consolidate/organize headers chromeos.c: consolidate/organize headers; move header, #defines outside of #ifdef fadt.c: organize headers gpio.h: rename include guard; add comment to trailing #endif had_verb.h: add include guard; replace manual array size calculation with std header macro lan.c: remove conditional header inclusion; organize headers; remove pre-processor directive indentations mainboard.c: remove conditional header inclusion; organize headers; replace spaced indentations with tab(s); add comment to trailing #endif onboard.h: move fn prototype after #defines; add comment to trailing #endif romstage.c: consolidate/organize headers smihandler.c: organize headers; remove commented-out/dead code; add comment to trailing #endif thermal.h: add comment to trailing #endif Change-Id: Iadafdd1092108c3f52435831fa0103f2457066f1 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: http://review.coreboot.org/6270 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/mainboard/google/panther/mainboard.c')
-rw-r--r--src/mainboard/google/panther/mainboard.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/src/mainboard/google/panther/mainboard.c b/src/mainboard/google/panther/mainboard.c
index afa65269eb..0c59ded107 100644
--- a/src/mainboard/google/panther/mainboard.c
+++ b/src/mainboard/google/panther/mainboard.c
@@ -18,25 +18,24 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <types.h>
-#include <string.h>
#include <smbios.h>
+#include <string.h>
+#include <types.h>
+#include <arch/acpi.h>
+#include <arch/io.h>
+#include <arch/interrupt.h>
+#include <boot/coreboot_tables.h>
+#include <console/console.h>
#include <device/device.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
-#include <console/console.h>
-#if CONFIG_VGA_ROM_RUN
-#include <x86emu/x86emu.h>
-#endif
#include <pc80/mc146818rtc.h>
-#include <arch/acpi.h>
-#include <arch/io.h>
-#include <arch/interrupt.h>
-#include <boot/coreboot_tables.h>
+#include <southbridge/intel/lynxpoint/pch.h>
+#include <x86emu/x86emu.h>
#include "hda_verb.h"
#include "onboard.h"
-#include <southbridge/intel/lynxpoint/pch.h>
+
void mainboard_suspend_resume(void)
{
@@ -50,7 +49,7 @@ static int int15_handler(void)
int res = 0;
printk(BIOS_DEBUG, "%s: AX=%04x BX=%04x CX=%04x DX=%04x\n",
- __func__, X86_AX, X86_BX, X86_CX, X86_DX);
+ __func__, X86_AX, X86_BX, X86_CX, X86_DX);
switch (X86_AX) {
case 0x5f34:
@@ -116,19 +115,19 @@ static int int15_handler(void)
default:
/* Interrupt was not handled */
printk(BIOS_DEBUG,
- "Unknown INT15 5f70 function: 0x%02x\n",
+ "Unknown INT15 5f70 function: 0x%02x\n",
((X86_CX >> 8) & 0xff));
break;
}
break;
- default:
+ default:
printk(BIOS_DEBUG, "Unknown INT15 function %04x!\n", X86_AX);
break;
}
return res;
}
-#endif
+#endif /* CONFIG_VGA_ROM_RUN */
/* Audio Setup */
@@ -167,4 +166,3 @@ static void mainboard_enable(device_t dev)
struct chip_operations mainboard_ops = {
.enable_dev = mainboard_enable,
};
-