summaryrefslogtreecommitdiff
path: root/src/drivers/pc80
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/pc80')
-rw-r--r--src/drivers/pc80/pc/udelay_io.c2
-rw-r--r--src/drivers/pc80/rtc/mc146818rtc_romcc.c4
-rw-r--r--src/drivers/pc80/tpm/tis.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/pc80/pc/udelay_io.c b/src/drivers/pc80/pc/udelay_io.c
index 35e7af6f39..4fe1caeed9 100644
--- a/src/drivers/pc80/pc/udelay_io.c
+++ b/src/drivers/pc80/pc/udelay_io.c
@@ -18,7 +18,7 @@ void init_timer(void)
{
}
-void udelay(unsigned usecs)
+void udelay(unsigned int usecs)
{
int i;
diff --git a/src/drivers/pc80/rtc/mc146818rtc_romcc.c b/src/drivers/pc80/rtc/mc146818rtc_romcc.c
index cdce66a6b9..4405443501 100644
--- a/src/drivers/pc80/rtc/mc146818rtc_romcc.c
+++ b/src/drivers/pc80/rtc/mc146818rtc_romcc.c
@@ -74,10 +74,10 @@ static inline __attribute__((unused)) int do_normal_boot(void)
return boot_use_normal(byte);
}
-unsigned read_option_lowlevel(unsigned start, unsigned size, unsigned def)
+unsigned int read_option_lowlevel(unsigned int start, unsigned int size, unsigned int def)
{
#if CONFIG(USE_OPTION_TABLE)
- unsigned byte;
+ unsigned int byte;
byte = cmos_read(start/8);
return (byte >> (start & 7U)) & ((1U << size) - 1U);
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c
index 33e950496f..5927377d15 100644
--- a/src/drivers/pc80/tpm/tis.c
+++ b/src/drivers/pc80/tpm/tis.c
@@ -465,7 +465,7 @@ static u32 tis_senddata(const u8 *const data, u32 len)
burst = tpm_read_burst_count(locality);
while (1) {
- unsigned count;
+ unsigned int count;
/* Wait till the device is ready to accept more data. */
while (!burst) {