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>
This commit is contained in:
Lee Leahy
2016-07-21 09:17:10 -07:00
parent 1cfb555e71
commit 14d09264a2
5 changed files with 31 additions and 28 deletions

View File

@@ -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;