blob: 679d234b0709310175af9ba30617409e7eee0514 [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
14void Xil_ICacheEnable(void)
15{}
16
17void Xil_DCacheEnable(void)
18{}
19
20void Xil_ICacheDisable(void)
21{}
22
23void Xil_DCacheDisable(void)
24{}
25
26void Xil_Out32(unsigned long addr, unsigned long val)
27{
28 writel(val, addr);
29}
30
31int Xil_In32(unsigned long addr)
32{
33 return readl(addr);
34}
35
Michal Simekf5727ec2016-07-14 11:13:04 +020036void usleep(u32 sleep)
37{
38 udelay(sleep);
39}
Michal Simekf5727ec2016-07-14 11:13:04 +020040
Michal Simek72536fd2015-11-20 13:17:22 +010041#endif /* XIL_IO_H */