Received: by 10.223.176.46 with SMTP id f43csp1046753wra; Sat, 20 Jan 2018 09:40:27 -0800 (PST) X-Google-Smtp-Source: AH8x224ynrfHsW6Dw7DMWSk4t9AdMarWAOZHe3chHkY5vRKB0NEMEW0epiby9Aqs9jqCxScbxvWz X-Received: by 2002:a17:902:860a:: with SMTP id f10-v6mr1180640plo.292.1516470027817; Sat, 20 Jan 2018 09:40:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516470027; cv=none; d=google.com; s=arc-20160816; b=UI1zN6pFu8bmhsMRgXsgvsV7aAxCpLG1TKLSkmyBrEn+Y7cC95/dRtgGg88k2/8ESR u43u8oe16m9dp3IXBY0Oo9/bDKUDWalwlNhrj0AFDn/VCzRyGtaHImshI8ByFOzZ6nvZ gSkbEluNoxXcgpEWFcK4xxU0gLmfM5to9t5zS/Vt6nx44lq6CO31k3ZSU2ySjY+bhLXv 3S22xdzmYlBk0cUZnQRKrs/uopjTBdWP/0uQIfcDu4hlL058OykUmF1Ozl4HHOyz7+AR ZqQXhYKwq6Nz3K1hAe5e5HuT81ENgR8ltlMFzlekkieNAx+WYaOE7ghjH8mahvriLk+9 7gng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=2DfyJWSeOz3CHmh9yl2IgJpg3IAAhR2qSfy+jNWHDAg=; b=X5haH96xUMS7/c6aMa0gIjPXuAIYT11nPxA2me058SBu8VLSKD8K7o2tOO/UKmAEIV OkUCaI8alwuSsGVmopr1UaEG6PYaE2vlrpF/OC6vV0ysR06KQOwl0OmSUkeDaAyU+FNm Ct+6mo5OtWuSTPafELhZvxiznyq7M8WE1niW4ih/lQfV9Od0gXn5imGHuMK2aF/I+jqs HfjvLQEVMKXrCw/JaFM3gY8PebnL/mjlpgni1Rj7OzV/RtmUuFBlsoEjttA/J4YmGl9b T64gZedbpp9va7+XI8aWnpplhZyNvGxNWdmKy74Wvce4eTrffBY8mtwudgPPObQPUWFu ph2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=hYmK0Ch/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si2368895pge.563.2018.01.20.09.40.13; Sat, 20 Jan 2018 09:40:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=hYmK0Ch/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756589AbeATRjV (ORCPT + 99 others); Sat, 20 Jan 2018 12:39:21 -0500 Received: from vern.gendns.com ([206.190.152.46]:43663 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754913AbeATRjN (ORCPT ); Sat, 20 Jan 2018 12:39:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2DfyJWSeOz3CHmh9yl2IgJpg3IAAhR2qSfy+jNWHDAg=; b=hYmK0Ch/QT3oEsVkTZoenmO1J mWNPNCJqGUQW0hQH9uLG1HgJqasDv9wi1v/SqQvEGFI0mRqW3XcTO9w0K3hlWBkObPsgDssmO5/eb qtWczm1oha4vxf4b80E8UfpCx6rX9DCgBgJdO208fdQgta9KbkT/Tce1EB+ybYCTm9ZrDJ/Z/s0DU dX9+Wd7l8JFh1dyGccyWrrVrGUoDHLEXP/9LSVKmBZrj7gsTZrs1a+trL8PlOiR3D0yi2l9IDlVwN IDQim0FdFccYoh+J8sRuga99ThJA47+J4R78EyL0aK2zUtWcYo6nhmvIKpPhxC3FHjmK42rqsMi1H XnULjE2rQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:53590 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ecwk0-00059q-EL; Sat, 20 Jan 2018 12:15:40 -0500 From: David Lechner To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , Adam Ford , linux-kernel@vger.kernel.org, David Lechner Subject: [PATCH v6 40/41] ARM: da8xx-dt: switch to device tree clocks Date: Sat, 20 Jan 2018 11:14:19 -0600 Message-Id: <1516468460-4908-41-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516468460-4908-1-git-send-email-david@lechnology.com> References: <1516468460-4908-1-git-send-email-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This removes all of the clock init code from da8xx-dt.c. This includes all of the OF_DEV_AUXDATA that was just used for looking up clocks. Signed-off-by: David Lechner --- v6 changes: - removed misleading statement from commit message arch/arm/mach-davinci/da8xx-dt.c | 61 +--------------------------------------- 1 file changed, 1 insertion(+), 60 deletions(-) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index ab199f4..d5c6cdb 100644 --- a/arch/arm/mach-davinci/da8xx-dt.c +++ b/arch/arm/mach-davinci/da8xx-dt.c @@ -19,69 +19,11 @@ #include "cp_intc.h" #include -static struct of_dev_auxdata da850_aemif_auxdata_lookup[] = { - OF_DEV_AUXDATA("ti,davinci-nand", 0x62000000, "davinci-nand.0", NULL), - {} -}; - -static struct aemif_platform_data aemif_data = { - .dev_lookup = da850_aemif_auxdata_lookup, -}; - -static struct of_dev_auxdata da850_auxdata_lookup[] __initdata = { - OF_DEV_AUXDATA("ti,davinci-i2c", 0x01c22000, "i2c_davinci.1", NULL), - OF_DEV_AUXDATA("ti,davinci-i2c", 0x01e28000, "i2c_davinci.2", NULL), - OF_DEV_AUXDATA("ti,davinci-wdt", 0x01c21000, "davinci-wdt", NULL), - OF_DEV_AUXDATA("ti,da830-mmc", 0x01c40000, "da830-mmc.0", NULL), - OF_DEV_AUXDATA("ti,da850-ehrpwm", 0x01f00000, "ehrpwm.0", NULL), - OF_DEV_AUXDATA("ti,da850-ehrpwm", 0x01f02000, "ehrpwm.1", NULL), - OF_DEV_AUXDATA("ti,da850-ecap", 0x01f06000, "ecap.0", NULL), - OF_DEV_AUXDATA("ti,da850-ecap", 0x01f07000, "ecap.1", NULL), - OF_DEV_AUXDATA("ti,da850-ecap", 0x01f08000, "ecap.2", NULL), - OF_DEV_AUXDATA("ti,da830-spi", 0x01c41000, "spi_davinci.0", NULL), - OF_DEV_AUXDATA("ti,da830-spi", 0x01f0e000, "spi_davinci.1", NULL), - OF_DEV_AUXDATA("ns16550a", 0x01c42000, "serial8250.0", NULL), - OF_DEV_AUXDATA("ns16550a", 0x01d0c000, "serial8250.1", NULL), - OF_DEV_AUXDATA("ns16550a", 0x01d0d000, "serial8250.2", NULL), - OF_DEV_AUXDATA("ti,davinci_mdio", 0x01e24000, "davinci_mdio.0", NULL), - OF_DEV_AUXDATA("ti,davinci-dm6467-emac", 0x01e20000, "davinci_emac.1", - NULL), - OF_DEV_AUXDATA("ti,da830-mcasp-audio", 0x01d00000, "davinci-mcasp.0", NULL), - OF_DEV_AUXDATA("ti,da850-aemif", 0x68000000, "ti-aemif", &aemif_data), - OF_DEV_AUXDATA("ti,da850-tilcdc", 0x01e13000, "da8xx_lcdc.0", NULL), - OF_DEV_AUXDATA("ti,da830-ohci", 0x01e25000, "ohci-da8xx", NULL), - OF_DEV_AUXDATA("ti,da830-musb", 0x01e00000, "musb-da8xx", NULL), - OF_DEV_AUXDATA("ti,da830-usb-phy", 0x01c1417c, "da8xx-usb-phy", NULL), - OF_DEV_AUXDATA("ti,da850-ahci", 0x01e18000, "ahci_da850", NULL), - OF_DEV_AUXDATA("ti,da850-vpif", 0x01e17000, "vpif", NULL), - OF_DEV_AUXDATA("ti,da850-dsp", 0x11800000, "davinci-rproc.0", NULL), - {} -}; - #ifdef CONFIG_ARCH_DAVINCI_DA850 static void __init da850_init_machine(void) { - /* All existing boards use 100MHz SATA refclkpn */ - static const unsigned long sata_refclkpn = 100 * 1000 * 1000; - - int ret; - - ret = da8xx_register_usb20_phy_clk(false); - if (ret) - pr_warn("%s: registering USB 2.0 PHY clock failed: %d", - __func__, ret); - ret = da8xx_register_usb11_phy_clk(false); - if (ret) - pr_warn("%s: registering USB 1.1 PHY clock failed: %d", - __func__, ret); - - ret = da850_register_sata_refclk(sata_refclkpn); - if (ret) - pr_warn("%s: registering SATA REFCLK failed: %d", - __func__, ret); - - of_platform_default_populate(NULL, da850_auxdata_lookup, NULL); + of_platform_default_populate(NULL, NULL, NULL); davinci_pm_init(); pdata_quirks_init(); } @@ -96,7 +38,6 @@ static const char *const da850_boards_compat[] __initconst = { DT_MACHINE_START(DA850_DT, "Generic DA850/OMAP-L138/AM18x") .map_io = da850_init, - .init_time = da850_init_time, .init_machine = da850_init_machine, .dt_compat = da850_boards_compat, .init_late = davinci_init_late, -- 2.7.4