Naresh G Solanki | 006c1e8 | 2016-11-15 16:40:44 +0530 | [diff] [blame] | 1 | /* |
| 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 | |
| 22 | u8 smbus_read_byte(u32 smbus_dev, u8 addr, u8 offset) |
| 23 | { |
| 24 | return do_smbus_read_byte(SMBUS_BASE_ADDRESS, addr, offset); |
| 25 | } |
| 26 | |
| 27 | u8 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 | } |