From patchwork Sat Dec 21 07:54:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 943 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AB0B23F08E for ; Sat, 21 Dec 2019 08:55:07 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id q1sf6564505pge.12 for ; Fri, 20 Dec 2019 23:55:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576914906; cv=pass; d=google.com; s=arc-20160816; b=GpotcKFcdoz/DOXaKNmmbO/NI60Yu5UKuj6gkZ7V4or95Qih0bpBCc2yxYZEjORcgU g03VD4m00Mqn69IqJJAR5jSXjqf6pA9GokgslLxzx6jm1txucVvf0l5XtIhFz8jkH6r4 Y92lTDY35JJ/zHtkx64fDnfW/7mCply5RkajWr+hD/GQlp1D4UqEmExMCTDA4YiEBXdG N6fW00qEzdSeb57W3JYjZFbJC2m0JygLeTokXTiT2Fv7bucUk6gGsbopI2CZLRIusY9t 0y1Z9TgSSiXGzD2/matyt3/NqWPXJfyUu0c18WDMEMPKp/oine+Z9g/XJkt3YfGJo2Kr lPpQ== 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=aSdlyVqgQOdeodSDs2ZmK7NBCHeQdWML4pLVVcnC/xQ=; b=0KlAOw5tTCwTdbUQkkHdurjuWEaMlDTioFvqmX8Na12PtRR6n0kFt+gHL9foiGVyBB KalpoNYZxMGiUh61kCMEXOlaH+8F2IWsKmqdJpRbpu1QvFPCO2+/qskZXkIwEdeCb5gy KjEcgBKBt7EXsZ23f9R6TrTebq5jAQfKiqQpQavtGoHmQUL8HP76+KuZ0LzsO9pIM2l1 rRjFa5ZxtJRoUmCrB8vFnY7WtOfximeahQKjaoeRH3OOIl5fAE42l70Tn+7/Sebb6qmw 3fgKX7E0nW1VU2qzEUS11g65oU5/dvD4FRwostgWuUDAsGUQ4mVV8/8o26SpNNKFaT6P ekxg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Isn9ZuSC; 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=aSdlyVqgQOdeodSDs2ZmK7NBCHeQdWML4pLVVcnC/xQ=; b=P4Ok04FzUpr4X+tOE9wKv4AU/iGHUPD7J9ja/z0zsDsd8QYf+EIok/y6MOWhbxFtOv fQ9oVRza0/S2RWhWEk2QORCRu7ZclZHhNEzG3cKbPWnT1i3Y+qjJ4N9lDuLRnYoi7F96 Pk9wE0YrIh8VwnpmJl7gayj1IgGFYbDFWjLjQ= 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=aSdlyVqgQOdeodSDs2ZmK7NBCHeQdWML4pLVVcnC/xQ=; b=hQ88a5BrG/CwgpYRMdgCHjxii18ykCQ6GmL0F/VnZTlVBGhREa9roga4DmibLkCUxE afT7hDqzUyuMEC0I1zj1uTQ4EHQvwwVTnXDSGDlvzTdoUNJstpEty2bEuOoDoXitZGL7 lgyTd5cIUq6K7M/4i1X2RueFBSz517GVjQtZnFf6El14L6HwQhJ7W5pa7XS3uihqbx0K /8jKV4pNh2ida/13mIwmv++OJv3IbzJl9ep+MC/QywMcV9O0kKKm6PQcez28pUauthlX Wr7XRh9+XFRfU6KxtRTcuAq+rkFwugbGV3rzCQg/t5scWa1xHwZbYtNH0CyWhm72JF9y wlnw== X-Gm-Message-State: APjAAAW1smCzc4vJty6j0wXwp7WUQAJkd6JmoTX5LiSfCvhMve0QOLkR bN5lybwAcOcANpKD293jC2rKmmo0 X-Google-Smtp-Source: APXvYqxD4PcDdZwpkzCBAIpXRn6UxL2CGOo3FD9E89UYD9i+DDbXAWCkA0wEhsQ5cwXqScMJHIO5/Q== X-Received: by 2002:aa7:951c:: with SMTP id b28mr20331700pfp.97.1576914906529; Fri, 20 Dec 2019 23:55:06 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:84d9:: with SMTP id x25ls3050266pfn.2.gmail; Fri, 20 Dec 2019 23:55:06 -0800 (PST) X-Received: by 2002:a65:4206:: with SMTP id c6mr19584992pgq.46.1576914905995; Fri, 20 Dec 2019 23:55:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576914905; cv=none; d=google.com; s=arc-20160816; b=svgVWxXUrzv4aC0b3G6f2HkRaet9YlajELMCNsfw41zgi+KCejyvNwpt5ZWNrqV7Tc cbvGLCm4cCa1iUiuRxEa/pYl2jKLxMJflFDIpCugGNtaHHzioIQhRsr03aEGZHduE3j9 7Hdlwo3dY9D8RgMQrx/IjlwRftK6tOM6XTX18F/q2FAxhmMh1XZP0Usp/3akc2zFOS6l Oy9udQtYhC1t4VY+/jyHDMFwXQV26adEYFVEra1+5IyopXpGx5Fm7ZCIgH7EQRQsHNM2 4qpa5t8+mnFcnQOC3YGsYM8sWaScyccAgZp9JSWhBxiumeleyDip940+gdpD6AsAFf38 25Wg== 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=EuID1Upv3NvQK3+qZN8HCyunOqQiAwANLQfiZfbMwY0=; b=i4PgJBAc67GPWk7KDIg7lEVEnPWsSd4DuWJ7stWgyUqfLHzo3WFWxYsSOXMACW0zGi G9tRE3Eaad4Beo7fXt/vBNVobMNXtG1lIkjQNjYJT7SbmA083PbrC00WEvUF3RGu7ITM B0PXAdvoPwvGxyhl3UkeERwRTh2ouDvZLzAzZ/hS5n7fvTc9azzinEFgqoaNri8Q1THd ZqN2IdCmNRkk4O842wUR0LY7cECzqf/D/nkHCwmyYSA1/uP8tX22lvEA3H+TL0Y0Bu3o il9FXbcEvyf8bEsYox1WMrJIsCN1fdGy1gDC9524fswSDLoC/rKMCATZotBf+jitVphq iMpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Isn9ZuSC; 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 33sor13349851pgq.35.2019.12.20.23.55.05 for (Google Transport Security); Fri, 20 Dec 2019 23:55:05 -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:d802:: with SMTP id b2mr19334351pgh.414.1576914905694; Fri, 20 Dec 2019 23:55:05 -0800 (PST) Received: from localhost.localdomain ([49.206.202.177]) by smtp.gmail.com with ESMTPSA id i9sm15551018pfk.24.2019.12.20.23.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 23:55:05 -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 05/11] rk3399: Check MMC env while defining it Date: Sat, 21 Dec 2019 13:24:34 +0530 Message-Id: <20191221075440.6944-6-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=Isn9ZuSC; 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: , rk3399 do support SPI flash as well, so there is a possibility of using flash environment for those usecases. So define env device for MMC only when it is used by specific configuration. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- include/configs/evb_rk3399.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/configs/evb_rk3399.h b/include/configs/evb_rk3399.h index b9c4d683f4..c0b0358893 100644 --- a/include/configs/evb_rk3399.h +++ b/include/configs/evb_rk3399.h @@ -8,7 +8,9 @@ #include -#define CONFIG_SYS_MMC_ENV_DEV 0 +#if defined(CONFIG_ENV_IS_IN_MMC) +# define CONFIG_SYS_MMC_ENV_DEV 0 +#endif #define SDRAM_BANK_SIZE (2UL << 30)