aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/lippert/frontrunner-af/romstage.c
blob: 8a5455584116bb02c4ee269aa54d27701e9fd786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * This file is part of the coreboot project.
 *
 * Copyright (C) 2011 Advanced Micro Devices, 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 <device/pnp_def.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <superio/smsc/smscsuperio/smscsuperio.h>

#define SERIAL_DEV PNP_DEV(0x4e, SMSCSUPERIO_SP1)

void board_BeforeAgesa(struct sysinfo *cb)
{
	smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
}

#if 0
	post_code(0x40);
	/* Reboots with outb(3,0x92), outb(4,0xcf9) or triple-fault all
	 * hang, looks like DRAM re-init goes wrong, don't know why. */
	val = agesawrapper_amdinitpost();
	if (val == 7) /* fatal, amdinitenv below is going to hang */
		outb(0x06, 0x0cf9); /* reset system harder instead */

	post_code(0x42);
	agesawrapper_amdinitenv();
#endif