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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user