blob: 6145ab849278b0c1c057215f5583bba569c47844 [file] [log] [blame]
Alexandru Gagniucee2bc272013-05-21 12:35:08 -05001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Alexandru Gagniuc <mr.nuke.me@gmail.com>
5 *
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.
10 *
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.
Alexandru Gagniucee2bc272013-05-21 12:35:08 -050015 */
16
17#include "via_early_smbus.h"
18
19/**
20 * \brief Clear the SMBus host status register
21 *
22 * @param smbus_dev The base SMBus IO port
23 */
24void smbus_reset(u32 smbus_dev)
25{
26 outb(0xdf, SMBHSTSTAT(smbus_dev));
27}