From patchwork Thu Apr 23 17:00:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1105 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 83D4C41496 for ; Thu, 23 Apr 2020 19:01:27 +0200 (CEST) Received: by mail-lf1-f72.google.com with SMTP id t194sf2568736lff.20 for ; Thu, 23 Apr 2020 10:01:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587661286; cv=pass; d=google.com; s=arc-20160816; b=YbVCQ+CIBSi6ijCkOeRpT6T2n74nq3PUbWzE6+jgPTt2k/9Pr3kzTdrNjhhTYU5w6L uHtCAQQfa5thGClT66owXSH8f9w9qy4JYH6v8DsbKF8EZKjiEU4AwiS0I4aJlqesUuNq mf91Z+lg+S4+cgHZbuY0lhCvNuhnmdCw2HcaAB7CudlDXg8IcPAidVRg2cFyX0ndSCT5 xOA7f/DCLwuLD+BatE+tD98Hotn1FGhlT/E6EgPHDHPAu51SdEq7gJXdjA3w7O+Mfg12 CFyM/sjGlDKh1L0cZ98xSmuRyqjwgbvXjWVRuZmVzYbwIohd2nfhQKZ/cw26KHyfMrrc ykVA== 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=td/0XIJTun5DlX/1Ork8IgcGLlWQt7TS1gMh0q8Lwpk=; b=Q6C0Zf0Kz2Nabd+3phK7RxkQT8ZlJ8fyLZ1UHEjm9Y984ouAMBdnVuJbn2UYvHj247 FEd/VB0WKCvTs7Rl21ujDJ861jhReyFLl8U4qjoyfQIRF0PWv3dtXoY7uTunVXB43vfk Vx+kfUdfQZ/Bokh0PrZUBBqRqnLExtrkB00hZLZ+22bjv/orbjQLevnUF2Y2+OYGi/jE icxyI4nsIY7tUerPp2WBbGUZBCpJTf1EvsilWaNfUjMOytvJGzNkhCLMeU0dsFmtpKWm JijPYLUcIlC0sZW3m8mQ9OSheCMl9nOZW1WatKhl9eLD5cvcWrJL/6v8pl1jV203GRlZ YWqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PfE+vYEL; 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=td/0XIJTun5DlX/1Ork8IgcGLlWQt7TS1gMh0q8Lwpk=; b=earKTMruy6OvB60L4LSwX8YHaPmWI1PjbjFtKU9I/Zp/GBlhzgTUzRVZIei66s+GMF nUYIcnVP0rHx41tv4RSGs4Oz3P6eaqTsuTs+fnFzbIgQTXyDKXTSeNjFrm0sLGQKu5Kt KY49P0ipJxe89qwvv4Ty6AkKHswyz79meBLEc= 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=td/0XIJTun5DlX/1Ork8IgcGLlWQt7TS1gMh0q8Lwpk=; b=cKPHEQ5nn59uH/nt/HFJKP/HDhC4b/u+u4E4fFPf5m8BcWy90bZc3RZxNYlIjtczgr jPnpiaC+SlTkhWxP8wvHPV7kRNu8+iz+6VfFuI46CdofXZmKpCBWqTPgwSZGigatBbfk f4TQ6Um1behahpoG/6IeDtryww3NhCYZA/hdPZof5F8sw7KMZTLaL/WjnvhyT8W+YuX4 q7Z9jNhtznVzWWBrqgjdTQgE/cBnaCAdDgWtRAr9fZ3kHAOP/mvcLrNHsgT8GvrMW6Ei iz1BmWwUB9v0zPPoSJdCRYLtST/a2NVK4ikPDEy8FZPc3eIkPL/0B4NNUCmmTHICIy4q MKIw== X-Gm-Message-State: AGi0PuYKoXDyvVMCIEtPqpE5bXj+W7hl4XCdAuoGjGoadZrVA+UlMJAy SPTfu4eKXbmd6cHGaW/PvlBFBTRf X-Google-Smtp-Source: APiQypK5YXrlaSFTetjThs0GWyIn28piDcR1jEvNCQqPYZfv4FH4sDWXVtYXaNHqIqFtpnetEWMvRw== X-Received: by 2002:ac2:515d:: with SMTP id q29mr3005343lfd.210.1587661286678; Thu, 23 Apr 2020 10:01:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a2e:9ad6:: with SMTP id p22ls1836242ljj.9.gmail; Thu, 23 Apr 2020 10:01:26 -0700 (PDT) X-Received: by 2002:a2e:b0d4:: with SMTP id g20mr3024187ljl.18.1587661285912; Thu, 23 Apr 2020 10:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587661285; cv=none; d=google.com; s=arc-20160816; b=yY/aRrFGNBGblrXCDmC1k39joU47T/ySPectKK6+eDB1itOTb4rjr+zGhego3NGOvG 65gGLfmoflbZVsm47Z7s2vwJfS6WW8I9pIl8xPOQvD2/QDKiYRsd3FEwnQp6mIHwFYLc XetCrXXrnoUj5yw7CXkT6SrI3uY7Gmt81xZMMJVzSPuoVpyyvWVB8X6A6aEfFyWfOuiA RGZox+MxChT1b+q/DTxze70if8uCh9SliiR3x9iz2aSj/aVz8WHBIGR0KUk16sgrmUW/ sZVlh+Cplvw9MyjwQvJXll4sHfOB1xDksRli0GozVTEKcn1RQUh76TOqAhlj0ItR1xDy vYKQ== 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=4DJ8blU0pKMEwm2LZNMw134WzspD8GP8ZufWnbni/pk=; b=MjFSUP0/z8afbdsrmW2e34XW2CwfFYI1B7WbwdhbgK2do/f4JJDvHlOoi9FrzVV1J+ KWiu9WY0ePr2VxRhMVz90eNSXSYxS/aSF6ol5ARXamaOCSzAdp0XYG/f5dfVHr1H0ajy VcHvUsebAvQFu2HD0wKHELDasgnql+i7FoDPLndnIleB4l+/TFnKElHQj7gPxMa8SGYH bqRfpFBiHR0GQY/WtbKEF0XWeI4nRR++9ZfAj/4UJM+K3ciqsg4RRHTeaDuu0QEn46zn NlV2J9mNxXiEkHR4qxzOKiTHq6xUEFSJXB6A87wAfegpmmYn5gvEaaLCHdC4CO1rAaTb vWyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PfE+vYEL; 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 y29sor1308299lfb.5.2020.04.23.10.01.25 for (Google Transport Security); Thu, 23 Apr 2020 10:01:25 -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:a17:902:ac8d:: with SMTP id h13mr4669835plr.267.1587661285415; Thu, 23 Apr 2020 10:01:25 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:587e:69d7:8a4e:a122]) by smtp.gmail.com with ESMTPSA id w2sm3084146pfc.194.2020.04.23.10.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2020 10:01:24 -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 v4 5/5] sifive: fu540: Enable spi-nor flash support Date: Thu, 23 Apr 2020 22:30:57 +0530 Message-Id: <20200423170057.1976-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200423170057.1976-1-jagan@amarulasolutions.com> References: <20200423170057.1976-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=PfE+vYEL; 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 Acked-by: Rick Chen --- Changes for v4: - none 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 8a784b5661..2aebfab646 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