mainboard/[g-p]*: Remove copyright notices
[coreboot.git] / src / mainboard / lenovo / x201 / romstage.c
blob4b4177a699b4b466da773e98581b5b41b4b6ce0d
1 /*
2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; version 2 of
8 * the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <stdint.h>
17 #include <arch/io.h>
18 #include <ec/acpi/ec.h>
20 #include <southbridge/intel/ibexpeak/pch.h>
21 #include <northbridge/intel/ironlake/ironlake.h>
23 const struct southbridge_usb_port mainboard_usb_ports[] = {
24 /* Enabled, Current table lookup index, OC map */
25 { 1, IF1_557, 0 },
26 { 1, IF1_55F, 1 },
27 { 1, IF1_74B, 3 },
28 { 1, IF1_74B, 3 },
29 { 1, IF1_557, 3 },
30 { 1, IF1_14B, 3 },
31 { 1, IF1_74B, 3 },
32 { 1, IF1_74B, 3 },
33 { 1, IF1_74B, 4 },
34 { 1, IF1_74B, 5 },
35 { 1, IF1_55F, 7 },
36 { 1, IF1_55F, 7 },
37 { 1, IF1_557, 7 },
38 { 1, IF1_55F, 7 },
41 static void set_fsb_frequency(void)
43 u8 block[5];
44 u16 fsbfreq = 62879;
45 smbus_block_read(0x69, 0, 5, block);
46 block[0] = fsbfreq;
47 block[1] = fsbfreq >> 8;
49 smbus_block_write(0x69, 0, 5, block);
52 void mainboard_pre_raminit(void)
54 set_fsb_frequency();
57 void mainboard_get_spd_map(u8 *spd_addrmap)
59 spd_addrmap[0] = 0x50;
60 spd_addrmap[2] = 0x51;