u-boot-brain/arch/mips
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
..
cpu MIPS: Use unchecked immediate addition/subtraction 2016-05-21 01:36:39 +02:00
dts malta: Use device model & tree for UART 2016-05-26 01:34:13 +02:00
include/asm MIPS: Use CPHYSADDR to implement mips32 virt_to_phys 2016-05-31 09:38:11 +02:00
lib MIPS: Use unchecked immediate addition/subtraction 2016-05-21 01:36:39 +02:00
mach-ath79 mips: ath79: ar933x: Avoid warning with gcc5 2016-05-26 01:34:14 +02:00
mach-au1x00 MIPS: Kconfig: optimize gcc -march and -mtune setup 2016-01-16 21:06:46 +01:00
mach-pic32 board: Add Microchip PIC32MZ[DA]-Starter-Kit board. 2016-02-01 22:14:01 +01:00
config.mk MIPS: Kconfig: optimize gcc -march and -mtune setup 2016-01-16 21:06:46 +01:00
Kconfig malta: Use device model & tree for UART 2016-05-26 01:34:13 +02:00
Makefile mips: Allow overriding start.S in SPL 2016-05-26 01:34:14 +02:00