From patchwork Fri Apr 12 12:52:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1084723 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 (mailfrom) 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="NaHAIcFd"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44gdGf5gG5z9s5c for ; Fri, 12 Apr 2019 22:57:46 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 7D001C21DA2; Fri, 12 Apr 2019 12:56:22 +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=KHOP_BIG_TO_CC, 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 8EFDFC21E26; Fri, 12 Apr 2019 12:54:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 75866C21EB4; Fri, 12 Apr 2019 12:53:39 +0000 (UTC) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by lists.denx.de (Postfix) with ESMTPS id 08D3CC21E74 for ; Fri, 12 Apr 2019 12:53:33 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id y6so5086402pll.13 for ; Fri, 12 Apr 2019 05:53:32 -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=SE/5rxDEcvWsLrt0xVRRK97hj8DwwcHIp9M/vOvkhlM=; b=NaHAIcFdSPgtQd01M1k94wqYERbjWvpLptEptmsLkM/JqloamwhQCFhfcZIH3FYZiM Os3HwBsrk+4u2MCWAVZsDdjJIvmyAoZDs7AYDmHM0zQnaIOiNnFj5HF+n1gao99QiH95 g8iN1L7AreiObH3RATe+1cvlN6T0erA5uqBUI= 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=SE/5rxDEcvWsLrt0xVRRK97hj8DwwcHIp9M/vOvkhlM=; b=pyVBVwX51gz2Qr1B0FTdSVRNG7gDYWl3mthcYjgVEKVXI21AKcxkMT0FIBTi/VCKYc UtRz2C5Zq93CvX9CGqzDmJJA/ajlFjpEKBn3DNI8nMnM+YNwGiAkJl+F9lzWC9A6cTIL psNb53uZVkmDyu/RfOErbGfbbWg3cUIYK5L16cznNExwH26oGah+hFfffsXaQKEy9jwG zzW9g89WOfl6OLv9K9KRGQJ99NLOmY1a29lFNy1PyawTdKnRO/fn3lI7kcaGHUVJvT3a B8w+qbrcVMFdjTFKgGzbNrPDn9LMPzmegpabp4DyBTzAX7JeC1+insIFri6wQbqAdggi j21Q== X-Gm-Message-State: APjAAAWkEDuGurf+cu3kB8S2fB5k5xnP6wCfoJayCGg/cDKRGFEJx4eK 3U1DzjBuLqLdIA/BG93RUbpUjw== X-Google-Smtp-Source: APXvYqyFqtKRwR0Jgpl5uHAHCciz0+OTtkZYrVyhaM2oyzgAFTv7ztIuajc+VoR6VhAO3gVgCW7FLQ== X-Received: by 2002:a17:902:f209:: with SMTP id gn9mr9422266plb.109.1555073611580; Fri, 12 Apr 2019 05:53:31 -0700 (PDT) Received: from jagan-XPS-13-9350.domain.name ([103.81.77.13]) by smtp.gmail.com with ESMTPSA id g73sm72649819pfd.185.2019.04.12.05.53.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 05:53:31 -0700 (PDT) From: Jagan Teki To: Hans de Goede , Iain Paton , Olliver Schinagl , Marcus Cooper , Adam Sampson , FUKAUMI Naoki , Stefan Mavrodiev , Ian Campbell , Chen-Yu Tsai , Jelle de Jong , Aleksei Mamlin , =?utf-8?q?Pablo_Sebasti=C3=A1n_G?= =?utf-8?q?reco?= , Peter Robinson Date: Fri, 12 Apr 2019 18:22:35 +0530 Message-Id: <20190412125236.12748-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190412125236.12748-1-jagan@amarulasolutions.com> References: <20190412125236.12748-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Cc: Maxime Ripard , u-boot@lists.denx.de, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Subject: [U-Boot] [PATCH 6/7] arm: sunxi: Enable DM_MMC and DM_SCSI 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" - Enable DM_MMC if MMC defined - Enable DM_SCSI if SCSI defined globally through Allwinner platform, the effected SoC families and boards will make use of MMC and SCSI subsystems in driver-model. Tested DM_MMC in one board from A64, H6, H5, H3, R40, A83T, A20, A10 SoCs. Cc: Pablo Sebastián Greco Signed-off-by: Jagan Teki --- arch/arm/Kconfig | 2 ++ arch/arm/mach-sunxi/Kconfig | 13 ------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 4a23e327df..7deae931b1 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -857,6 +857,8 @@ config ARCH_SUNXI select DM_ETH select DM_GPIO select DM_KEYBOARD + select DM_MMC if MMC + select DM_SCSI if SCSI select DM_SERIAL select DM_USB if DISTRO_DEFAULTS select OF_BOARD_SETUP diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 8110f23ff6..1669e62a6d 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -154,8 +154,6 @@ config MACH_SUN4I bool "sun4i (Allwinner A10)" select CPU_V7A select ARM_CORTEX_CPU_IS_UP - select DM_MMC if MMC - select DM_SCSI if SCSI select PHY_SUN4I_USB select DRAM_SUN4I select SUNXI_GEN_SUN4I @@ -165,7 +163,6 @@ config MACH_SUN5I bool "sun5i (Allwinner A13)" select CPU_V7A select ARM_CORTEX_CPU_IS_UP - select DM_MMC if MMC select DRAM_SUN4I select PHY_SUN4I_USB select SUNXI_GEN_SUN4I @@ -178,7 +175,6 @@ config MACH_SUN6I select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI - select DM_MMC if MMC select DRAM_SUN6I select PHY_SUN4I_USB select SUN6I_P2WI @@ -205,7 +201,6 @@ config MACH_SUN8I_A23 select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI - select DM_MMC if MMC select DRAM_SUN8I_A23 select PHY_SUN4I_USB select SUNXI_GEN_SUN6I @@ -219,7 +214,6 @@ config MACH_SUN8I_A33 select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI - select DM_MMC if MMC select DRAM_SUN8I_A33 select PHY_SUN4I_USB select SUNXI_GEN_SUN6I @@ -230,7 +224,6 @@ config MACH_SUN8I_A33 config MACH_SUN8I_A83T bool "sun8i (Allwinner A83T)" select CPU_V7A - select DM_MMC if MMC select DRAM_SUN8I_A83T select PHY_SUN4I_USB select SUNXI_GEN_SUN6I @@ -246,7 +239,6 @@ config MACH_SUN8I_H3 select ARCH_SUPPORT_PSCI select MACH_SUNXI_H3_H5 select ARMV7_BOOT_SEC_DEFAULT if OLD_SUNXI_KERNEL_COMPAT - select DM_MMC if MMC config MACH_SUN8I_R40 bool "sun8i (Allwinner R40)" @@ -265,7 +257,6 @@ config MACH_SUN8I_V3S select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI - select DM_MMC if MMC select SUNXI_GEN_SUN6I select SUNXI_DRAM_DW select SUNXI_DRAM_DW_16BIT @@ -280,13 +271,11 @@ config MACH_SUN9I select SUNXI_GEN_SUN6I select SUN8I_RSB select SUPPORT_SPL - select DM_MMC if MMC config MACH_SUN50I bool "sun50i (Allwinner A64)" select ARM64 select DM_I2C - select DM_MMC if MMC select PHY_SUN4I_USB select SUN6I_PRCM select SUNXI_DE2 @@ -303,7 +292,6 @@ config MACH_SUN50I_H5 bool "sun50i (Allwinner H5)" select ARM64 select MACH_SUNXI_H3_H5 - select DM_MMC if MMC select FIT select SPL_LOAD_FIT @@ -311,7 +299,6 @@ config MACH_SUN50I_H6 bool "sun50i (Allwinner H6)" select ARM64 select SUPPORT_SPL - select DM_MMC if MMC select FIT select SPL_LOAD_FIT select DRAM_SUN50I_H6