From patchwork Mon Apr 20 12:52:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1091 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A6A103F1FE for ; Mon, 20 Apr 2020 14:52:57 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id t9sf8482783plq.10 for ; Mon, 20 Apr 2020 05:52:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587387176; cv=pass; d=google.com; s=arc-20160816; b=jzUoJirYBzOs/9VvJup1cMAbRiZmLzhw/1O7OeBXCBX8xJ99cZd7Q83Sbd+IyDPYVm JPmlUkeNcKMD4UrwHHr/gE7rByMG6OnXQ18iFN0VzKdeeRRxDvjRn8NGDqy5DBOL6qCp /c/fIcleSfeznvn3EryAR0m9CiFmI7Zdwrea+PEw4BEsp66ebi29206RSOW3yMw41gMt o8BtiE/V4DNybrEq0XDnW9BTbR6vmT36+e0XwPhPzw77pyqKZ/LfVf3OKNdeqM1L7qCH G+WEUoCyQZB07wEn3P+YRqrj0QhXfz2fmMYr9iGLZRSzTimAJJBjsiabuLt5wz57xz5R PjIA== 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:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=wzuTYObyx3wSXKuC0uWvwS6BkRfJOo7sdzvSZfPgW2c=; b=ZKn2+w69WOzyNvzOcdbDW6arGsyQDWSLNSea0r4co29OvvYdPIcqUw0R0bRxKLlB3y wkFipy8Ai0uDN7zFEdj3f/9XG/EE785tzaLOWa489/rhEvyj6pARYyKXSk7s+l4juuaz MiMUQO8IcyLFWHOLw1AEY1Av8aC9Gutqyf8l+EFsI5vF2lcLL6LyldgbGqMRD9T1Cxr0 iSXZ+GdQqmbdRGkzMb1QcIa1jmABsak4RteDJMldcO/q/zv2BvF/ocUbzO6JEv5NybZF Jed7jOKY96YyQ5koDX7NDe1HWf1SirEcELVoOcjxy5qySauU5e5hLF70sgj0wxuf7uYM avTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J8hFxeau; 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=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=wzuTYObyx3wSXKuC0uWvwS6BkRfJOo7sdzvSZfPgW2c=; b=R80fZJWY/F3zNAQ+J751g8hglek9va3iEvANvJ/i+yeE7ob9FHNy5dQG4zVtrlL20v N8mzQsKVxJkgrvgUN/oLumY9axlXvgxWDH5NX/30tr8K/qA3wALpInOR36A4HSr8xfwm KwwgDHtmCQY5R7IottQKrAdaiAY8jOLoN7oDg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references: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=wzuTYObyx3wSXKuC0uWvwS6BkRfJOo7sdzvSZfPgW2c=; b=nOfCvHyHSjwxAOcDKRPlPJEhW3fvyDOeA3kulak6ToAlPJN8Ae8Wedbtx9lMRDZUax iPCumM0BGWmayy1ZFkSQh+wUXGl9nCr+HTKUl2Qz9A1ZPCBYqZYfU79ie3jw42n07PbE uVT7g38P2iJQ++prz2McE1RGR3LXJhHTEC74FO3gunjygwV+cpsfWN5cJWwIsinIU9sl KnHdLwX/LcKJ43aJ1lUCSsmGTgZKv8Tr76DyfQGbPIX8XfSBgdoEvVHdGwW3AZoosWWX NtffYYXdAH5JVQBfTPmfkXK2xBxP6NRTS2887X5k09Ip7aKaVcr6o2oqhwThRJXfOoT7 xlmA== X-Gm-Message-State: AGi0PuZuINNovzw9cIcKgBO4sdWNyu2CMw8D+9zW+YIstx6kaVsay/DC zuN/GfsAP6a6HFG3qO8AiJ+O6PkX X-Google-Smtp-Source: APiQypIf3UBUnGD9TEEMWFP1ChxLkREAFnR0wUOG+ZF9M8yV7UCXdnz+Rb1U1w5XEkchqHKqEsRXXg== X-Received: by 2002:a63:358f:: with SMTP id c137mr16305237pga.178.1587387176489; Mon, 20 Apr 2020 05:52:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:ed0f:: with SMTP id d15ls2799953pgi.11.gmail; Mon, 20 Apr 2020 05:52:56 -0700 (PDT) X-Received: by 2002:a63:5fd0:: with SMTP id t199mr16675038pgb.207.1587387175958; Mon, 20 Apr 2020 05:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587387175; cv=none; d=google.com; s=arc-20160816; b=FcEplh8QxQxNuQAHkJWWHzOLiBhWSUTQPP3KY17sPN3bZ8lVoDPtNFQKnSF7Z919ro s6wTUdcAAxNhHX+lVGPuyvrHkrRj1jFTrg4nCc5vgPOiuAHALnArX9VVCnnVqocMNVKM K5CAgQ/tiZxMlE59sD1ncwNw1FRy49TX0ihx22VNj+xkgNeqpxI1UOsFw1TqNmHFheah E3n9cOeTZVf6KXhvKdNlxLim4NlxqYlPSlAGUvf+oVQq3zJB/uvxau/ku/C0d61X2Gw7 3F/+QomtKbjl96p9lCgFrA8ikxhtpJpAgrVrUoUwkJu9GQBK44bIsnBu0jl4IIMbz/EM cVzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VCMkQhRht3TDfsJHW0HlLX+fWnwrzuKVWaLj9CID1Ks=; b=JSh4TsV1NZF8aJXwd27y8ZE2pCxx/MZByX9Kv+pgmSRX7m9RGxo3F+pqwx3lTR/y+o BDFh/ZBNfiHixw5Nf2B6eOFSCUY32eHmwZrs/zAohdBI+fl7D5G5n+Vsx7fzAcK3zZsO kFbOFPqtLl0bbkLz6rmC0lyd4hAURcME0MpH1crdIhb9wOVWnd2SZYewbVVHbeaKcDjq KIQTLMPlvSrHYFbOpnu++k9hTCXtzF31Y+pIN6qAcAI0Q+j51jgz91jQPaa8LEK226lk t8uwNXwxFceGcCWy7kIUEzgMUWfMXq3rs076B1T9q/MMEK1/v/uFxNdjgr/9NtjscS82 rxzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J8hFxeau; 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 u9sor1220563pgg.44.2020.04.20.05.52.55 for (Google Transport Security); Mon, 20 Apr 2020 05:52:55 -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:a63:230f:: with SMTP id j15mr16411433pgj.393.1587387175637; Mon, 20 Apr 2020 05:52:55 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:7ddc:e17b:a9b3:404]) by smtp.gmail.com with ESMTPSA id i25sm1036932pfd.140.2020.04.20.05.52.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 05:52:55 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Cc: Rick Chen , Bin Meng , Bhargav Shah , Sagar Shrikant Kadam , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 3/3] sifive: fu540: Enable spi-nor flash support Date: Mon, 20 Apr 2020 18:22:38 +0530 Message-Id: <20200420125238.9610-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200420125238.9610-1-jagan@amarulasolutions.com> References: <20200420125238.9610-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J8hFxeau; 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: , HiFive Unleashed A00 support is25wp256 spi-nor flash, So enable the same and add test result log for future reference. Tested on SiFive FU540 board. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng --- Changes for v3: - drop sf commands log arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 1 + board/sifive/fu540/Kconfig | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi index 25ec8265a5..d7a64134db 100644 --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi @@ -5,6 +5,7 @@ / { aliases { + spi0 = &qspi0; spi2 = &qspi2; }; }; diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig index 5ca21474de..75661f35f8 100644 --- a/board/sifive/fu540/Kconfig +++ b/board/sifive/fu540/Kconfig @@ -26,6 +26,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy imply CMD_FS_GENERIC imply CMD_NET imply CMD_PING + imply CMD_SF imply CLK_SIFIVE imply CLK_SIFIVE_FU540_PRCI imply DOS_PARTITION @@ -40,6 +41,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy imply SIFIVE_SERIAL imply SPI imply SPI_SIFIVE + imply SPI_FLASH + imply SPI_FLASH_ISSI imply MMC imply MMC_SPI imply MMC_BROKEN_CD