From patchwork Sat Dec 21 07:54:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 944 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8569D3F08E for ; Sat, 21 Dec 2019 08:55:10 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id 14sf6734562pjo.3 for ; Fri, 20 Dec 2019 23:55:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576914909; cv=pass; d=google.com; s=arc-20160816; b=XZwWCXDJ0GYjW/2fKXZAqFGezt4PqfuixVeD0KZJIXGqKJ1rjGQLZQx67XinLn4RwC 9hyUJoD6lGGift4MtIyMWSzSoV82uGRTimXQ2bAmFnYofhiOJDwPiLywZtuNMRA8YHgH SD3vVSx9Ha48n5gXUrSDXqZoJP4OWlBOnGyscuzsbgJ4nL46WiZqmgvvRR/LYV0wpjXD 87UvLuTCB5nEcthWc6089rcUKJyLygtY+/FNUTPJuEQjg1yytL6yJkz3du1ov5WcKQOJ UU+65jLCtzZrkP3rP0/FHRK0jX5n1swoegCXN7NQo7mW+ttf9WmsBaWMkqPczRt7YvMi Mv3A== 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=I1xauwLPZLUDXpsw7rF7VImoXX85FitTLpC1PkElKAY=; b=AT7rUy/jiRvaYtrBS3crwaMfAH/nDPA8heT1MaWE9oXkQV9+fTW5p234Gy5Zoh3Sl6 azA+Yd4yTmznOccv2kkMZjfGTZzcGi9tBlUVSaWwB9zAPhga11vjVdFFEjJmy04WXjzk iPsUFImrnbC5WVwGGvFv4MKc6+ZbEhdD6fkKyoqFHvx7vDOCs60VGU0+ZKDaevkCFHtZ tykjQmMQlQGK3dr3O2/N+gc+t35HAQDRMrMNP7AvX68Kro1QD3+rrdfaBP4klZijoktT Pg7HVAAvZ6oGH+DDPywXBlsfuzfNTJkwDbx0L5McR375El37Wi3d+TUTZFvBObY3dWmK rhzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QfZmlyqP; 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=I1xauwLPZLUDXpsw7rF7VImoXX85FitTLpC1PkElKAY=; b=YRBejRcsnz2vr1twFHeI7hEk6K7Tt1x26/t7/EcGoHIFm+zP2E235P8tzN/LTjBN9U bEhEInDnbcueeo7xGMGhgGk8W4ttn5pL/B7TTXh4yDWFL4DjJ2RW0x1YGBuvjJciEBfU g/Pmkobxjo1VesTa7XROK2pJvgTFiQEWzp94E= 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=I1xauwLPZLUDXpsw7rF7VImoXX85FitTLpC1PkElKAY=; b=imZog1PbdY8tN3kpgdCMwO9Qk5RnKiReEBiSpdo5Mc+nCbqfzxfcTNuI2Ab7DGzJ0Z 9ND3Y3JmOyHJQ7Zm4Qkoc6JL11cRd+CDEM982zB249gRwReTyULbgIm9duUlZ8pB2hne ZhQGIqcseiy7sj+gCfPEbBESJmwPz0WKAfcm5zSe2bsRgWGBOe4UZu1RamW+8Lf8P0ph zJztgJDEPMkkCBXa1D4AvEAXV5cERxlzGYdm9dtcxKdsXVbaQgEEfO8Oypn+5XF4p/Op amJaL+xexNTPbkGSw/cIHnu8P4tN7VmYRMSAhL4COojCg9lLV0RRJgbUlgRKR+xZSWOx QnjA== X-Gm-Message-State: APjAAAXkaZhIek6Ck57XhGJvMw21ymceACLf5Dr66ZSV0OrqqOBPOAhn f3W92lOMVv/mpyPuYJYOIpZqDOoU X-Google-Smtp-Source: APXvYqxZy8RWIcE+xpIvSrPmH3OXaGmcD2GFXNsvNnnPlNfLAg214p1Es00piTc00qN2K0EauUTuMg== X-Received: by 2002:a63:1908:: with SMTP id z8mr19464179pgl.350.1576914909267; Fri, 20 Dec 2019 23:55:09 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8048:: with SMTP id y8ls3047240pfm.10.gmail; Fri, 20 Dec 2019 23:55:08 -0800 (PST) X-Received: by 2002:a63:604:: with SMTP id 4mr20168483pgg.406.1576914908684; Fri, 20 Dec 2019 23:55:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576914908; cv=none; d=google.com; s=arc-20160816; b=KZyCFwUTWE9CN89yQJyDvSJVmWoxKMzUn0NvnZWUS1FhTGIEw/Z7WXY1D9RwNVEgQH m6/aLV/iZfAQQVIVH3ByFETp5DTtMxwDfvodUsHOJj8NbGpDXXssw2j0Ce7Tp7lbcUYB ODZDuYJtMAP7zdTVUHQbBcKd9H++5NZjFTgvHozYMfp7qMCcSKQEsckDSZ65xehxxbOB DwvEKXv12+9dKgdZ6Ncdu33ia8a+jkLFVjBEeU6pvJ5Uw4VEQepoqbzi/1jyncY9qyYR rJ2w4etsu0IB4cBwgLbg3knkLcWtXfVzGc54FAjFyTK/LKpWRJMRq9Dskcyg1mIMhP7E jQRQ== 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=WGB90yvfu/qbXtiS6a4vXKmXBIXqxoljZrUUSd4jX/4=; b=CV8VQ4RCHvVKCTMrYfkaBXgeQ4LFnrBJbAIxYF3efqDUwZ0Uze+BEvUP03csJ9Zurd 8TXtqC3oeE1gNQfLZzxBMufgvy5RWiz1iNjL6HYbmxQf+lkBiX4LoqgD/bKGVeUReKsV +qfMxz9oEhTiLY872TXjKS8qJjZveM8B8Xe5+Z0loK2QmC4j6HQKYDsL4lwRPjFQ3esQ 1odNcsQ5RooywEw4VtIi3iLd4Ovcw9IOyM+pPhqVavBgmnnsFqMkvAaD4uxq3WcKrlop fQJYsisanOgWZE/wgOhum/0EvR5KTOM46xPJLHJPYqHa2X1qLcofV7bfZwWiJ3zCW5bQ vV3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QfZmlyqP; 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 k11sor13320725pgr.29.2019.12.20.23.55.08 for (Google Transport Security); Fri, 20 Dec 2019 23:55:08 -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:a63:590e:: with SMTP id n14mr19041557pgb.10.1576914908356; Fri, 20 Dec 2019 23:55:08 -0800 (PST) Received: from localhost.localdomain ([49.206.202.177]) by smtp.gmail.com with ESMTPSA id i9sm15551018pfk.24.2019.12.20.23.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 23:55:07 -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 06/11] env: kconfig: Restrict rockchip env for MMC Date: Sat, 21 Dec 2019 13:24:35 +0530 Message-Id: <20191221075440.6944-7-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=QfZmlyqP; 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: , Rockchip do support SPI flash as well, so there is a possibility of using flash environment for those use cases. So, restrict the current env offset, size for MMC. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- env/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/env/Kconfig b/env/Kconfig index ed12609f6a..9416a70022 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -488,7 +488,7 @@ config ENV_OFFSET hex "Environment offset" depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \ ENV_IS_IN_SPI_FLASH - default 0x3f8000 if ARCH_ROCKCHIP + default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC default 0x88000 if ARCH_SUNXI default 0xE0000 if ARCH_ZYNQ default 0x1E00000 if ARCH_ZYNQMP @@ -511,7 +511,8 @@ config ENV_SIZE hex "Environment Size" default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91 - default 0x8000 if ARCH_ROCKCHIP || ARCH_ZYNQMP || ARCH_VERSAL + default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC + default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL default 0x4000 if ARC default 0x1f000 help