History

Merge branch 'lpc32xx/multiplatform' into arm/soc

I revisited some older patches here, getting two of the remaining ARM platforms to build with ARCH_MULTIPLATFORM like most others do. In case of lpc32xx, I created a new set of patches, which seemed easier than digging out what I did for an older release many years ago. * lpc32xx/multiplatform: ARM: lpc32xx: allow multiplatform build ARM: lpc32xx: clean up header files serial: lpc32xx: allow compile testing net: lpc-enet: allow compile testing net: lpc-enet: fix printk format strings net: lpc-enet: fix badzero.cocci warnings net: lpc-enet: move phy setup into platform code net: lpc-enet: factor out iram access gpio: lpc32xx: allow building on non-lpc32xx targets serial: lpc32xx_hs: allow compile-testing watchdog: pnx4008_wdt: allow compile-testing usb: udc: lpc32xx: allow compile-testing usb: ohci-nxp: enable compile-testing

Arnd Bergmann committed 7 years ago

Commit d64a1fd2 parents 3584be9 75bf1bd27 files · +242 −272Browse files

Showing the changes to include/linux (1 of 27 files). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t