From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kever Yang Subject: Re: [PATCH 03/11] rockchip: Include SF on distrocmd devices Date: Tue, 7 Jan 2020 16:44:27 +0800 Message-ID: <6c3629a1-6870-4313-3bd2-c307946dab68@rock-chips.com> References: <20191221075440.6944-1-jagan@amarulasolutions.com> <20191221075440.6944-4-jagan@amarulasolutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20191221075440.6944-4-jagan@amarulasolutions.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" To: Jagan Teki , Simon Glass , Philipp Tomsich Cc: u-boot@lists.denx.de, linux-amarula , linux-rockchip@lists.infradead.org List-Id: linux-rockchip.vger.kernel.org On 2019/12/21 下午3:54, Jagan Teki wrote: > Include the SPI flash device on distro boot targets. > > Included at the beginning of the target devices list > since the rockchip platform has a boot order start > from SPI Flash. > > Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever > --- > include/configs/rockchip-common.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h > index 68e1105a4b..4e6d6e98d9 100644 > --- a/include/configs/rockchip-common.h > +++ b/include/configs/rockchip-common.h > @@ -11,6 +11,12 @@ > > #ifndef CONFIG_SPL_BUILD > > +#if CONFIG_IS_ENABLED(CMD_SF) > +# define BOOT_TARGET_SF(func) func(SF, sf, 0) > +#else > +# define BOOT_TARGET_SF(func) > +#endif > + > /* First try to boot from SD (index 0), then eMMC (index 1) */ > #if CONFIG_IS_ENABLED(CMD_MMC) > #define BOOT_TARGET_MMC(func) \ > @@ -39,6 +45,7 @@ > #endif > > #define BOOT_TARGET_DEVICES(func) \ > + BOOT_TARGET_SF(func) \ > BOOT_TARGET_MMC(func) \ > BOOT_TARGET_USB(func) \ > BOOT_TARGET_PXE(func) \