Message ID | 20200702080259.12417-2-jagan@amarulasolutions.com |
---|---|
State | Superseded |
Delegated to: | Andes |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=DzOr/JHW; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49yBXZ2YV4z9sR4 for <incoming@patchwork.ozlabs.org>; Thu, 2 Jul 2020 18:46:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 45775822B6; Thu, 2 Jul 2020 10:26:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="DzOr/JHW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 255B581B44; Thu, 2 Jul 2020 10:03:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B624E8006D for <u-boot@lists.denx.de>; Thu, 2 Jul 2020 10:03:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-pl1-x644.google.com with SMTP id o1so4425594plk.1 for <u-boot@lists.denx.de>; Thu, 02 Jul 2020 01:03:17 -0700 (PDT) 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:content-transfer-encoding; bh=WpF3ImjFnNjdS/Yn/EgFTzUivT1EyYWxPwFdqGqZWfA=; b=DzOr/JHWLwiiF1TkdW6z4OMQ7gdW4PEWbtJOxOVYEhP/5mXUluYrAR6+/WC49ygP2G n1EA+bWLeclffEn/Jl/pxfAlgi8gfX6h0Qq/3wyURg9D6//ex8HAHQni3TxcXuFUYDTY FydbHqkGPYAbvtMHJ6B9jwvlFFh1cNj+Wj8Uo= 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:content-transfer-encoding; bh=WpF3ImjFnNjdS/Yn/EgFTzUivT1EyYWxPwFdqGqZWfA=; b=bCtp/p367jFew66BK3zhhe7L6MRsMdKO+PPoGOpF37lNpYAiM1GlIlurEBiUgZXrPl oxVOtjjSBHxfCsQXHDFhO9cw2v5MJDNaJfaejPQjb02ScZ4Ke1ZmfrIbjUrScnqMsVFt LAZ7eVXstEEOd28C6oXUWxbmsNEbZDAcluzvMozOv7eVXf6LN2HpKSmxd5auAi6Xxfm8 nOIcSN4iI6XN4M0D92QYx4E5BeCLhwJrlhunihDDhfmbMA49lnGUcYQCYsnqE7lNP5lr f1OMLQKj96nkU2DGuaXsNX5v3f/cSz7alqTX6tvXGttZOt6R4JSe85/7BrBgVX/3Rgqs Z1bQ== X-Gm-Message-State: AOAM531yITG/APT+oOyzWY6jSDBZFhzazizgXhYY6A++8nuXiMebhx0+ IDn7YvPO8sdP767hs6WS5O9B8Q== X-Google-Smtp-Source: ABdhPJxM7gjWfwa2np1QK4shJaU4WsvocCd8lvcdyrM/J/mrnq7nSBxO8D0bVCVYSIZo+STv0InLDg== X-Received: by 2002:a17:90b:4d08:: with SMTP id mw8mr31905393pjb.119.1593676996184; Thu, 02 Jul 2020 01:03:16 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:a961:9b2e:1b93:8ca7]) by smtp.gmail.com with ESMTPSA id h9sm6754120pjs.50.2020.07.02.01.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 01:03:15 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Rick Chen <rick@andestech.com>, Atish Patra <atish.patra@wdc.com>, Palmer Dabbelt <palmerdabbelt@google.com>, Bin Meng <bmeng.cn@gmail.com>, Paul Walmsley <paul.walmsley@sifive.com>, Anup Patel <anup.patel@wdc.com>, Sagar Kadam <sagar.kadam@sifive.com> Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com>, Bin Meng <bin.meng@windriver.com> Subject: [PATCH v4 3/6] env: Enable SPI flash env for SiFive FU540 Date: Thu, 2 Jul 2020 13:32:59 +0530 Message-Id: <20200702080259.12417-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702080259.12417-1-jagan@amarulasolutions.com> References: <20200702080259.12417-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
None
|
expand
|
diff --git a/arch/riscv/cpu/fu540/Kconfig b/arch/riscv/cpu/fu540/Kconfig index e9302e87c0..2dcad8e27f 100644 --- a/arch/riscv/cpu/fu540/Kconfig +++ b/arch/riscv/cpu/fu540/Kconfig @@ -13,3 +13,16 @@ config SIFIVE_FU540 imply SPL_CPU_SUPPORT imply SPL_OPENSBI imply SPL_LOAD_FIT + +if ENV_IS_IN_SPI_FLASH + +config ENV_OFFSET + default 0x505000 + +config ENV_SIZE + default 0x20000 + +config ENV_SECT_SIZE + default 0x10000 + +endif # ENV_IS_IN_SPI_FLASH