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