blob: 6bbc000da8283f3b66a7494019e5088c8d36a67a [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 mask_delay(u32 delay);
37void usleep(u32 sleep)
38{
39 udelay(sleep);
40}
41int mask_poll(u32 add, u32 mask);
42int mask_pollOnValue(u32 add, u32 mask, u32 value);
43
Michal Simek72536fd2015-11-20 13:17:22 +010044#endif /* XIL_IO_H */