mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 20:48:08 +07:00
ffba29c9eb
The lpc32xx_loopback_set() function in hte lpc32xx_hs driver is the one thing that relies on platform header files. Move that into the core platform code so we only need a variable declaration for it, and enable COMPILE_TEST building. Link: https://lore.kernel.org/r/20190809144043.476786-12-arnd@arndb.de Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
34 lines
829 B
C
34 lines
829 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Author: Kevin Wells <kevin.wells@nxp.com>
|
|
*
|
|
* Copyright (C) 2010 NXP Semiconductors
|
|
*/
|
|
|
|
#ifndef __SOC_LPC32XX_MISC_H
|
|
#define __SOC_LPC32XX_MISC_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/phy.h>
|
|
|
|
#ifdef CONFIG_ARCH_LPC32XX
|
|
extern u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr);
|
|
extern void lpc32xx_set_phy_interface_mode(phy_interface_t mode);
|
|
extern void lpc32xx_loopback_set(resource_size_t mapbase, int state);
|
|
#else
|
|
static inline u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr)
|
|
{
|
|
*mapbase = NULL;
|
|
*dmaaddr = 0;
|
|
return 0;
|
|
}
|
|
static inline void lpc32xx_set_phy_interface_mode(phy_interface_t mode)
|
|
{
|
|
}
|
|
static inline void lpc32xx_loopback_set(resource_size_t mapbase, int state)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __SOC_LPC32XX_MISC_H */
|