From: Kever Yang Date: Wed, 20 Nov 2019 15:20:46 +0800 Subject: [U-Boot] [PATCH v2 2/2] rockchip: px30: enable spl-fifo-mode for both emmc and sdmmc on evb In-Reply-To: <20191119110402.17876-2-heiko@sntech.de> References: <20191119110402.17876-1-heiko@sntech.de> <20191119110402.17876-2-heiko@sntech.de> Message-ID: <74b9ba4b-8df2-e2e7-6499-a323a0d00e4b@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 2019/11/19 下午7:04, Heiko Stuebner wrote: > From: Heiko Stuebner > > As part of loading trustedfirmware, the SPL is required to place portions > of code into the socs sram but the mmc controllers can only do dma > transfers into the regular memory, not sram. > > The results of this are not directly visible in u-boot itself, but > manifest as security-relate cpu aborts during boot of for example Linux. > > There were a number of attempts to solve this elegantly but so far > discussion is still ongoing, so to make the board at least boot correctly > put both mmc controllers into fifo-mode, which also circumvents the > issue for now. > > Signed-off-by: Heiko Stuebner Reviewed-by: Kever Yang Thanks, - Kever > --- > changes in v2: > - moved to a spl-specific property, as suggested by Philipp > > arch/arm/dts/px30-evb-u-boot.dtsi | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/dts/px30-evb-u-boot.dtsi b/arch/arm/dts/px30-evb-u-boot.dtsi > index 3de9c7068e..a2a2c07dcc 100644 > --- a/arch/arm/dts/px30-evb-u-boot.dtsi > +++ b/arch/arm/dts/px30-evb-u-boot.dtsi > @@ -31,12 +31,15 @@ > &sdmmc { > u-boot,dm-pre-reloc; > > - /* temporary till I find out why dma mode doesn't work */ > - fifo-mode; > + /* mmc to sram can't do dma, prevent aborts transfering TF-A parts */ > + u-boot,spl-fifo-mode; > }; > > &emmc { > u-boot,dm-pre-reloc; > + > + /* mmc to sram can't do dma, prevent aborts transfering TF-A parts */ > + u-boot,spl-fifo-mode; > }; > > &grf {