xil_io.h 461 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef XIL_IO_H /* prevent circular inclusions */
  3. #define XIL_IO_H
  4. /* FIXME remove this when vivado is fixed */
  5. #include <asm/io.h>
  6. #include <common.h>
  7. #define xil_printf(...)
  8. static void Xil_Out32(unsigned long addr, unsigned long val)
  9. {
  10. writel(val, addr);
  11. }
  12. static int Xil_In32(unsigned long addr)
  13. {
  14. return readl(addr);
  15. }
  16. static void __maybe_unused usleep(u32 sleep)
  17. {
  18. udelay(sleep);
  19. }
  20. #endif /* XIL_IO_H */