u-boot/arch/mips/include/asm
Paul Burton 2e4cc1c5d4 MIPS: Use CPHYSADDR to implement mips32 virt_to_phys
Use CPHYSADDR to implement the virt_to_phys function for converting from
a virtual to a physical address for MIPS32, much as is already done for
MIPS64. This allows for virt_to_phys to work regardless of whether the
address being translated is in kseg0 or kseg1, unlike the previous
subtraction based approach which only worked for addresses in kseg0.
This allows for drivers to provide an address to virt_to_phys without
needing to manually ensure that kseg1 addresses are converted to
equivalent kseg0 addresses first.

This patch is equivalent to this Linux patch currently waiting to be
reviewed & merged:

    https://patchwork.linux-mips.org/patch/12564/

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
2016-05-31 09:38:11 +02:00
..
mach-generic MIPS: sync I/O related header files with linux-4.4 2016-01-16 21:06:46 +01:00
addrspace.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
asm.h MIPS: sync processor and register definitions with linux-4.4 2016-01-16 21:06:46 +01:00
bitops.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
byteorder.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
cache.h MIPS: kconfig: add option for MIPS_L1_CACHE_SHIFT 2016-01-16 21:06:46 +01:00
cachectl.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
cacheops.h MIPS: fix mips_cache fallback without __builtin_mips_cache 2016-03-09 11:00:40 +01:00
config.h MIPS: add support for pre-relocation malloc 2015-01-21 14:07:23 +01:00
const.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
cpu-features.h MIPS: sync I/O related header files with linux-4.4 2016-01-16 21:06:46 +01:00
errno.h MIPS: asm/errno.h: switch to asm-generic/errno.h 2013-06-08 23:10:10 +02:00
global_data.h mips: Drop JZ4740 remnants 2016-05-26 01:34:14 +02:00
gpio.h MIPS: add asm/gpio.h to fix compilation error with CONFIG_CMD_GPIO. 2016-01-16 21:06:45 +01:00
io.h MIPS: Use CPHYSADDR to implement mips32 virt_to_phys 2016-05-31 09:38:11 +02:00
isadep.h MIPS: sync processor and register definitions with linux-4.4 2016-01-16 21:06:46 +01:00
malta.h malta: IDE support 2015-01-29 13:11:02 +01:00
mipsregs.h MIPS: sync processor and register definitions with linux-4.4 2016-01-16 21:06:46 +01:00
pgtable-bits.h MIPS: sync I/O related header files with linux-4.4 2016-01-16 21:06:46 +01:00
posix_types.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
processor.h MIPS: sync processor and register definitions with linux-4.4 2016-01-16 21:06:46 +01:00
ptrace.h MIPS: sync processor and register definitions with linux-4.4 2016-01-16 21:06:46 +01:00
reboot.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
reg.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
regdef.h MIPS: sync processor and register definitions with linux-4.4 2016-01-16 21:06:46 +01:00
sections.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sgidefs.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
string.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
system.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
types.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00
u-boot-mips.h MIPS: drop incaip board 2014-04-20 13:16:43 +02:00
u-boot.h mips: Drop unused code in u-boot.h 2016-05-27 15:39:53 -04:00
unaligned.h MIPS: fix SPDX license identifier in remaining arch header files 2016-01-16 21:06:46 +01:00