blob: c476c902ebcbd4b62d5fb682fb4da2ee0f681b94 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Michal Simeke6a9ed02015-11-20 13:17:22 +01002
3#ifndef XIL_IO_H /* prevent circular inclusions */
4#define XIL_IO_H
5
6/* FIXME remove this when vivado is fixed */
7#include <asm/io.h>
Michal Simekb6f40482016-07-14 11:13:04 +02008#include <common.h>
Michal Simeke6a9ed02015-11-20 13:17:22 +01009
10#define xil_printf(...)
11
Michal Simeke6a9ed02015-11-20 13:17:22 +010012void Xil_Out32(unsigned long addr, unsigned long val)
13{
14 writel(val, addr);
15}
16
17int Xil_In32(unsigned long addr)
18{
19 return readl(addr);
20}
21
Michal Simekb6f40482016-07-14 11:13:04 +020022void usleep(u32 sleep)
23{
24 udelay(sleep);
25}
Michal Simekb6f40482016-07-14 11:13:04 +020026
Michal Simeke6a9ed02015-11-20 13:17:22 +010027#endif /* XIL_IO_H */