mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
arm: zynq: Fix types in ps7_spl_init
The patch is fixing the following Warning: arch/arm/mach-zynq/ps7_spl_init.c:133:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (ioread(addr) < delay) ^ Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
77cbd9536e
commit
5a60a548f7
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ static void perf_start_clock(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Compute mask for given delay in miliseconds*/
|
/* Compute mask for given delay in miliseconds*/
|
||||||
static int get_number_of_cycles_for_delay(unsigned int delay)
|
static unsigned long get_number_of_cycles_for_delay(unsigned long delay)
|
||||||
{
|
{
|
||||||
return (APU_FREQ / (2 * 1000)) * delay;
|
return (APU_FREQ / (2 * 1000)) * delay;
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ int __weak ps7_config(unsigned long *ps7_config_init)
|
||||||
unsigned long mask;
|
unsigned long mask;
|
||||||
unsigned int numargs;
|
unsigned int numargs;
|
||||||
int i;
|
int i;
|
||||||
int delay;
|
unsigned long delay;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
opcode = ptr[0];
|
opcode = ptr[0];
|
||||||
|
|
Loading…
Reference in a new issue