[U-Boot] [PATCH v2 1/4] MIPS: Use CPHYSADDR to implement mips32 virt_to_phys

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Fri May 27 12:58:47 CEST 2016



Am 26.05.2016 um 15:49 schrieb Paul Burton:
> 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 at imgtec.com>
> 
> ---
> 
> Changes in v2:
> - New patch.
> 
>  arch/mips/include/asm/io.h | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 

applied to u-boot-mips, thanks.

-- 
- Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160527/4aacbc1d/attachment.sig>


More information about the U-Boot mailing list