From patchwork Mon Jun 1 20:42:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1323 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 71F613F1D9 for ; Mon, 1 Jun 2020 22:42:39 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id s7sf852264plp.13 for ; Mon, 01 Jun 2020 13:42:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591044157; cv=pass; d=google.com; s=arc-20160816; b=OARUjEVsnFWvkrivtONUoqw91SpWTKniU4MNxfdr4Yb6Z+c6HwH7076WTcfOuUtjhN VVUQLI7Ofb2tpXHWXe04bfZ8l7yecfWJQZV0f0DgWWs59WfaMBAZNNTg/OHowUwTbIaP 1Aidr+SH0cqI+7NBvqxTP1IA8L5CtPHTfNTDjl80Cp7SNN+Dr2s1xq6WbbVuEidZtdfe ARecd3GKQgp8Yv7Rgw1eW4MPuMVaNRkiFGPtN1+Bf/31oVbA9uPWRt+1UhoTzM8UZKdM tI6/BC/y4XMZsJX5iPF5aQ1j6d34WtW8qxlSEpjZSc8drZ/SLyWO9jXx5GhJkLn/RuAP QLhw== 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=f1pggCEcMoVkLfkTduM6k0XM8y5EoD2spH49xQf2T5k=; b=EtVVyaDj+jAULkaNMHzabqqZcxUJyR4AgmkfAThjTKARrsX2w7UdJuWdXzWfUdYmA/ m2SF+7Fp1TwAxekvreTxzUwQ97x8WV8IkXZ5ycpCUuvi2oJTftWxxuSSue0KZwRdmqu8 Wze6g4MvExVaxzOfGeJUQcAvLsBg/fMeh1h+5wGPUwH0FbhV2+lFkgpi7e59F7pBco2p D6fainIBeqPXSL4uo/4LJ/XU5M/cUDbPWfGRYZuYLhXqaiJZcA3vtv10XcEC4p1K+LCG 3sJum6V3EVyhDlgyBq2NG80AaWMzxnr8hM8XURz42racP+tXwqkPTlI8Iwb7NEMeO4N0 YMoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lpM+7QC7; 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=f1pggCEcMoVkLfkTduM6k0XM8y5EoD2spH49xQf2T5k=; b=GFAGdoHsE2iFmwg3JVVI6Zy5aWloB/QAWbBLguvmeUT+BhOAk4hzQ3PF1mhuCe/Fvx ui5VgoxrfjrMbFTVx1ZRKoW9EIwMdiDQCYvIMc5xOSUtu98gxau3kKGkAJ1GQxpJxsUM hRT49v/oQwMqJRWPVlGJ7e2WO1xxKcGVLgI0g= 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=f1pggCEcMoVkLfkTduM6k0XM8y5EoD2spH49xQf2T5k=; b=GutGb9kalhWXAEfR0QXKjfB/zOtAnDd23I8xiAv7W5WdMNM0hW6xkw4I/AtH2ut25d Yg2Q7FizgMopprHl3AVnrI/CJHGsFg9iD2GXs+8UAFctN0I4wgXEoYAklIOXKRiDnfjD htjK1kJbbZwWV9hc262EDC27pm4tQXjopNolWmWKNFkSOg163aV+ngggoOH/030Wy/lJ fNF3b9/1wRfGsDfJqXIRKX7S0d5+soqnxoh52fWXFC9U4avKTYUukVoei4OZJK6/azLo Os/GbV4egw5VMPwpGWcyHDiGXlMqkDFByv7EnP/YVn1CPnlaizYYz+7cam4570lIcQVc RsHw== X-Gm-Message-State: AOAM5302RbcMLS4OXjH0eIdfxX2rBQkUt4NcuuflV/p2VhrFLH8X0EHh /BfHkDO/sM4hm7N4YZKhMQTm8k+0 X-Google-Smtp-Source: ABdhPJzcrBKz5PvbP0T4y0CDmFMgRuQbI2+MR/CF8beiPb9F/2V4kTnrsUdDP25Mxm/pp+fEn5rIWA== X-Received: by 2002:a17:90a:648c:: with SMTP id h12mr1312740pjj.229.1591044156975; Mon, 01 Jun 2020 13:42:36 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ab89:: with SMTP id f9ls5187751plr.3.gmail; Mon, 01 Jun 2020 13:42:36 -0700 (PDT) X-Received: by 2002:a17:90a:c004:: with SMTP id p4mr1389616pjt.170.1591044156515; Mon, 01 Jun 2020 13:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591044156; cv=none; d=google.com; s=arc-20160816; b=DhpxaMcFOhvRhss9BQYzIUTOtYqy1y14qfBZEhTHmliWiouUuhO7ZOileQRzgEiP6b /oJ2ayoaTMcM0McTwFA9Xd3OzS4QeyK/we/6lgS+QvCyeeKNtIOCjT2MRF6i905QfkKc 6CDeSEqW9r2kby5tHThzHfUTaJ9MsbDCkEsIf9TOpBGUUZvSEGbDT/5bfBPC6oZP0g9t uWgNrek7cDQpTX1e78cvu2dJLBN/7yDVnOX+DnYjnjmlPHdS0BASqZxuZ202NIMwDZiA zJ4hGT4Yb10VApMO1InO7P8QsK3rEkBrcPuFjmkcrZD18fiUxF7frB76HWJA5cBUWjA3 eMsA== 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=BNexMqhtjdTh16Uq9oCW3PAfLr/10uATBtmxs/MmdRw=; b=o1gBcs5AOgEuTr5UjyuFW7Dq8z8lF0LVgvvOuGDnIyL+W6pBua2GA/Ow4r1N9ydGy8 Ef0Z1t0q4jyTEWK/3Ozhac6fuCnV0J/1mlqidFKlqGLr+EDhpSAT9d+Ct04znimyCwZ4 hPkxEQbgVC/0oQDz0ziBPav3wy/Z8YxctA6gcwFoeL0sYi0ko9x9/01qhQxUZtk9Z1Pz 9hsR7yvWOAN04D8fpTac76gdEkYp/NYxoHUPl8iCGVoX+rRQaNifOqX/jOlk7eNV7Q3b T5dCJuO5O57UorJ68LyIae8UOU8j2L7byNGEYndilFORNnmbombyWgSOcUdmQpf89jnO uzcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lpM+7QC7; 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 my14sor381911pjb.1.2020.06.01.13.42.36 for (Google Transport Security); Mon, 01 Jun 2020 13:42:36 -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:90a:1919:: with SMTP id 25mr1196124pjg.7.1591044156215; Mon, 01 Jun 2020 13:42:36 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:658b:ecbc:7ea4:1996]) by smtp.gmail.com with ESMTPSA id k7sm283581pga.87.2020.06.01.13.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 13:42:35 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass , Hugh Cole-Baker Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH v2 1/4] Makefile: Drop to handle rkspi image type Date: Tue, 2 Jun 2020 02:12:10 +0530 Message-Id: <20200601204213.466120-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601204213.466120-1-jagan@amarulasolutions.com> References: <20200601204213.466120-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=lpM+7QC7; 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: , On rockchip platforms, SPI boot image creation is not straightforward like MMC boot image creation where former requires to specify tpl, spl in multimage format in mkimage, and later simply do a concatenate mkimaged-tpl with spl. On this note, let drop rkspi image type creation via kbuild and let inform via rockchip.rst Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 3851dd9fa0..db3b6b9991 100644 --- a/Makefile +++ b/Makefile @@ -1438,22 +1438,15 @@ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE ifeq ($(CONFIG_ARCH_ROCKCHIP),y) -# rockchip image type -ifeq ($(CONFIG_SPL_SPI_LOAD),y) -ROCKCHIP_IMG_TYPE := rkspi -else -ROCKCHIP_IMG_TYPE := rksd -endif - # TPL + SPL ifeq ($(CONFIG_SPL)$(CONFIG_TPL),yy) -MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) +MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T rksd tpl/u-boot-tpl-rockchip.bin: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) idbloader.img: tpl/u-boot-tpl-rockchip.bin spl/u-boot-spl.bin FORCE $(call if_changed,cat) else -MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) +MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T rksd idbloader.img: spl/u-boot-spl.bin FORCE $(call if_changed,mkimage) endif From patchwork Mon Jun 1 20:42:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1324 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 65F423F1D9 for ; Mon, 1 Jun 2020 22:42:44 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id y16sf6568255pfe.16 for ; Mon, 01 Jun 2020 13:42:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591044162; cv=pass; d=google.com; s=arc-20160816; b=BQ/MievR7bb9ZUnFVPKdIzUXN+GuEftfrher95VLHncBpIqcRZNd+MwXOK+FkIDLki rpYIXL9pWArrPF11ZcTWcKNp2QJIb+7zZBQOwMJ1aM4v1eeT3UGILjgO+jWjeOtJLxrU +MRTgIZlgatQ1+OsPjiwE9iKaYtzuvxl/RXw/zXMt/SDn7fxAqZBuFNeSUYDKyytwx6y Ab80U6CtS5xuVMvJq2dIco1vWsJaqt8cIsrqvY+1kO8UC5Kgqpxy+/cBMjXA6horYPMI xEx2XdhMANB+ov42bj6abCLrbEvDDZIBzfFT9zef2NbMB/8ncBkB/hALwjpYc6Lu5afp 2iww== 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=OeoOI18wuw8pkH708PcMu7SiPcQFLZwv4LUmHbxGuRg=; b=KlFeiatQhMNi1EgC4gfkXRf9ek5icSbnVwDHrEeKMNZdW345o4ZFlAj2OY+doK/t4P DDyf8F8NNsvPK6gfO7ke5QYLip7ZnqEr/srSUPhk3Xfx45+P+287fvJXa9YnjSPqE+3O /KnvH50vwlE+bgKyiQbNGTCv9zyrp3sz1ly+rAOGBbUTrqpZDrgt1AIYqvJevajN9Wpy lShosVUmLzS8/T50vcUygpc8+dMy/vZncANXLz2lTOpHWXXbp466SBLPjW7c4TWspw53 Gsws7LaJ0kmoiL0VZTLQBPOl1UK2BGGLz2I1q9TKdPcpfEtu3GPE+mli+SYayCYjjjsy 4uIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YVRUBa8V; 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=OeoOI18wuw8pkH708PcMu7SiPcQFLZwv4LUmHbxGuRg=; b=gn+SqecjWCeLL1n5QF9MTIlwjmfR+78tNOF57/5oxoLlf9x7Nc5W4d/y3VHjKdmgaN wd1tU+ailMKzz3rQrfVcfxoRleBPj7wBYEHt6ygx6ZHjs6w6gNizapGfYnMKOdR0Pd0V Z4DtApvlQH1sWrwt7S+1VIdgALLfIW5rWcLEw= 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=OeoOI18wuw8pkH708PcMu7SiPcQFLZwv4LUmHbxGuRg=; b=VaRsIEz1gBf6whM1mZWoWsp1/Yl/YIIt5rb9LAEsbic+pjDVL0zsqSOe0tPBRj4hL0 fx/DtbZJtB1i/aNe+PUXqTUHHWa3s7yAExLdm2RF1s+m3nZGwvg0t1RVbsx1fnrkId44 xLdYfsbtN1shQkuw7yxYFqJ77YcgVUohiDO4vuG4hYkRlKtLEKGN4YUS62rd/pAzozO5 spol5cSPFaUO0MAtcAidPoPMF+CteqwF6bQNQ2C/Rc5xz+5f1eLcdUzzLyZELDXMyOd9 x8VCHdZ0iLbeH99+b/3HnA0Cz9eX4m8EpJf7QQ2Rcmgm3ORX58JciVzpt+TmK6mSHzH8 IXoA== X-Gm-Message-State: AOAM533z2BpeyWle0cZ0briA4zdjZyuDtBXH3fBn514/WMJAe5UbX2qv JTlaJxxgE0t64N6Lq8mb9MqFdA1m X-Google-Smtp-Source: ABdhPJwPr0BhFS7sKjKHBXH+QIz2+ztqp26MGSl/pWBwrd7JwDsrIM0sX72DM6Tw5tWk8qedvMVt3Q== X-Received: by 2002:a62:5285:: with SMTP id g127mr22171583pfb.222.1591044162492; Mon, 01 Jun 2020 13:42:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:668c:: with SMTP id b12ls4510537pgw.10.gmail; Mon, 01 Jun 2020 13:42:42 -0700 (PDT) X-Received: by 2002:a62:fc86:: with SMTP id e128mr21176448pfh.133.1591044162024; Mon, 01 Jun 2020 13:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591044162; cv=none; d=google.com; s=arc-20160816; b=rilsrviMaHVLyIXPlWw7uwJoT1CG/r4WdCLoLhBZXpwe8PGhQTBRPKODNX9jFDsDZH tHUrzUmhdPHALb5NuUmV5kCYc3Y9RI70grvSu4Q1vKo3rWtX7wb/Vm1QD+iJ64jVfOor Ty+91HlfF0tzhFjvZwOJQ6xjx/DRSeSBMLM7hio7x1fbXa/urwCgBtsqkM7RyhF4KeQA BksunSG/ycfZl895ZgY/QPdRCcdnDseCUIuzzoxi84bg1dNQADTE0vlOqd6i20cAUqtB bQ1tset5hKjyqoBGhoCRMovWnHkwScR7JhrJibfC6InCNS5t2kUQwC+lWBXJIV1XT2L6 a+hw== 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=1663iTZ5e5aTWKWbP4uDTDzqUziSAFV8rcNoh8d/2XY=; b=nGIzyOP9bANPAKL63OycNsFkGHXxPpI5i2YhM/2ARIEBzheXMFE4GkTN+ZKqFILJc2 Eim/OiVj7WTHXK/IZDnCNMj53f3uTyikDE4hkPNhxjnGIa4itRtGGhUDpcy8wV5Ij0TC Q95CZUKb9KPlW6bN/n3ChPhqG2ImnHjm/K0vhQECBcXzfkjdx7V2dSGRIUAa6Wlh8XUX Pxmw/+VcyQkcvJ3l+rIqOHYBbPTqa+cnduFM1N0UXDpno/GEGEULJge9t49JcFOJjdfn st4uxldk0nBX+WRKMfCpwzUaxD3e/f52mI71KfL7mtFqGci9MzvMKmuujQGCj8G3n+9Y FtJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YVRUBa8V; 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 204sor754115pfy.72.2020.06.01.13.42.42 for (Google Transport Security); Mon, 01 Jun 2020 13:42:42 -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:a62:1a45:: with SMTP id a66mr9533075pfa.54.1591044161735; Mon, 01 Jun 2020 13:42:41 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:658b:ecbc:7ea4:1996]) by smtp.gmail.com with ESMTPSA id k7sm283581pga.87.2020.06.01.13.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 13:42:41 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass , Hugh Cole-Baker Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH v2 2/4] roc-rk3399-pc: Mark default env from SPI Date: Tue, 2 Jun 2020 02:12:11 +0530 Message-Id: <20200601204213.466120-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601204213.466120-1-jagan@amarulasolutions.com> References: <20200601204213.466120-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=YVRUBa8V; 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: , Mark the default U-Boot environment as SPI flash since this is an on board flash device. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- configs/roc-pc-rk3399_defconfig | 3 ++- include/configs/roc-pc-rk3399.h | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 76e76c160e..18c343f9f9 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_ENV_SIZE=0x8000 CONFIG_ENV_OFFSET=0x3F8000 CONFIG_ROCKCHIP_RK3399=y CONFIG_TARGET_ROC_PC_RK3399=y @@ -24,7 +25,7 @@ CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="rk3399-roc-pc" CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" -CONFIG_ENV_IS_IN_MMC=y +CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git a/include/configs/roc-pc-rk3399.h b/include/configs/roc-pc-rk3399.h index d4cbc3532e..59fe22289c 100644 --- a/include/configs/roc-pc-rk3399.h +++ b/include/configs/roc-pc-rk3399.h @@ -13,10 +13,6 @@ #include -#if defined(CONFIG_ENV_IS_IN_MMC) -# define CONFIG_SYS_MMC_ENV_DEV 0 -#endif - #define SDRAM_BANK_SIZE (2UL << 30) #endif From patchwork Mon Jun 1 20:42:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1325 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E59BC3F1D9 for ; Mon, 1 Jun 2020 22:42:48 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id l144sf4811702pfd.8 for ; Mon, 01 Jun 2020 13:42:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591044167; cv=pass; d=google.com; s=arc-20160816; b=PqsGXivMAhvhuL6NVXeEM4uwx7WzEIPnGAef2F/GVKxVUcTKNhYJj83eQian0tAiMs AZuwMw4Y7e1GTIsycR7d8Ug1OfyVA46mZyXRSoABEsQV7FKtA+3Sp7JnsKV904futy1t EsU632rc/zKs1dZxEGWoV4SiJ0gvay9KOhVISh4bqyIo2XbPZaj67JpjONjVMDXKOUTi roa5pNJU8LQkl9hzS8jWd8YrUAm9iyFbjW6FggOYrixHQa9esPGN9sWtIPo9ykDEl63+ E54so7xagJKnnZHV5ikXjyAqxtKb27Xv64XCYjbILJZ9GgP15e5DWIaMdzXKHAMFx1m6 hScw== 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=dim9clgQF+4mRxJBohX7xiQMYpXHolHTeI0bbwYUnhg=; b=mh42mT2oYciRhZmQM4LczZQTwVbDyvwr/PfnBih/jU6Nc9+rWBdkM4iBOBggzsQceD euzpzFr86tY94qAgF62q+Bzf3J+BsxAVT75Ip8+sDdYcBGjtNK++aLEidM1Yj2FUrOAV M4be8wzQMjSFVpf/ee8AxPF/0GTWHZq5YNDZ65ruscAnWKu86d1H4KMWWaDIi8jWouD/ rXbLzHrL9ICPmmOsX6KPyOYPcQB6isMcd1mgNCh4KHz5zzueGUYIaUPkX2l9FNpzhP2C UnqcO464Eqsz2jg8ZxozfAI30rRPKC9Em6OrpAWfzccZSiNDoJf2/Iexxan8G+G/oAdj u5NQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n2PD2ota; 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=dim9clgQF+4mRxJBohX7xiQMYpXHolHTeI0bbwYUnhg=; b=jeg6KpUSWaa+Eth+GGFVX/mEzUaZrSIgffS7fOMSHGE0mWM8Awtl5jgac8zC46Uqcf 8YlJAjGVM+J2tHN41sKiOL2EaJkVs4NNtzH7NtjWqfVEI/Gjrb5+oFoA4KLIPYl+mwuv nXa5scLaTMfRJ55Pi8fPE/XPROcFyVKDEUWfs= 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=dim9clgQF+4mRxJBohX7xiQMYpXHolHTeI0bbwYUnhg=; b=aEVIzmH1iovhip+ZOEKtPqLw4Pu6hL7f15xobxu0SsyVz9309AjiE7C689gVB3S7gC v0pg/Odh11H785hUJx2iR/0dYbjoi7Lj3BM30ptDo8Od/681jPllIx/S9Cafia+Mb5KZ +n+BMogqrjKtmhjuBBK8nQWh3pkAir//+HClFjXGKqFQEWGvgf895Q8Xsn5eIDH0MGde v3tIXUlEXN0JsbcoRhtljHhrwCw/iqYgQ1bEtjcZe1ZVtqlCqoX/C+0sHV1cYs2BYJhA +zDzP99f20mL8eo0izaCFrRHgtZ/zgkKkAnLGjcpLdkaSxsxML4GIexxyxaQISbqtzrO miOA== X-Gm-Message-State: AOAM532w3viaJhgKfc9KEEPQetl7Sm8Bwr1iRTUXK22zmIBc+xKGWqt7 zJg3ArfLc6o1TFCipS1ervYXE1Xo X-Google-Smtp-Source: ABdhPJyHj87RYOyR1u7PWGvspOAvjqWGIIv7ItFlNO7jFN8xFcNGlwQnj1aNdvecbQnUWJUVGhoDYw== X-Received: by 2002:a17:90a:64c9:: with SMTP id i9mr1298258pjm.135.1591044167746; Mon, 01 Jun 2020 13:42:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:3c1:: with SMTP id 184ls3505687pgd.11.gmail; Mon, 01 Jun 2020 13:42:47 -0700 (PDT) X-Received: by 2002:a63:d04b:: with SMTP id s11mr19915473pgi.384.1591044167252; Mon, 01 Jun 2020 13:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591044167; cv=none; d=google.com; s=arc-20160816; b=AL3asfBE2FA82IqFqkha39kpMA1qPQHnzu+FL7AnwA3DlZER3suST/LfNKNOZaJkZs L4uufeSdqgCOFG668wA6AOMhaNb5hJ4hpUnICFqMl52j05KuUzdspZ50pbPye2xXQfkx C0alaBF7HOZvOqXQumle7IpNOE1mbrBH7wGjgAX1Rqa+tUSY4/lBHsgyuTOLGO+Qzsw1 lPmWfbOmdA/POgItIuLxCn53MQJw8ODpclRcON9QJpg97QB60ccmaatNycT/s/OnnBq6 8YlOjuUHnj/YSh9ZEHyFlrHNMCX5Pf+4EImfsX6qQD/0iJwXhJgDfvjcQxfKh2M8v+UG 7WLQ== 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=DOxyptf9FQQNcFAfnmKvWlTL2iTcXIqsnIhBYOAg8BQ=; b=faE+G4f6X+tWpbAe5m2UGrdQ9N1M3ZHFa9Ct5rSYkiqHZnAfWUWYsiHGvDxSwhyENx outL/NM4pYc0r2Yt/Egphld/irqp7IVUjUaPT16D9ZNoiqTlqQwzvkZF6nxBOfuEKcCh LMPbX5/6gVhbW11/rz6YFPYCUbVx8EwVVPrGFxRGHDcd4yC5gOMhhml7w/NjSQFYEarA VcsfzT/cvxJdvI7T5ZunGGAeQLxqFE4ZuypwL0JZk/Hf4yETKltu90L7wadg8fdVHvEC a3pP309JI4xxkkKyw/m97nRU52wy5u0TvoIgnWR+/yzj4QIcdLZhHWeoDQqJc+4Bg/Or dvGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n2PD2ota; 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 u8sor330842pjn.34.2020.06.01.13.42.47 for (Google Transport Security); Mon, 01 Jun 2020 13:42:47 -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:90b:110d:: with SMTP id gi13mr1316899pjb.173.1591044166947; Mon, 01 Jun 2020 13:42:46 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:658b:ecbc:7ea4:1996]) by smtp.gmail.com with ESMTPSA id k7sm283581pga.87.2020.06.01.13.42.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 13:42:46 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass , Hugh Cole-Baker Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH v2 3/4] roc-rk3399-pc: Add SPI boot Date: Tue, 2 Jun 2020 02:12:12 +0530 Message-Id: <20200601204213.466120-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601204213.466120-1-jagan@amarulasolutions.com> References: <20200601204213.466120-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=n2PD2ota; 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: , U-Boot TPL 2020.07-rc3-00090-gd4e919f927-dirty (Jun 01 2020 - 23:45:53) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride lpddr4_set_rate: change freq to 400000000 mhz 0, 1 lpddr4_set_rate: change freq to 800000000 mhz 1, 0 Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2020.07-rc3-00087-ga21e9fd385 (Jun 02 2020 - 00:09:45 +0530) Trying to boot from MMC1 NOTICE: BL31: v2.2(release): NOTICE: BL31: Built : 15:05:37, May 12 2020 U-Boot 2020.07-rc3-00087-ga21e9fd385 (Jun 02 2020 - 00:09:45 +0530) SoC: Rockchip rk3399 Reset cause: POR Model: Firefly ROC-RK3399-PC Board DRAM: 3.9 GiB PMIC: RK808 MMC: mmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from SPI Flash... SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Model: Firefly ROC-RK3399-PC Board Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 12 +++++++++++- configs/roc-pc-mezzanine-rk3399_defconfig | 3 +++ configs/roc-pc-rk3399_defconfig | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi index 141dd0b306..fc155e6903 100644 --- a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi +++ b/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi @@ -12,7 +12,11 @@ }; chosen { - u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; + u-boot,spl-boot-order = "same-as-spl", &spi_flash, &sdhci, &sdmmc; + }; + + config { + u-boot,spl-payload-offset = <0x60000>; /* @ 384KB */ }; vcc_hub_en: vcc_hub_en-regulator { @@ -40,6 +44,12 @@ vin-supply = <&vcc_vbus_typec0>; }; +&spi1 { + spi_flash: flash@0 { + u-boot,dm-pre-reloc; + }; +}; + &vdd_log { regulator-min-microvolt = <430000>; regulator-init-microvolt = <950000>; diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index 1c1539bcb9..4b98dd9cfc 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -7,12 +7,15 @@ CONFIG_TARGET_ROC_PC_RK3399=y CONFIG_NR_DRAM_BANKS=1 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_SPL_SPI_FLASH_SUPPORT=y +CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc-mezzanine.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_STACK_R=y CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 +CONFIG_SPL_SPI_LOAD=y CONFIG_TPL=y CONFIG_TPL_GPIO_SUPPORT=y CONFIG_CMD_BOOTZ=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 18c343f9f9..e5ff570b87 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -8,12 +8,15 @@ CONFIG_TARGET_ROC_PC_RK3399=y CONFIG_NR_DRAM_BANKS=1 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_SPL_SPI_FLASH_SUPPORT=y +CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_SPL_STACK_R=y CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 +CONFIG_SPL_SPI_LOAD=y CONFIG_TPL=y CONFIG_TPL_GPIO_SUPPORT=y CONFIG_CMD_BOOTZ=y From patchwork Mon Jun 1 20:42:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1326 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A17B93F1D9 for ; Mon, 1 Jun 2020 22:42:53 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id be7sf838398plb.21 for ; Mon, 01 Jun 2020 13:42:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591044172; cv=pass; d=google.com; s=arc-20160816; b=CUHcUkcyD63VhBixsL2OX4kHtygWQxrraafBotSBdoq3/172mkVLuFby0iXLZVY+Gw xvLsQisjHnWwD8fKfNhor7ZJz0y8faa3IKkWzKyl15pNHg5HQPkygNUCaB92e2LYZ8Kw EzLDVyBb0UNI6cSZ5bCSqoBtfq6XTyySg3StEXzMC8ckxcH8JEl1cGVSjhvvv/FdjLJF 5Yopr5+r0+SuRSyy3S6AfO1KxPU1JHplnkpYRRlPj5fjZPMUmolqN/urvP0Uj3cCYMNM oMV8mQFUXd+zdtJmMQNpSoH0oTlnVOoopKO+5oU5gUPrJOU/lxqNDwe9n/NdQJfapiQt PR8w== 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=H6baRyNalHeb42a5eTng9oWkPmK2zEft1x8nWq8+LJs=; b=YZoW28wZotZ9tZzSAOYNUUu0EyjsLYi+FTyqEY3wXxTLQWrtR3AB9Vs6YNfIovolMG lFOuiIw6/dF8urotP9ivmx9FGrQKpmmlt21JBRLQ7kMOOBHRokcInNOcr7Y1JWfkDAQS 0Qb3Q+L/AGaDdN+rwuTvUg/+qUfjQK2OuhFfDrY2oSx7kZwz5lmTQk5Vsh7x33PJ0JW6 LUN6OBn9jlkT3v+1SbX86dMMwZgnUfyuBdZJZAa9Gqm0JjuSKMWUpJQAJYJ+HFzVyTnc 9/PPjbECuTzamKHKkWApIpdW3pnQaBCb69A3m2uLLiO/w9ZarWuRPyBQvFoK4fyAEfCR uJLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dG9IOu+U; 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=H6baRyNalHeb42a5eTng9oWkPmK2zEft1x8nWq8+LJs=; b=ExtKW8ZF3x426OCHTV7KywC+3p4sBgwocfMgaQ9g09Hw5aV/mK0mQjA7G2AEwNobxc 82AxSiBJduwUvbm5Xnu8pM9bsAVCl3gLv3XgTvG+xjvCLLR5o2rXGiieN4X0rwZX31dq fdsNUeO3cN2JMoGvlmkC8DK/BX/B3DEG6/D1g= 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=H6baRyNalHeb42a5eTng9oWkPmK2zEft1x8nWq8+LJs=; b=gU06PO8r+rmKtK21IdG6RbWwu/L9cw9+rOM03GmmShyvzuM+D5tbjN+qEdsDDu/HFK JZK3+AX4T3lYQqWJsCeGdpQNo14rBDUcUBRVMBxsnHst8GuRHaWrSZnBZrqsyJtWee7X LD1rh2whovCCAtrkIYfjwDMpBPPPIPNB9CeHiTqf3vgucYNpLmD4rXV7a7x3syi5y1XL l16I/ES6ZdTGRfSptngeObNT9KtfaQvV22/sjJDehL/lw05OCoSF5tMT//MK+laObI0n YNa2OYN8av9k9IIBVSbh8lc8IW6GayP972L4EOSUpUx+IsdPy2ozw38q6f09T0BjpCJF NYFQ== X-Gm-Message-State: AOAM533MBSQpfAHHBVfkdvW4Kc5KUfXKQFo/8APg94V8hxCc8/yTcGzf aFd5nvuU/gjKnvdCQnk0MEnT2mZv X-Google-Smtp-Source: ABdhPJyfZ6LBSkK6Vk5Ma7bgeVsJ1srx8zOBOKi2E6J5YBBOxEi8lc1og06tlI0WzIHyQtj7h1ZggQ== X-Received: by 2002:a62:148f:: with SMTP id 137mr21380797pfu.130.1591044172437; Mon, 01 Jun 2020 13:42:52 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bf05:: with SMTP id bi5ls4995059plb.5.gmail; Mon, 01 Jun 2020 13:42:52 -0700 (PDT) X-Received: by 2002:a17:90a:2070:: with SMTP id n103mr1328087pjc.109.1591044171976; Mon, 01 Jun 2020 13:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591044171; cv=none; d=google.com; s=arc-20160816; b=lKZj7tLQS9MzAUOfB3eaNW4FKaE4wyPxJPZ9spiELHiRXqajcenNlx7G2H7cWLrq/F w770m73DU3ddvU+Ds7ClzLLMP756gqPtN203BlREO3fezWIGCr5F+UrNWr0XXQK9PBdS NSzOV59wieJr6QA2md7NKXBmJOAp/Bwou3E9nG8N+wm1st7q6eqQ76VpI2r0sPMlYVd0 IkowztQtmK/fZy+IwKmrdAG4h9Q+Mc/SwLEwBdWSsb7MuwAL3guXOZdQ/0b5E2sDIatB yoJFkJApaBQ4iZtSCbllsruAWs9DkDlUU/sdqstSOsILGonhKvb68Kjt7Si4s+kar0yH ZE/g== 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=HH7Sg1d2KszYZfdSHi2ym0vvLWaCRPg8r9+mwlDQliw=; b=DYke29a6k18sT8DRiMzKeiSl9q71kqfM5k+IR2kxfGvsq8f3nCtcbKaHpC2wccIrxk sF9ZTIgFmZCvQDUfPaYGBMZsDZdIOCqn1wLS9cfPBkvnikKbXVGr6ySQyw7HAwV81C+t cooBfJTfdOAUEdZqFF9lAu9b4isi8uTEPgfwZYMZUjFu733DrgKJlWU3YHd3+QPm3cto vyptxW/zSTGwDjHDuIXLAOYcjAShxakW/UWhTcqcCNS9mm4idaaed6vB+gPgiHy4Wk9t q9yk5CALgmmGz31RNusnHjjkscMaPhcYd7Dg6kBNcQit+Nufw64HS8LagD6Bs4eaqcEg v/Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dG9IOu+U; 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 y16sor331971pjp.37.2020.06.01.13.42.51 for (Google Transport Security); Mon, 01 Jun 2020 13:42:51 -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:90b:4d06:: with SMTP id mw6mr1397351pjb.190.1591044171668; Mon, 01 Jun 2020 13:42:51 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:658b:ecbc:7ea4:1996]) by smtp.gmail.com with ESMTPSA id k7sm283581pga.87.2020.06.01.13.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 13:42:50 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass , Hugh Cole-Baker Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH v2 4/4] doc: rockchip: Document SPI flash program steps Date: Tue, 2 Jun 2020 02:12:13 +0530 Message-Id: <20200601204213.466120-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601204213.466120-1-jagan@amarulasolutions.com> References: <20200601204213.466120-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=dG9IOu+U; 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: , Document SPI flash program steps for rockchip platforms. Suggested-by: Hugh Cole-Baker Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- doc/board/rockchip/rockchip.rst | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index 7b72fab496..76b228a046 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -162,6 +162,30 @@ Program the flash:: Note: for rockchip 32-bit platforms the U-Boot proper image is u-boot-dtb.img +SPI +^^^ + +Generating idbloader for SPI boot would require to input a multi image +image format to mkimage tool instead of concerting (like for MMC boot). + +SPL-alone SPI boot image:: + + ./tools/mkimage -n rk3399 -T rkspi -d spl/u-boot-spl.bin idbloader.img + +TPL+SPL SPI boot image:: + + ./tools/mkimage -n rk3399 -T rkspi -d tpl/u-boot-tpl.bin:spl/u-boot-spl.bin idbloader.img + +Copy SPI boot images into SD card and boot from SD:: + + sf probe + load mmc 1:1 $kernel_addr_r idbloader.img + sf erase 0 +$filesize + sf write $kernel_addr_r 0 ${filesize} + load mmc 1:1 ${kernel_addr_r} u-boot.itb + sf erase 0x60000 +$filesize + sf write $kernel_addr_r 0x60000 ${filesize} + TODO ---- @@ -171,4 +195,4 @@ TODO - Add missing SoC's with it boards list .. Jagan Teki -.. Sunday 24 May 2020 10:08:41 PM IST +.. Tuesday 02 June 2020 12:18:57 AM IST