tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / compaq / deskpro_en_sff_p600 / romstage.c
blob89578b37391b63d6a632a84f0ac565dae9bb2272
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #include <stdint.h>
18 #include <device/pci_def.h>
19 #include <arch/io.h>
20 #include <device/pnp_def.h>
21 #include <stdlib.h>
22 #include <console/console.h>
23 #include <southbridge/intel/i82371eb/i82371eb.h>
24 #include <northbridge/intel/i440bx/raminit.h>
25 #include "drivers/pc80/udelay_io.c"
26 #include <delay.h>
27 #include <cpu/x86/bist.h>
28 /* FIXME: This should be PC97307 (but it's buggy at the moment)! */
29 #include <superio/nsc/pc97317/pc97317.h>
30 #include <lib.h>
32 /* FIXME: This should be PC97307 (but it's buggy at the moment)! */
33 #define SERIAL_DEV PNP_DEV(0x15c, PC97317_SP1)
35 int spd_read_byte(unsigned int device, unsigned int address)
37 return smbus_read_byte(device, address);
40 #include <cpu/intel/romstage.h>
41 void main(unsigned long bist)
43 /* FIXME: Should be PC97307! */
44 pc97317_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
45 console_init();
46 report_bist_failure(bist);
48 enable_smbus();
49 dump_spd_registers();
50 sdram_set_registers();
51 sdram_set_spd_registers();
52 sdram_enable();