1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * Author: Kevin Wells <kevin.wells@nxp.com> 3 * Author: Kevin Wells <kevin.wells@nxp.com> 4 * 4 * 5 * Copyright (C) 2010 NXP Semiconductors 5 * Copyright (C) 2010 NXP Semiconductors 6 */ 6 */ 7 7 8 #ifndef __SOC_LPC32XX_MISC_H 8 #ifndef __SOC_LPC32XX_MISC_H 9 #define __SOC_LPC32XX_MISC_H 9 #define __SOC_LPC32XX_MISC_H 10 10 11 #include <linux/types.h> 11 #include <linux/types.h> 12 #include <linux/phy.h> 12 #include <linux/phy.h> 13 13 14 #ifdef CONFIG_ARCH_LPC32XX 14 #ifdef CONFIG_ARCH_LPC32XX 15 extern u32 lpc32xx_return_iram(void __iomem ** 15 extern u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr); 16 extern void lpc32xx_set_phy_interface_mode(phy 16 extern void lpc32xx_set_phy_interface_mode(phy_interface_t mode); 17 extern void lpc32xx_loopback_set(resource_size 17 extern void lpc32xx_loopback_set(resource_size_t mapbase, int state); 18 #else 18 #else 19 static inline u32 lpc32xx_return_iram(void __i 19 static inline u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr) 20 { 20 { 21 *mapbase = NULL; 21 *mapbase = NULL; 22 *dmaaddr = 0; 22 *dmaaddr = 0; 23 return 0; 23 return 0; 24 } 24 } 25 static inline void lpc32xx_set_phy_interface_m 25 static inline void lpc32xx_set_phy_interface_mode(phy_interface_t mode) 26 { 26 { 27 } 27 } 28 static inline void lpc32xx_loopback_set(resour 28 static inline void lpc32xx_loopback_set(resource_size_t mapbase, int state) 29 { 29 { 30 } 30 } 31 #endif 31 #endif 32 32 33 #endif /* __SOC_LPC32XX_MISC_H */ 33 #endif /* __SOC_LPC32XX_MISC_H */ 34 34
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.