From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schwierzeck Date: Fri, 27 May 2016 12:58:47 +0200 Subject: [U-Boot] [PATCH v2 1/4] MIPS: Use CPHYSADDR to implement mips32 virt_to_phys In-Reply-To: <20160526134936.14721-2-paul.burton@imgtec.com> References: <20160526134936.14721-1-paul.burton@imgtec.com> <20160526134936.14721-2-paul.burton@imgtec.com> Message-ID: <57482867.70208@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > --- > > 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: