serial: lpc32xx: allow compile testing
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>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#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)
|
||||
{
|
||||
@@ -24,6 +25,9 @@ static inline u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaadd
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user