aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/braswell/smbus.c
blob: 7e1b0dfbb03383333f998bdae2c60c8f6d5fd63f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * This file is part of the coreboot project.
 *
 * Copyright (C) 2017 Intel Corporation.
 * Copyright (C) 2019 3mdeb
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <device/early_smbus.h>
#include <soc/iomap.h>
#include <southbridge/intel/common/smbus.h>

u8 smbus_read_byte(u32 smbus_dev, u8 addr, u8 offset)
{
	return do_smbus_read_byte(SMBUS_BASE_ADDRESS, addr, offset);
}

u8 smbus_write_byte(u32 smbus_dev, u8 addr, u8 offset, u8 value)
{
	return do_smbus_write_byte(SMBUS_BASE_ADDRESS, addr, offset, value);
}