From patchwork Sat Dec 21 07:54:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 941 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EA6C73F08E for ; Sat, 21 Dec 2019 08:55:02 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id f10sf6232268plr.22 for ; Fri, 20 Dec 2019 23:55:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576914901; cv=pass; d=google.com; s=arc-20160816; b=TVL3nK4Lhe9DHCGOLd6lzpmM5NnP9I3qN/qUFz2VB5QdwnJ36CLnYXaLgszJ4cxDKT oksBih2F7Q9CW6vsI+sGZzudUWuYZla6PP9ibFjy7rgEGfQu8cuMZ/GK/9D8++mMaD7E 24KxWSLn7NdZ2fBVmN8jpr0rCr+glT+RbT/e+HvhUN9Ii3yKisQ/T41uT8L88dWAuaaM trH8aiuTdxRtBL3RRjcuIO6Y+tiD6APy5/24DFfnvchmBKLz9pHiZMBFFCYRQSpmz2/C f706MbkctMVJdH1mHbYKdzfoCaep8GLf6ojvkSjyYgisEBd1vJn8eMA6q24OS51v+V1B UH7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=5UUA4ET7w3pXv2pVw6emT+HAaowc3n2h2T5SUBTY0h4=; b=kE3I2twQZHhq0MZ8HVv+Zsn1MGAdXS0QsX4Iats5TMmK58jB5jzRkNKYLqSnOT4SLq 8WmmOV/1b4yZXmMlLhTevtKwvSnG3X0wv9iHffXmbxpcCpQQ5BtIjm2yToeHpBNSIipD rSqjCHXxEwX28Q8GoZ+in6guATj5jM2L5KJtFEv2fsFD5cEvev/8d+NJZ9otvoMCU6v/ /4X2aX6IDLeBNP4kHOOh7QnSU0Wb+O+NyXjyy3srHtPHhDzxqx7WX0l/umgRR4Zc4k7c 7IK5WS6J6aHmvbNtSYzQSOaEaDl9tvGm9qCdppJ4pZsySyWl/tAQUT1x8/ib8UEXkVbt vkew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FbQ88WBF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=5UUA4ET7w3pXv2pVw6emT+HAaowc3n2h2T5SUBTY0h4=; b=bdflymYKwupQRPcmCwsUd8sAs1goyaqjmgySODBGBjAzW8FEDncSsp48k7KN8gBsg1 TU4xC9GhDUBcnu4k3h1gT9snjLw7YfJhYXITd2rV7yHuStTDxMDpSWlqPdV5yA8mr5Zv 4Epq7AgbHEBypjuR/kH6229xlXmNiTWU4txTA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=5UUA4ET7w3pXv2pVw6emT+HAaowc3n2h2T5SUBTY0h4=; b=VD0hxNsF/D+F3A1hdJJEirkE3DOxTLZiKaiIaRYZHhWKp37ASNAacPg1gIg+sroEw5 YB/gZmVpVdR9looxQCrZmEjsdKNHTRvAhHa8TN4j1UOtEKtJUf/hhv5KQYkwAb0bIfNJ 2e6eN5ZTLjXgCXCLO2cvVpOVoAEnqBTecYOqBckol2H2xciqnLq/M0X21nbqpkBvH0iS M2pjKh0Y9GrfA+ZgYfNtNg6SbjDL2e/OEKZ9FYHvz9KIxv9f/84enH8TZLimyShEaBAp A3I4Dka0fhLmuVymP2/TE4KIbd6d2lR3pDfRbw8F4/+6Jq4ynk/wdHuUawHsVdczMbLF oPKw== X-Gm-Message-State: APjAAAX/vhMuLtoTNR0YWaiUIxIKX5vRdnq6WgfRJGrFATruXejaUxkG xa8f6/vHSLwdcPiyAnSIO3rB4P/N X-Google-Smtp-Source: APXvYqyMZqAc05ka/sD2F5hDprxRfnpio2L1X8Dfo4LpYfj2nq4fs+yXv/msoor7ZEy6J0ygZhgMsA== X-Received: by 2002:a62:2643:: with SMTP id m64mr6544143pfm.123.1576914901033; Fri, 20 Dec 2019 23:55:01 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:f8d:: with SMTP id 13ls3077796pjz.0.gmail; Fri, 20 Dec 2019 23:55:00 -0800 (PST) X-Received: by 2002:a17:90a:bf0c:: with SMTP id c12mr20201446pjs.112.1576914900600; Fri, 20 Dec 2019 23:55:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576914900; cv=none; d=google.com; s=arc-20160816; b=YbeYsZI6jvQ7BB2lC73Z2EMaKjJkAASiSfqyK0LJdIr2wWlPIeuaROJzxk3vxifyXV 7PmWf5l3BNFn0ia4N27EOzADgdJtYpc4B7nrN4vNWnafdoWNSCdYZ/gYXvFdCSR5o4BN ylLE/iCzaaSdfLq5GnR6sCC36f3j1P3trD8mtRRWjJKPfuF7aUluD3cUC4htP4P5jgEI 3Sex/O5cZ5lMvyR2FXev3eVlNOwpqq1C/9j6pvCrATiwNDgADrWS6ZYg6t3eTidEfYRT Ffg6zqYV+I4p599Lga+jPgXrcwAnUOT3KOFSWPnXjZ9/uVoOK/NjW2RHuoHP9kMPOwud igwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=lYNhFDqASRdOPyZEBfOp9gs20cntUjKWm7qO55vCvyc=; b=giYPDqxGKD4gFYUM5kFNy6EdF/eJl2ylcsPiljc1fJGURMozlOUQkvuVTI8kAE2qIm EBaCKW8lZU2YNpwq9s8TT4DCLG0/TPl9FmtwT14a8zkkWD7DDwPKFHLOLPo+FnqUIgnV TnVxIkUXaLv6ACGiI/WywX9W28siaykgZtRJUNF03kxTkE/zWDwlXMBit7UBq7DyXB7P I1Wvdrgh1smAx/C99VeLznxkPaTiHTC+PLAMQ3DNtcN/ogE+btjKbJZ3XYXJ0PTAFrOE Pm8hrAzq62TQrHrt3h8wuc6UxEK/tnVQ1Lz8MpyYP2HNhaL0zw8IFfGtznF4YT8RnwRg c4PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FbQ88WBF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 59sor5027027pla.67.2019.12.20.23.55.00 for (Google Transport Security); Fri, 20 Dec 2019 23:55:00 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:820b:: with SMTP id x11mr19733982pln.196.1576914900253; Fri, 20 Dec 2019 23:55:00 -0800 (PST) Received: from localhost.localdomain ([49.206.202.177]) by smtp.gmail.com with ESMTPSA id i9sm15551018pfk.24.2019.12.20.23.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 23:54:59 -0800 (PST) From: Jagan Teki To: Simon Glass , Kever Yang , Philipp Tomsich Cc: u-boot@lists.denx.de, linux-amarula , linux-rockchip@lists.infradead.org, Jagan Teki Subject: [PATCH 03/11] rockchip: Include SF on distrocmd devices Date: Sat, 21 Dec 2019 13:24:32 +0530 Message-Id: <20191221075440.6944-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191221075440.6944-1-jagan@amarulasolutions.com> References: <20191221075440.6944-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FbQ88WBF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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) \