2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2015-11-20 12:17:22 +00:00
|
|
|
|
|
|
|
#ifndef XIL_IO_H /* prevent circular inclusions */
|
|
|
|
#define XIL_IO_H
|
|
|
|
|
|
|
|
/* FIXME remove this when vivado is fixed */
|
|
|
|
#include <asm/io.h>
|
2016-07-14 09:13:04 +00:00
|
|
|
#include <common.h>
|
2015-11-20 12:17:22 +00:00
|
|
|
|
|
|
|
#define xil_printf(...)
|
|
|
|
|
2019-05-24 13:40:01 +00:00
|
|
|
static void Xil_Out32(unsigned long addr, unsigned long val)
|
2015-11-20 12:17:22 +00:00
|
|
|
{
|
|
|
|
writel(val, addr);
|
|
|
|
}
|
|
|
|
|
2019-05-24 13:40:01 +00:00
|
|
|
static int Xil_In32(unsigned long addr)
|
2015-11-20 12:17:22 +00:00
|
|
|
{
|
|
|
|
return readl(addr);
|
|
|
|
}
|
|
|
|
|
2019-05-24 13:40:01 +00:00
|
|
|
static void __maybe_unused usleep(u32 sleep)
|
2016-07-14 09:13:04 +00:00
|
|
|
{
|
|
|
|
udelay(sleep);
|
|
|
|
}
|
|
|
|
|
2015-11-20 12:17:22 +00:00
|
|
|
#endif /* XIL_IO_H */
|