blob: 6df971a35b99c95c2c0a6b4ba849676546d65c7a [file] [log] [blame]
Naresh G Solanki006c1e82016-11-15 16:40:44 +05301/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2016 Intel Corporation.
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; version 2 of the License.
9 *
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.
14 */
15
16#include <console/console.h>
17#include <device/smbus_def.h>
18#include <device/early_smbus.h>
19#include <soc/smbus.h>
20#include <soc/iomap.h>
21
22u8 smbus_read_byte(u32 smbus_dev, u8 addr, u8 offset)
23{
24 return do_smbus_read_byte(SMBUS_BASE_ADDRESS, addr, offset);
25}
26
27u8 smbus_write_byte(u32 smbus_dev, u8 addr, u8 offset, u8 value)
28{
29 return do_smbus_write_byte(SMBUS_BASE_ADDRESS, addr, offset, value);
30}