blob: 5594cbdda6d825ebba721913548b8ab98367fa84 [file] [log] [blame]
Arthur Heymansa1e46ae2018-12-15 18:26:05 +01001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2015 Damien Zammit <damien@zamaudio.com>
5 * Copyright (C) 2017 Arthur Heymans <arthur@aheymans.xyz>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 */
17
Arthur Heymansa1e46ae2018-12-15 18:26:05 +010018#include <northbridge/intel/x4x/x4x.h>
Arthur Heymansa1e46ae2018-12-15 18:26:05 +010019#include <superio/smsc/smscsuperio/smscsuperio.h>
Arthur Heymansa1e46ae2018-12-15 18:26:05 +010020
21#define SERIAL_DEV PNP_DEV(0x2e, SMSCSUPERIO_SP1)
Arthur Heymansa1e46ae2018-12-15 18:26:05 +010022
Arthur Heymansbf53acc2019-11-11 21:14:39 +010023void mb_lpc_setup(void)
Arthur Heymansa1e46ae2018-12-15 18:26:05 +010024{
Arthur Heymansa1e46ae2018-12-15 18:26:05 +010025 smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
Arthur Heymansbf53acc2019-11-11 21:14:39 +010026}
Arthur Heymansa1e46ae2018-12-15 18:26:05 +010027
Arthur Heymansbf53acc2019-11-11 21:14:39 +010028void mb_get_spd_map(u8 spd_map[4])
29{
30 spd_map[0] = 0x50;
31 spd_map[2] = 0x52;
Arthur Heymansa1e46ae2018-12-15 18:26:05 +010032}