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: 208 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 77F4E3F033 for ; Fri, 12 Apr 2019 14:53:33 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id i23sf6415469pfa.0 for ; Fri, 12 Apr 2019 05:53:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555073612; cv=pass; d=google.com; s=arc-20160816; b=03oVa0Mp7GY3ltQjAdOe0M2Z1PzlURaEdwjfPqeL9sPTwVyw/oH99uGSQhsybnC/vz NCbXT1RiEsIF1FRM6qwQ+Mbax3sP9QFpw2rLREhvEJ57N6Dpp1fQkZ2taUIu4Y88UaVm df7tNs0AjwVXglCgg3nJxO0vybSs/d7vNBf44WY7gpEihhc+2U3zOOV1YnAE3SpaT4+O OqALAi7rs3DQfi44As57mmhE47Vbi4aoy4p0I2fc88vxIOORmWb0ojf9bBvkKg9Hqs+q V+YhHpebtl/7MIpKKPUT39ria3rbbyBliC5T2SpWA1O3PzBeIpNpm95S1flupSLAzGBi /+SQ== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xvQyoy/+htwY4NEr+ir0idL/6x5bNrACQNZ1YoITF50=; b=RdNXCIbH6PaEf31888b0WXP4+UJxpuBgblcSPcJvykZRvaoojm7iVocnuaEA2CWMgz AjH3ZgSDfypdwHE+LHsGTNpwPADO4pajgrgZX1SL7zccWQCP/fCLARteLVLuiIHxg3EC 6xqolGcbTiFerg82J52WCX8WPJGVVa75aKHgXP+c+2Xf2GX9cfpkFlIQlg906uPLs3Yr zi8wYGVSRXvTvbrXHVBYomLvqtw9CymyauVJMkDmvcYEShSK8aVhxdwHy4Mgma4VBSyV P2me8ZEsl/L9tO4/k4chbioMa7bTY4m32ELQVBpHMG9T1f+Vb1TTc9/cRau702rx5DBc gaPQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NaHAIcFd; 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=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=xvQyoy/+htwY4NEr+ir0idL/6x5bNrACQNZ1YoITF50=; b=NBTthqMY3/uFDi8M4/FIE+HJIw/QxYtMKrudtu/DXo7d3rfsXRDwMLGPXbFTHl7bzh JCTvgDYHbo5RwXKs9Ystu0E/qCXgMgaXv9PaavtzWiMKRu/Eie7yoWklDe7BTkZ8Mbkq 9Nm7AFhdEXtYEOSDIemWz+NrSVrTUd4nEjOU0= 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: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=xvQyoy/+htwY4NEr+ir0idL/6x5bNrACQNZ1YoITF50=; b=lZ1fqtfk5T5HhcxtT1K/k6X+gq9BODRvSQM/sG2Lci4uVL2mtvP/KvGxxjE0bCnC2b nDW716cu26I6u/LUCD/doOK0ZU7cQQ3MVN7/ycFhwIvUlkQS6bndzEziXCzwgAIPOuEU 4cCashSdqdMTEA8ssfV3rRQRCMzM0LYkE6aDQfxfKtgmbE1ldeNNDz0VKUwEcGZ8ISwi In0wcwQI02bbPhYNHdmVwjboZo3bm78ZPuoKzGg5HVPoUh80Rd/RQzqxANnm1BR9cP2x WcmdbzDi22kpoeqa3sVNVseqQneiKZrZHm93rIOpND+7cJ7mBOpy0pvxl1ezZ4oZi3u4 HTZw== X-Gm-Message-State: APjAAAW9lvOfWQPVXIUPYQv5SaXM/slzg9zgLrG+2geZb57sCGTcGd/2 tqoY8yiw62N/t/SMDiBIE2AUdbF2 X-Google-Smtp-Source: APXvYqxcWCGheAE16/7pOlUDj5ww3Y+LRMOFXmURLBcPb9ryZZsJP7Asuxd6kT+ILxOItmiIwFwjYw== X-Received: by 2002:a62:76d3:: with SMTP id r202mr1476982pfc.137.1555073612236; Fri, 12 Apr 2019 05:53:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9693:: with SMTP id n19ls2644223plp.2.gmail; Fri, 12 Apr 2019 05:53:32 -0700 (PDT) X-Received: by 2002:a17:902:aa85:: with SMTP id d5mr57632180plr.251.1555073611861; Fri, 12 Apr 2019 05:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555073611; cv=none; d=google.com; s=arc-20160816; b=B04zCjHG66elw20jfvqCox64vhVT/MDaL2SxOBe4LORBnrIGv+vqMBLMGab49kR5ua Na3H7SG3SrEB7tdfytvCGiH19SIdLXXxY6AAXXMrZtELFjrwGGRGbvltj4qxPBDBNhJp 8sBqdKdCXYzwt+lL+qLU7NcIhHHr1NnQT9ajNsJJEJ7u3+hZXbm/eTMbs4Rdw9N7Ri5h 5l8zIQs68iHBM8AeVl2WJTqYr4Kl7rDSjP/gam0i8Ka7d8TSWEbVss1k5axMoSlmWsgj ouBryYD/QPj1TvKw2zPbmc8JbOz+tydo0xIlG8+kcbKggXFLuIJgPvz25xgtsKTsx20H 7ghw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=SE/5rxDEcvWsLrt0xVRRK97hj8DwwcHIp9M/vOvkhlM=; b=VxgaWsPtKpldLA6pXlFsdijeWTt02HGvihmgF87IdU4qwKYp7kCfHUPtYkUV0G7Jo7 t2Y2ZjVEqrJ01v9cbOBTJPJOhfXwNJ19m6Pym3pNGYCphJLUHkO2dyKDSXbQWmg3Cowo WkJ1uzmNHXJUUt1cHP5fm+OOhYyCBgC5gfn+i2doTE4iVmx6SAeZCM1gWlJoPlOFHkd8 sHVtY9F7DpIIIyFwyrqFclD/UGJeXrhsAvDPY5loq3GJB4hfymxowx83ZatW/oSmIL5J c0u8SIXl4t/OFKNnDPrNar8UhGKIfDy0AkEDKO8ON9NE5hDdt+/iZLtHgTasHb4qks08 WHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NaHAIcFd; 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 92sor54265227plw.48.2019.04.12.05.53.31 for (Google Transport Security); Fri, 12 Apr 2019 05:53:31 -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: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_Greco?= , Peter Robinson Cc: Maxime Ripard , u-boot@lists.denx.de, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 6/7] arm: sunxi: Enable DM_MMC and DM_SCSI 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 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NaHAIcFd; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , - 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