forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: lpc-enet: factor out iram access
The lpc_eth driver uses a platform specific method to find the internal sram. This prevents building it on other machines. Rework to only use one function call and keep the other platform internals where they belong. Ideally this would look up the sram location from DT, but as this is a rarely used driver, I want to keep the modifications to a minimum. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
- Loading branch information
Showing
5 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
/* | ||
* Author: Kevin Wells <[email protected]> | ||
* | ||
* Copyright (C) 2010 NXP Semiconductors | ||
*/ | ||
|
||
#ifndef __SOC_LPC32XX_MISC_H | ||
#define __SOC_LPC32XX_MISC_H | ||
|
||
#include <linux/types.h> | ||
|
||
#ifdef CONFIG_ARCH_LPC32XX | ||
extern u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr); | ||
#else | ||
static inline u32 lpc32xx_return_iram(void __iomem **mapbase, dma_addr_t *dmaaddr) | ||
{ | ||
*mapbase = NULL; | ||
*dmaaddr = 0; | ||
return 0; | ||
} | ||
#endif | ||
|
||
#endif /* __SOC_LPC32XX_MISC_H */ |