blob: 0e4f81064ca87e1f7198f05dd8b045fc7cd3337a [file] [log] [blame]
Michal Simek72536fd2015-11-20 13:17:22 +01001/*
2 * SPDX-License-Identifier: GPL-2.0+
3 */
4
5#ifndef XIL_IO_H /* prevent circular inclusions */
6#define XIL_IO_H
7
8/* FIXME remove this when vivado is fixed */
9#include <asm/io.h>
Michal Simekf5727ec2016-07-14 11:13:04 +020010#include <common.h>
Michal Simek72536fd2015-11-20 13:17:22 +010011
12#define xil_printf(...)
13
Michal Simek72536fd2015-11-20 13:17:22 +010014void Xil_Out32(unsigned long addr, unsigned long val)
15{
16 writel(val, addr);
17}
18
19int Xil_In32(unsigned long addr)
20{
21 return readl(addr);
22}
23
Michal Simekf5727ec2016-07-14 11:13:04 +020024void usleep(u32 sleep)
25{
26 udelay(sleep);
27}
Michal Simekf5727ec2016-07-14 11:13:04 +020028
Michal Simek72536fd2015-11-20 13:17:22 +010029#endif /* XIL_IO_H */