diff options
author | Shiji Yang <yangshiji66@outlook.com> | 2023-06-20 19:44:32 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2023-06-21 14:54:50 +0200 |
commit | fd99ac5055d4705e91c73d1adba18bc71c8511a8 (patch) | |
tree | e6a739d2439de459568511ddb359d89b2dc217ef /arch/mips/ralink/common.h | |
parent | 89ec9bbe60b61cc6ae3eddd6d4f43e128f8a88de (diff) |
mips: ralink: introduce commonly used remap node function
The ralink_of_remap() function is repeated several times on SoC specific
source files. They have the same structure, but just differ in compatible
strings. In order to make commonly use of these codes, this patch
introduces a newly designed mtmips_of_remap_node() function to match and
remap all supported system controller and memory controller nodes.
Build and run tested on MT7620 and MT7628.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/ralink/common.h')
-rw-r--r-- | arch/mips/ralink/common.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/ralink/common.h b/arch/mips/ralink/common.h index b0d671442966..893981a0ca7d 100644 --- a/arch/mips/ralink/common.h +++ b/arch/mips/ralink/common.h @@ -25,6 +25,4 @@ extern void ralink_of_remap(void); extern void __init prom_soc_init(struct ralink_soc_info *soc_info); -__iomem void *plat_of_remap_node(const char *node); - #endif /* _RALINK_COMMON_H__ */ |