From 6e94cdbd0960835d679b6fafd0421eeef908800b Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Thu, 21 Jul 2016 09:28:56 -0700 Subject: [PATCH] UPSTREAM: mainboard/intel/galileo: Remove use of EDK-II macros & data types Add assert.h to use coreboot's ASSERT macro. Replace the use of UINT8 data type with uint8_t. TEST=Build and run on Galileo Gen2. BUG=None BRANCH=None Change-Id: Ibc0180272cbfd7df4928bd841b02e23562fe1223 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/15859 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-on: https://chromium-review.googlesource.com/367384 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Furquan Shaikh --- src/mainboard/intel/galileo/reg_access.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mainboard/intel/galileo/reg_access.c b/src/mainboard/intel/galileo/reg_access.c index 36345ffddd..3a8001b104 100644 --- a/src/mainboard/intel/galileo/reg_access.c +++ b/src/mainboard/intel/galileo/reg_access.c @@ -15,6 +15,7 @@ #define __SIMPLE_DEVICE__ +#include #include #include #include @@ -45,7 +46,7 @@ static uint64_t reg_read(struct reg_script_context *ctx) case GEN2_I2C_LED_PWM: if (ctx->display_features) printk(BIOS_INFO, "I2C chip 0x%02x: ", step->id); - ret_code = i2c_readb(0, step->id, (UINT8)step->reg, &value); + ret_code = i2c_readb(0, step->id, (uint8_t)step->reg, &value); ASSERT(ret_code == 2); break; } @@ -76,8 +77,8 @@ static void reg_write(struct reg_script_context *ctx) case RMU_TEMP_REGS: if (ctx->display_features) printk(BIOS_INFO, "I2C chip 0x%02x: ", step->id); - value = (UINT8)step->value; - ret_code = i2c_writeb(0, step->id, (UINT8)step->reg, value); + value = (uint8_t)step->value; + ret_code = i2c_writeb(0, step->id, (uint8_t)step->reg, value); ASSERT(ret_code == 2); break; }