Michal Simek | 72536fd | 2015-11-20 13:17:22 +0100 | [diff] [blame] | 1 | /* |
| 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 Simek | f5727ec | 2016-07-14 11:13:04 +0200 | [diff] [blame] | 10 | #include <common.h> |
Michal Simek | 72536fd | 2015-11-20 13:17:22 +0100 | [diff] [blame] | 11 | |
| 12 | #define xil_printf(...) |
| 13 | |
Michal Simek | 72536fd | 2015-11-20 13:17:22 +0100 | [diff] [blame] | 14 | void Xil_Out32(unsigned long addr, unsigned long val) |
| 15 | { |
| 16 | writel(val, addr); |
| 17 | } |
| 18 | |
| 19 | int Xil_In32(unsigned long addr) |
| 20 | { |
| 21 | return readl(addr); |
| 22 | } |
| 23 | |
Michal Simek | f5727ec | 2016-07-14 11:13:04 +0200 | [diff] [blame] | 24 | void usleep(u32 sleep) |
| 25 | { |
| 26 | udelay(sleep); |
| 27 | } |
Michal Simek | f5727ec | 2016-07-14 11:13:04 +0200 | [diff] [blame] | 28 | |
Michal Simek | 72536fd | 2015-11-20 13:17:22 +0100 | [diff] [blame] | 29 | #endif /* XIL_IO_H */ |