Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Author: Kevin Wells <kevin.wells@nxp.com>
0004  *
0005  * Copyright (C) 2010 NXP Semiconductors
0006  */
0007 
0008 #ifndef __SOC_LPC32XX_MISC_H
0009 #define __SOC_LPC32XX_MISC_H
0010 
0011 #include <linux/types.h>
0012 #include <linux/phy.h>
0013 
0014 #ifdef CONFIG_ARCH_LPC32XX
0015 extern u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr);
0016 extern void lpc32xx_set_phy_interface_mode(phy_interface_t mode);
0017 extern void lpc32xx_loopback_set(resource_size_t mapbase, int state);
0018 #else
0019 static inline u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr)
0020 {
0021     *mapbase = NULL;
0022     *dmaaddr = 0;
0023     return 0;
0024 }
0025 static inline void lpc32xx_set_phy_interface_mode(phy_interface_t mode)
0026 {
0027 }
0028 static inline void lpc32xx_loopback_set(resource_size_t mapbase, int state)
0029 {
0030 }
0031 #endif
0032 
0033 #endif  /* __SOC_LPC32XX_MISC_H */