lpc32xx-misc.h 829 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Author: Kevin Wells <[email protected]>
  4. *
  5. * Copyright (C) 2010 NXP Semiconductors
  6. */
  7. #ifndef __SOC_LPC32XX_MISC_H
  8. #define __SOC_LPC32XX_MISC_H
  9. #include <linux/types.h>
  10. #include <linux/phy.h>
  11. #ifdef CONFIG_ARCH_LPC32XX
  12. extern u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr);
  13. extern void lpc32xx_set_phy_interface_mode(phy_interface_t mode);
  14. extern void lpc32xx_loopback_set(resource_size_t mapbase, int state);
  15. #else
  16. static inline u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr)
  17. {
  18. *mapbase = NULL;
  19. *dmaaddr = 0;
  20. return 0;
  21. }
  22. static inline void lpc32xx_set_phy_interface_mode(phy_interface_t mode)
  23. {
  24. }
  25. static inline void lpc32xx_loopback_set(resource_size_t mapbase, int state)
  26. {
  27. }
  28. #endif
  29. #endif /* __SOC_LPC32XX_MISC_H */