From patchwork Mon Dec 31 16:59:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 131 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (cartago.priv [10.11.12.1]) by cassiopea.amarulasolutions.com (Postfix) with ESMTPS id 237172E002E for ; Mon, 31 Dec 2018 18:01:54 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id l22sf29436392pfb.2 for ; Mon, 31 Dec 2018 09:01:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1546275712; cv=pass; d=google.com; s=arc-20160816; b=aoDXWiHkdl1RlwWdC/lhjhEgobEAxSlbb34Agzron5uk4ExFIWrlLwllaiwCv78yGr sBozRT1rgBiJo4XCq8e8CMO9/Il3IiFQX51wJLAGF7vb0wJ+RmqwZpH7/u39FS78fGnC iZLhdupmVdx6h50dbuRPoC+TLwKH/ZmOYHICzQvciZTWSah7sQelV2A2LvRIXz7VsKy6 KJ3r65hwTps9u3uvM7MP7K8qezr9E2MLGRhBkvLC0FvDmbmDqiydvBsq4W2XnawNBc0V PtNDklTYTiXXqbc6o/0ntbM+OcRfmcwpQS/2rqVEUf2k0yl6yCMWh9X1VBLW3rPWU0Ih 9Zhg== 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=CaPyJ76ZYK8zOQAgkga4T0jbIC3yZ746jc/iW0kzqc0=; b=h1Tuz9+gWjNCYQPPswtV9myWYfsGRsMp8XGq479mmqx4LEOsec19o2iEREbfzUe2cF uFSCeG4HXz8PiPRy3epYAfimaZ8WrIS40qU2HQbCzLEEDmJjxlDkmd5kF6pCUFhLHQO9 83/2Dlqd6DELGWGV4zcPtAMa+Qd0/bl/cw+/LZ/YjnFx4YXgk+rIdY38mvwbwekBXBN4 RPGkE9u5BOdEabkKt4Wa+hslC1j0hDVoHOUSL5eN50UF8CfUiMUbh8yfrVeyMU17C5rY QvFxWogjTb3FAaQD7i78DaoibBwl25RlcmSkiYM6YVNDcsFnKCGssrphJrmo037OrTx+ 9KBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AhvUuQPL; 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=CaPyJ76ZYK8zOQAgkga4T0jbIC3yZ746jc/iW0kzqc0=; b=CCIS7mc+h3qfKtKS2kyvXayE6YPI+C6HFSLo1RXLcm7BgkJoYcx2lOp+Slh1e8JnW9 Rd6b6Koryrk3FJx2IzwG80MsrW95k/nJ88GEQOSJkJRQW4lOfYj8ThbEpehM23RTGlCq FUG9A6w4un/ffaIzzvEDNXGLRorM9OMeFUAQI= 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=CaPyJ76ZYK8zOQAgkga4T0jbIC3yZ746jc/iW0kzqc0=; b=Z/mirUuoKAS7T4yMgO9JapEET/R5B5a1tC5oh9yAdwLJFGo6nBgq/8nXn4g4Ic7jHW shwuGjb4aDJ5BBW0366+aAB4pmE+j4byBmoMUP8G9eNPlHO/MQjxxIEwgs4/jpD4sMJd eREkRqLG5OgTIXfb10b8aIEqF5UkG38/z8IapafVjKmAoeAWiJBY0J99lw1Lo6mEGLSD SnExUmVgxkofzdKcf/GCr0qAUDBML9gTk7EdQXH3jZydlho1o+9Jdj5bt744u63wqUBQ RzYDFpa/BxGdzE1t2dR8w5OdO9q4leoy7H+QbPvv6KFyh9jIuhYVgk7zuUqKyz7oRiVC gp4Q== X-Gm-Message-State: AA+aEWbZoa4gsLpwR/tpr+sa2rfHjCRKQWqOa87o61NQzVc28jum7SmK sCJglv9BFYOjwaRiS0OCBCRsg6JN X-Google-Smtp-Source: AFSGD/WK9a3AaS/uQWo79LUf7Ohh8hBJWefbV30ANXV5UPMiHS3AnucmlSpPB//l8Wakz3XwDX9IOw== X-Received: by 2002:a62:b604:: with SMTP id j4mr17095006pff.67.1546275712780; Mon, 31 Dec 2018 09:01:52 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:4286:: with SMTP id h6ls12621273pfd.7.gmail; Mon, 31 Dec 2018 09:01:52 -0800 (PST) X-Received: by 2002:a63:2586:: with SMTP id l128mr8242091pgl.104.1546275712460; Mon, 31 Dec 2018 09:01:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546275712; cv=none; d=google.com; s=arc-20160816; b=05Q5Ilc6UdINpoNEChxk6Lcelwyu9M+Bgk/UmaMNMI6qYlve1RcRFFSBiRY4YtGJ0r 3DCyRHw+zq6CgFhn8bokxWQZaC3ysf8Cmot2rc46nLfMLF8W6qwPVXg9qb/YJnlps73D mHLdYf1A382OKAtVTFNaLEiUwJolN1e8tcJBbmeBVejHmWuGh0QOiyJQ5Ornaqex22Ei hoPlT7F5Zzfml9t2ZfZnAs6T42ieYM0bL4w2KJqvJ2m6R8wJx9SsAp/l2wt/ZHTsb/I6 zXbU41MgJpD1d6ZnxMw/G/el0yBiS7apwHUrNmvDsBgg+Wcqm0raiORbShOLYo7LY7ap 6YbQ== 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=CaPyJ76ZYK8zOQAgkga4T0jbIC3yZ746jc/iW0kzqc0=; b=rN07PS5Auxn1j0C8OybMgWFGwTWv4SfAcjy6NRPtGe74K5xl31EAWf2WWURrSzllWn 5f1wH+yImRSMKYWTGd7wfnILFRglMQJwlq15jsQguUQ4meCW+8xWAa8w9sptvoV/TiH1 bfGeA3gh6eIY4lqXNuCaCBwi1hnnWDjH2QLtIPqeovw7YggtRY65VKJ1TAff/CbXOEk3 YNi53AelL36Fmuu5z1WlyP+5xJeOkyXk3OzOhn/TTkAHv4HUNmEHwIXc21df2OSqjmVt QRlq69XmUz116LNLW0UBNWcxljBMKTv51qQH+WZL/ZinsbE1yfjLHqZVNqdX3TgaXbML 6s4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AhvUuQPL; 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 y21sor13528247plp.22.2018.12.31.09.01.52 for (Google Transport Security); Mon, 31 Dec 2018 09:01:52 -0800 (PST) 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:7614:: with SMTP id k20mr38244048pll.285.1546275712148; Mon, 31 Dec 2018 09:01:52 -0800 (PST) Received: from localhost.localdomain ([115.97.184.237]) by smtp.gmail.com with ESMTPSA id p7sm90692925pfj.72.2018.12.31.09.01.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Dec 2018 09:01:51 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Andre Przywara Cc: Chen-Yu Tsai , Simon Glass , Tom Rini , u-boot@lists.denx.de, linux-sunxi@googlegroups.com, Michael Trimarchi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v5 16/26] sunxi: Enable CLK Date: Mon, 31 Dec 2018 22:29:17 +0530 Message-Id: <20181231165927.13803-17-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181231165927.13803-1-jagan@amarulasolutions.com> References: <20181231165927.13803-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AhvUuQPL; 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: , CLK and DM_RESET drivers are now available for most of the Allwinner platforms, so enable in mach-sunxi/Kconfig Enabling CLK will select DM_RESET by default. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 3c54f5106d..5f51bbbed0 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -132,6 +132,7 @@ endif config MACH_SUNXI_H3_H5 bool + select CLK select DM_I2C select PHY_SUN4I_USB select SUNXI_DE2 @@ -154,6 +155,7 @@ config MACH_SUN4I bool "sun4i (Allwinner A10)" select CPU_V7A select ARM_CORTEX_CPU_IS_UP + select CLK select DM_MMC if MMC select DM_SCSI if SCSI select PHY_SUN4I_USB @@ -165,6 +167,7 @@ config MACH_SUN5I bool "sun5i (Allwinner A13)" select CPU_V7A select ARM_CORTEX_CPU_IS_UP + select CLK select DRAM_SUN4I select PHY_SUN4I_USB select SUNXI_GEN_SUN4I @@ -177,6 +180,7 @@ config MACH_SUN6I select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI + select CLK select DRAM_SUN6I select PHY_SUN4I_USB select SUN6I_P2WI @@ -191,6 +195,7 @@ config MACH_SUN7I select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI + select CLK select DRAM_SUN4I select PHY_SUN4I_USB select SUNXI_GEN_SUN4I @@ -203,6 +208,7 @@ config MACH_SUN8I_A23 select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI + select CLK select DRAM_SUN8I_A23 select PHY_SUN4I_USB select SUNXI_GEN_SUN6I @@ -216,6 +222,7 @@ config MACH_SUN8I_A33 select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI + select CLK select DRAM_SUN8I_A33 select PHY_SUN4I_USB select SUNXI_GEN_SUN6I @@ -226,6 +233,7 @@ config MACH_SUN8I_A33 config MACH_SUN8I_A83T bool "sun8i (Allwinner A83T)" select CPU_V7A + select CLK select DRAM_SUN8I_A83T select PHY_SUN4I_USB select SUNXI_GEN_SUN6I @@ -248,6 +256,7 @@ config MACH_SUN8I_R40 select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI + select CLK select SUNXI_GEN_SUN6I select SUPPORT_SPL select SUNXI_DRAM_DW @@ -259,6 +268,7 @@ config MACH_SUN8I_V3S select CPU_V7_HAS_NONSEC select CPU_V7_HAS_VIRT select ARCH_SUPPORT_PSCI + select CLK select SUNXI_GEN_SUN6I select SUNXI_DRAM_DW select SUNXI_DRAM_DW_16BIT @@ -277,6 +287,7 @@ config MACH_SUN9I config MACH_SUN50I bool "sun50i (Allwinner A64)" select ARM64 + select CLK select DM_I2C select PHY_SUN4I_USB select SUN6I_PRCM @@ -300,6 +311,7 @@ config MACH_SUN50I_H5 config MACH_SUN50I_H6 bool "sun50i (Allwinner H6)" select ARM64 + select CLK select SUPPORT_SPL select FIT select SPL_LOAD_FIT