2018-05-07 06:58:06 +09:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2015-11-20 21:17:22 +09: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 18:13:04 +09:00
|
|
|
#include <common.h>
|
2020-05-11 02:40:11 +09:00
|
|
|
#include <linux/delay.h>
|
2015-11-20 21:17:22 +09:00
|
|
|
|
|
|
|
#define xil_printf(...)
|
|
|
|
|
2019-05-24 22:40:01 +09:00
|
|
|
static void Xil_Out32(unsigned long addr, unsigned long val)
|
2015-11-20 21:17:22 +09:00
|
|
|
{
|
|
|
|
writel(val, addr);
|
|
|
|
}
|
|
|
|
|
2019-05-24 22:40:01 +09:00
|
|
|
static int Xil_In32(unsigned long addr)
|
2015-11-20 21:17:22 +09:00
|
|
|
{
|
|
|
|
return readl(addr);
|
|
|
|
}
|
|
|
|
|
2019-05-24 22:40:01 +09:00
|
|
|
static void __maybe_unused usleep(u32 sleep)
|
2016-07-14 18:13:04 +09:00
|
|
|
{
|
|
|
|
udelay(sleep);
|
|
|
|
}
|
|
|
|
|
2015-11-20 21:17:22 +09:00
|
|
|
#endif /* XIL_IO_H */
|