Angel Pons | 89ab250 | 2020-04-03 01:22:28 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 3 | |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 4 | #include <stdint.h> |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 5 | #include <arch/io.h> |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 6 | #include <ec/acpi/ec.h> |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 7 | |
Edward O'Callaghan | 77757c2 | 2015-01-04 21:33:39 +1100 | [diff] [blame] | 8 | #include <southbridge/intel/ibexpeak/pch.h> |
Angel Pons | 95de231 | 2020-02-17 13:08:53 +0100 | [diff] [blame] | 9 | #include <northbridge/intel/ironlake/ironlake.h> |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 10 | |
Arthur Heymans | 39f8a1a | 2019-10-02 17:13:02 +0200 | [diff] [blame] | 11 | const struct southbridge_usb_port mainboard_usb_ports[] = { |
| 12 | /* Enabled, Current table lookup index, OC map */ |
| 13 | { 1, IF1_557, 0 }, |
| 14 | { 1, IF1_55F, 1 }, |
| 15 | { 1, IF1_74B, 3 }, |
| 16 | { 1, IF1_74B, 3 }, |
| 17 | { 1, IF1_557, 3 }, |
| 18 | { 1, IF1_14B, 3 }, |
| 19 | { 1, IF1_74B, 3 }, |
| 20 | { 1, IF1_74B, 3 }, |
| 21 | { 1, IF1_74B, 4 }, |
| 22 | { 1, IF1_74B, 5 }, |
| 23 | { 1, IF1_55F, 7 }, |
| 24 | { 1, IF1_55F, 7 }, |
| 25 | { 1, IF1_557, 7 }, |
| 26 | { 1, IF1_55F, 7 }, |
| 27 | }; |
| 28 | |
Vladimir Serbinenko | 9817a37 | 2014-02-19 22:07:12 +0100 | [diff] [blame] | 29 | static void set_fsb_frequency(void) |
| 30 | { |
| 31 | u8 block[5]; |
| 32 | u16 fsbfreq = 62879; |
| 33 | smbus_block_read(0x69, 0, 5, block); |
| 34 | block[0] = fsbfreq; |
| 35 | block[1] = fsbfreq >> 8; |
| 36 | |
| 37 | smbus_block_write(0x69, 0, 5, block); |
| 38 | } |
| 39 | |
Arthur Heymans | cea4fd9 | 2019-10-03 08:54:35 +0200 | [diff] [blame] | 40 | void mainboard_pre_raminit(void) |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 41 | { |
Vladimir Serbinenko | 9817a37 | 2014-02-19 22:07:12 +0100 | [diff] [blame] | 42 | set_fsb_frequency(); |
Arthur Heymans | cea4fd9 | 2019-10-03 08:54:35 +0200 | [diff] [blame] | 43 | } |
Vladimir Serbinenko | 9817a37 | 2014-02-19 22:07:12 +0100 | [diff] [blame] | 44 | |
Arthur Heymans | cea4fd9 | 2019-10-03 08:54:35 +0200 | [diff] [blame] | 45 | void mainboard_get_spd_map(u8 *spd_addrmap) |
| 46 | { |
| 47 | spd_addrmap[0] = 0x50; |
| 48 | spd_addrmap[2] = 0x51; |
Vladimir Serbinenko | 9bf05de | 2013-11-14 19:11:19 +0100 | [diff] [blame] | 49 | } |