aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/quark/i2c.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-07-21 09:17:10 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2016-08-03 17:31:39 +0200
commit14d09264a2b64c38bf4e5cf309947a8a2fbafc6d (patch)
tree5a259955ae9932c4dbc0c96864e7cb05410e8bf0 /src/soc/intel/quark/i2c.c
parent1cfb555e713f57b86d6ae779704e2861e654b25c (diff)
soc/intel/quark: Remove use of EDK-II macros and data types
Include assert.h to use coreboot's ASSERT macro. Replace the use of UINT32 data type with uint32_t. Replace the use of UINT8 data type with uint8_t. TEST=Build and run on Galileo Gen2 Change-Id: I0bb7e43ea570f7b20355c5d05675ebf593942e83 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/15858 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/intel/quark/i2c.c')
-rw-r--r--src/soc/intel/quark/i2c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/quark/i2c.c b/src/soc/intel/quark/i2c.c
index 118cbea5c3..6465b66040 100644
--- a/src/soc/intel/quark/i2c.c
+++ b/src/soc/intel/quark/i2c.c
@@ -13,6 +13,7 @@
* GNU General Public License for more details.
*/
+#include <assert.h>
#include <console/console.h>
#include <delay.h>
#include <device/device.h>
@@ -166,7 +167,7 @@ int platform_i2c_transfer(unsigned bus, struct i2c_seg *segments, int count)
/* Finish reading the data bytes */
while (read_length > 0) {
status = regs->ic_status;
- *buffer++ = (UINT8)regs->ic_data_cmd;
+ *buffer++ = (uint8_t)regs->ic_data_cmd;
read_length--;
bytes_transferred++;
status = regs->ic_status;