From patchwork Fri Apr 10 18:26:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1080 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 09CB43F0CC for ; Fri, 10 Apr 2020 20:27:18 +0200 (CEST) Received: by mail-il1-f197.google.com with SMTP id n18sf3276070ilp.13 for ; Fri, 10 Apr 2020 11:27:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586543236; cv=pass; d=google.com; s=arc-20160816; b=r+hLul91vl8yQUM+5flc3x9zc+S2VSYkKR677WYEQJcvKYvE0fn7VYyn5Mah6194Nl /xpSEVr0a7833SpfDYSMy2x7h/6cBLFUlxlK8eSLnHWeBi5iokmFw5C44i0RJkHEZdri zJ4LCzv8fx6Ive9PA/U6VW9fbnMvTd9odljRLLdVywu+WnlYXXycrImQ3YqMW44vtO48 a7zLoqbNMo7H0Ug+B3VaZR5Np7vLP0pmd/OVb9WiPlf6MrBqNu1SryBZCqYNwXVotQcg wfVWCbxQWBFaMH7voZna5UHm0O09fInFzXtQix3hLcSXGSOHmYi4OjoW1kXiA5hJ+PZW k49w== 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:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=OrD67bn6mZreaw2AhIb1ZK0LZOirfmtOsEMz++OluDY=; b=i4e2G8lhC89GW2/YIYhjJz53OcvXIT/iBCcSjGgoVGEGw9LqV9JuuD+4eikccxPCCC 0dfEUaO3jJfODzQoTNTYiphRQtgPnEPpdj8oIaZH9Xxy9OD0mrE0R8KRMAniDb+GrN5d TAcg7yZbVuzlafoh/4/BMSMvqWiKCHIIf4Ca5Io6Jct4+6Qx83BmqCki/R/ymMjlSxEm OvwrQbo039vX7YN6dqHuMEbPK89fImqS2JBBdzq5AViJpiuDjN6jQn4bjRB9kkLw0mJc 9fnruBDDZ5kcdU/nTv4LhUyosBqroqG9IsS/aRZ8TaKubuu4qzJIBMsLAjLQxv9jtiew H9tg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=on14pUjH; 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=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=OrD67bn6mZreaw2AhIb1ZK0LZOirfmtOsEMz++OluDY=; b=eyUUOK7JWed+K14nydNG6neLPXOTIislDq93BQV03ymmqGpdMAjy+mQlAL68QaDOlN UowekixQA6DdTCIcsq1jyHVuMKyQaEi9nfV5S1WV8M8NTBZ5pqzHadd87x4kRmmwdYBP 79ZTafoQCRA8z8GUe9JONEumkC0d76ebYf0t4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references: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=OrD67bn6mZreaw2AhIb1ZK0LZOirfmtOsEMz++OluDY=; b=lj5Gv2JR/Rf+PX6Tu+xJ15J1L1g9bQ/SiWvK46l7yibDqQLUu2m8CBxiAEwOnFT7bp 8bu2bKiIOjuBJ59MRVkh8Bw05qt4I+bZidiDZR/KBls32oKXmg305PTh+PlyfYRZU4b1 WK/ZNFF2e6GOFgX8Kq/RzkPYEzbctGqzyZ1jqSn0sMf6QLKs+KrhpBEStiBLGezMle9M ewvZr2ad/ZbSUwIT0FMXYLwOeZhj/y45FzVqkWg6hVkWjFQHIoU2WbMI/YN6kDwlxMK7 ZsHZm8HWcMiuxwmpkJ8KCX0d86SB95lqojWwsF/bvyYcAiF0jns2onXh4Sgtk1s/f7Sk zgxQ== X-Gm-Message-State: AGi0PuakPhqxA2xoQiTyy6Qyx1XRIuoVirFig3iF8yFWMg8+FgCEMPNp 8xL7Zs7FIQZdRMksTWGUfn1D03UP X-Google-Smtp-Source: APiQypJrR/fW3FOVyGKUiqpysLRSRFAYsX669eTMJ9a41i682h1ejhz28iw9U8oWlNPJuoCbRGjeXA== X-Received: by 2002:a92:5b0a:: with SMTP id p10mr6495424ilb.264.1586543236403; Fri, 10 Apr 2020 11:27:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6e02:e13:: with SMTP id a19ls1225474ilk.8.gmail; Fri, 10 Apr 2020 11:27:16 -0700 (PDT) X-Received: by 2002:a92:d3d0:: with SMTP id c16mr6542671ilh.22.1586543235960; Fri, 10 Apr 2020 11:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586543235; cv=none; d=google.com; s=arc-20160816; b=XaVF9cFkMupSb3xBHNqKHbc71nZToIudKtQ39hNYO5Sj+hjZrSSnhs0y55WwE1y+5o 50rfvQ2MWHepzzVLw1YI+wT8l5iG24OCj9773GlPXN65PATh8lcFVMGx4hF3dlR/QwBS 0zTMg41jKJphllerCo+X0d70/WyUD7meBLxUtGQSd6QoTjSViL+vqyhOMc2RQ7+BOdHx YdYaNujhRCSVEmPjSZYyx5FAyUGyR7yxzM0zd3o12XHRRhtl6f75v/qrHrTomeWYrD97 mvrF5TNuqUpJMnUoZnSz8aWSaxdi4RQ28qSBnmrrvR1/0zrMQfRHegEH6hDf1utIADQ1 npwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RDC+S2pPClJt5MdFcAtW3zyRo5LPh1rQa69WeWQdF5c=; b=lQt7l+NdaBxQ+cysHV2JxrYzusZXZRG/bV58WJmGBX6OAlzWV8bBfN541JXSjMcz+e l6Oomb8LGLCIXVKVI+aotLS8yO3KVhR7r7Q1AxYiNH5eGYiIIk0QLE5QD3YIWoyo4l/C 89eSplN3DTYSg4Fb9pe8Y5VKkGlrmP1W5Xf16WeXqDBfRnCg/LF1gWzi2bray4dMPmGT KGy7cw8iOmvf7hT5Dg9P8oSQGoHReHcBMFncno85zxp8ag3QV5oPNqIgq78a3QfBo1Y/ 3jS8mNXFaIIgnKZ+XusgdZRiCslbpjyom7qTAEuhKwgf0k8U78eorDveqcQI478UEYsF 7Tzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=on14pUjH; 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 l13sor2395307iol.75.2020.04.10.11.27.15 for (Google Transport Security); Fri, 10 Apr 2020 11:27:15 -0700 (PDT) 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:8d8d:: with SMTP id v13mr5948511plo.260.1586543235176; Fri, 10 Apr 2020 11:27:15 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:e854:42b6:1a5:a40e]) by smtp.gmail.com with ESMTPSA id w90sm2214694pjj.2.2020.04.10.11.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 11:27:14 -0700 (PDT) From: Jagan Teki To: Tom Rini , Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 3/3] rockchip: Enable SF distro bootcmd Date: Fri, 10 Apr 2020 23:56:31 +0530 Message-Id: <20200410182631.11951-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200410182631.11951-1-jagan@amarulasolutions.com> References: <20200410182631.11951-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=on14pUjH; 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: , Enable SPI flash(SF) distro boot command in Rockchip. This distro boot will read the boot script at specific location at the flash and start sourcing the same. Included the SF device at the last of the target devices list since all the rest of the devices on the list have more possibility to boot the distribution due to the size of the SPI flash is concern. Cc: Tom Rini Signed-off-by: Jagan Teki --- Changes for v2: - update BOOT_TARGET_SF include/configs/rk3399_common.h | 1 + include/configs/rockchip-common.h | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index 01a9174bd2..f0ae6e67a7 100644 --- a/include/configs/rk3399_common.h +++ b/include/configs/rk3399_common.h @@ -60,6 +60,7 @@ #endif #include +#include #define CONFIG_EXTRA_ENV_SETTINGS \ ENV_MEM_LAYOUT_SETTINGS \ "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h index b55e09a9ca..d97395db90 100644 --- a/include/configs/rockchip-common.h +++ b/include/configs/rockchip-common.h @@ -41,11 +41,18 @@ #define BOOT_TARGET_DHCP(func) #endif +#if CONFIG_IS_ENABLED(CMD_SF) + #define BOOT_TARGET_SF(func) func(SF, sf, 0) +#else + #define BOOT_TARGET_SF(func) +#endif + #define BOOT_TARGET_DEVICES(func) \ BOOT_TARGET_MMC(func) \ BOOT_TARGET_USB(func) \ BOOT_TARGET_PXE(func) \ - BOOT_TARGET_DHCP(func) + BOOT_TARGET_DHCP(func) \ + BOOT_TARGET_SF(func) #ifdef CONFIG_ARM64 #define ROOT_UUID "B921B045-1DF0-41C3-AF44-4C6F280D3FAE;\0"