diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-08-11 13:43:03 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-08-11 13:43:03 +0200 |
commit | ad4fa274907bbc78ebabb015b4351d5f9226f081 (patch) | |
tree | 3eb033a3d6bedb50459ea0181e5180e1531d00e8 /arch/mips | |
parent | 3fcf4400a7b051bdbe9fc175b88336519099ff22 (diff) | |
parent | 3a0f44a7839d475c58720c4091d5e008215cd166 (diff) | |
download | barebox-ad4fa274907bbc78ebabb015b4351d5f9226f081.tar.gz |
Merge branch 'for-next/misc'
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/dts/.gitignore | 1 | ||||
-rw-r--r-- | arch/mips/include/asm/io.h | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/reloc.h | 14 |
3 files changed, 16 insertions, 1 deletions
diff --git a/arch/mips/dts/.gitignore b/arch/mips/dts/.gitignore deleted file mode 100644 index 077903c50a..0000000000 --- a/arch/mips/dts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*dtb* diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index 0d228aa0f5..a3acbd7017 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -27,6 +27,7 @@ void dma_inv_range(unsigned long, unsigned long); * The returned physical address is the physical (CPU) mapping for * the memory address given. */ +#define virt_to_phys virt_to_phys static inline unsigned long virt_to_phys(const void *address) { return (unsigned long)CPHYSADDR(address); @@ -39,6 +40,7 @@ static inline unsigned long virt_to_phys(const void *address) * The returned virtual address is a current CPU mapping for * the memory address given. */ +#define phys_to_virt phys_to_virt static inline void *phys_to_virt(unsigned long address) { if (IS_ENABLED(CONFIG_MMU)) { diff --git a/arch/mips/include/asm/reloc.h b/arch/mips/include/asm/reloc.h new file mode 100644 index 0000000000..adffd6f1c7 --- /dev/null +++ b/arch/mips/include/asm/reloc.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef _ASM_RELOC_H_ +#define _ASM_RELOC_H_ + +static inline unsigned long get_runtime_offset(void) +{ + /* On MIPS, we always relocate before jumping into C */ + return 0; +} + +#include <asm-generic/reloc.h> + +#endif |