blob: 57ca4adf11bf42adfbf6911f32de36d1045ec9e2 [file] [log] [blame]
Michal Simeke6a9ed02015-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>
10
11#define xil_printf(...)
12
13void Xil_ICacheEnable(void)
14{}
15
16void Xil_DCacheEnable(void)
17{}
18
19void Xil_ICacheDisable(void)
20{}
21
22void Xil_DCacheDisable(void)
23{}
24
25void Xil_Out32(unsigned long addr, unsigned long val)
26{
27 writel(val, addr);
28}
29
30int Xil_In32(unsigned long addr)
31{
32 return readl(addr);
33}
34
35#endif /* XIL_IO_H */