From patchwork Wed Oct 16 16:22:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1178011 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="lzkGxvzT"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46tczJ6wV3z9sP7 for ; Thu, 17 Oct 2019 03:23:08 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id A7C64C21C93; Wed, 16 Oct 2019 16:22:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 093FBC21DFA; Wed, 16 Oct 2019 16:22:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7B628C21CB6; Wed, 16 Oct 2019 16:22:32 +0000 (UTC) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by lists.denx.de (Postfix) with ESMTPS id A7529C21CB1 for ; Wed, 16 Oct 2019 16:22:29 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id w3so7668915pgt.5 for ; Wed, 16 Oct 2019 09:22:29 -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=vZZBL18YleWtzLwkAmWQ/Nv6tZ4t8IY7g8ozzMGtrCM=; b=lzkGxvzTsIM2OPLkRoJ8rLeCA8ihEGChmCGVutHutvrt5/IGLWWLD+01PYxBAaQmyO QwM6SQuHlal8dIfBCLh1Nx1EKfBHbFBb03IFpyuNoQI+HCcOdbNq3N7p3k4lM1T5CKSp oTrQnpltuQXxbmEaHqlKLwJSzL6zCgfOKLKvk= 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=vZZBL18YleWtzLwkAmWQ/Nv6tZ4t8IY7g8ozzMGtrCM=; b=szxiq3N1r1yfdRXOy7abAA/AWSPYdpFKYcaghwjULQnHNDexrWbVqirmlPIm7ftWZA 7mTQ0TvP5JpR3SNkPoAHm5kioxpQLLoeX6yVXWe4CQMqpTuq30JCZGnCSkokxmtgG5hH Fu1xDM4jPonGQpu5d/eKm8GCsjO5GFY8m5AECmChtirMEk5z7zZzPyv0MrBtKRc4pEVU H7+aT8JH0YjCDi6MLim/vyejBna2h/o3SpLHB66KSWC0QDS5qCVkPCbkryQW3PU6mQod LHpeNHEcFGPYmv2bY3JONsOiZ1iT5fDvWmmiNKsjKGQ73ecyjmPHgU90yiJFIiVxGd4O kDUA== X-Gm-Message-State: APjAAAU0XjfdDqzoOK1RdSeKyQTDbaVxd5uwp+x3cexOQ7oPKNyoAFlY 3I5GPH3l0Y2/9q8n8K91Q1wuRf8A2fA= X-Google-Smtp-Source: APXvYqy/LdWflDrNCP2JzjYulXoKUacd8mKSQ1EomTCpGkSXpAYzbEpa7IKb/TSOR2+OILIZRp5x5A== X-Received: by 2002:a63:cb4c:: with SMTP id m12mr42716023pgi.58.1571242947606; Wed, 16 Oct 2019 09:22:27 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id n3sm28888795pff.102.2019.10.16.09.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 09:22:26 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Wed, 16 Oct 2019 21:52:14 +0530 Message-Id: <20191016162214.3687-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191016162214.3687-1-jagan@amarulasolutions.com> References: <20191016162214.3687-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v3 3/3] configs: sopine-baseboard: Enable SPI-FLASH X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" SoPine has winbond SPI-FLASH, so enable the same in defconfig and add aliases for spi0 in -u-boot.dtsi Signed-off-by: Jagan Teki --- Changes for v3: - none arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi | 12 ++++++++++++ configs/sopine_baseboard_defconfig | 1 + 2 files changed, 13 insertions(+) create mode 100644 arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi diff --git a/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi b/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi new file mode 100644 index 0000000000..02b1ae046e --- /dev/null +++ b/arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2018 Jagan Teki + */ + +#include "sunxi-u-boot.dtsi" + +/ { + aliases { + spi0 = &spi0; + }; +}; diff --git a/configs/sopine_baseboard_defconfig b/configs/sopine_baseboard_defconfig index 5833234b63..c9123fd7ee 100644 --- a/configs/sopine_baseboard_defconfig +++ b/configs/sopine_baseboard_defconfig @@ -10,6 +10,7 @@ CONFIG_DRAM_ZQ=3881949 CONFIG_MMC0_CD_PIN="" CONFIG_MMC_SUNXI_SLOT_EXTRA=2 CONFIG_SPL_SPI_SUNXI=y +CONFIG_SPI_FLASH_WINBOND=y # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set CONFIG_USE_PREBOOT=y CONFIG_SYS_SPI_U_BOOT_OFFS=0x8000