From patchwork Mon Mar 18 12:10:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10857501 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5C62F1669 for ; Mon, 18 Mar 2019 12:11:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EB8D29429 for ; Mon, 18 Mar 2019 12:11:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CCEF29430; Mon, 18 Mar 2019 12:11:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE9B529429 for ; Mon, 18 Mar 2019 12:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bs4lQCYczpdHIEZQjQ1V9SGFjHLATWdumnY2N5GTD6E=; b=X2hAdSJvzKMuEO xTCp10QJGlMCO4EZaZJkuFaf4vrm0uEYaaSGrhcf64c5r9kqjfTvBAoN3Ohva303ZtwOGfA/9MKdz +DI5SZ+jMsvBXlRpLM8P6LaJZ/brxvr3DpIzD/zxSEuef0/xmd/9uDJtO6jJCib+GPe9RbfiAqjk/ Z6m99WA0i2jhEuECWb2GDnwPbe0yYjJqgs8+0Mb4d57fHgBPxmSrEgadx4F/bgRC69DB/yh3hjoaX ZSxBfzY3zG8i7SUXPg9Rh2gQvsUo91VhsZA7b+on0Mt6b8nUwb1PmN0knf+Sg1zo8UOVJ/SeRb+Lk QOBYwfwbPWfVo/vP/Mpg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5r7H-00060z-5w; Mon, 18 Mar 2019 12:11:43 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5r6p-0005VR-Lu for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2019 12:11:17 +0000 Received: by mail-wm1-x343.google.com with SMTP id e74so12716386wmg.3 for ; Mon, 18 Mar 2019 05:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OLg3L6grnAGmFYQazg7azf3p/k2fOQDJEXr143gP9xI=; b=Tq4VqcHQYH2yJ/RnjuEvkQ1xd1BcnqsNAglnJlItTA2HC6JIi8z0fu+DDlilm86mfo qBSj9xIEFxYJCHPsyMipzxUPcng20RfC4b0LSOGxzsbon/10v4jPcCH/2oyyVEoDddde Lyxg7Mvaelf+1a7AxK173uAOgHx3uuuM03Dsy5Q9G6QE5akEHFBTIPbP1ESYfuS4ZAdf 5msSuZNgzpvOHCx4FwvnWiLHs/FFMgiUrRmx8y5+LrbuOqJarmPLsJC+Kfnf+HJe58yH PCq58uKG0Yu8lRXam0vOgSin4EtW0wLlTAJtIo8hTmNjsF5g8HIJgjmHmhvK4va/dZy9 gtJg== 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=OLg3L6grnAGmFYQazg7azf3p/k2fOQDJEXr143gP9xI=; b=h/WqZw9c7i8GVeOucWEKQQT9mvtr8NboXL7kggIc+ZSxfmeZMK8SzyrjC+72vuQ+f3 LLSiBSlS7HhFjSGmOD2kd1qdWmJ3sd9hBQ6Zk7CT7ywDoZju8IDhDgxmd687Kn8UAHKu KMSPmtTdqXsmS2efcpoAtbRZ5rNspVYZY9bgdbQC4OzJYClWm0Gy6IK/0g61XthBp4oD AqsrQ2JfOj81ZXJhc4ESbwNt0+A667ZhlMZZfn0Vt9fOWdaMOQlh+hNVutdhIipQBCe5 pTAdrmadVhcedA9ok4PdznooyadUziXuAI9SD5pmXRxSp9U0p7ZduExSmvuvYfuS2ugw VC7Q== X-Gm-Message-State: APjAAAWpc0EXtrNjAr+rP7lHTrA6CGCKqdOa0S56vBSeg4EQe2gTmeNY cPps2/tq275mKJNMigafN7zEAw== X-Google-Smtp-Source: APXvYqyCYmMm3aViu7XD8Ig/s1tPFFZLmRq13e6EKNcCU8G2Afhso/zmyB++lHcfS6EJiCcOw5fuXw== X-Received: by 2002:a7b:c3c5:: with SMTP id t5mr10744612wmj.110.1552911074203; Mon, 18 Mar 2019 05:11:14 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id n13sm8220132wrw.67.2019.03.18.05.11.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 05:11:13 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Daniel Lezcano , Thomas Gleixner , David Lechner Subject: [PATCH v4 02/11] ARM: davinci: enable the clocksource driver for DT mode Date: Mon, 18 Mar 2019 13:10:51 +0100 Message-Id: <20190318121100.28132-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318121100.28132-1-brgl@bgdev.pl> References: <20190318121100.28132-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190318_051115_716076_CA385D1A X-CRM114-Status: GOOD ( 13.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski Switch all davinci boards supporting device tree to using the new clocksource driver: remove the previous OF_TIMER_DECLARE() from mach-davinci and select davinci-timer for ARCH_DAVINCI. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/Kconfig | 1 + arch/arm/mach-davinci/time.c | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 054ead960f98..f893798e13d3 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -588,6 +588,7 @@ config ARCH_DAVINCI select ARCH_HAS_HOLES_MEMORYMODEL select COMMON_CLK select CPU_ARM926T + select DAVINCI_TIMER select GENERIC_ALLOCATOR select GENERIC_CLOCKEVENTS select GENERIC_IRQ_CHIP diff --git a/arch/arm/mach-davinci/time.c b/arch/arm/mach-davinci/time.c index 5a6de5368ab0..740410a3bb6a 100644 --- a/arch/arm/mach-davinci/time.c +++ b/arch/arm/mach-davinci/time.c @@ -398,17 +398,3 @@ void __init davinci_timer_init(struct clk *timer_clk) for (i=0; i< ARRAY_SIZE(timers); i++) timer32_config(&timers[i]); } - -static int __init of_davinci_timer_init(struct device_node *np) -{ - struct clk *clk; - - clk = of_clk_get(np, 0); - if (IS_ERR(clk)) - return PTR_ERR(clk); - - davinci_timer_init(clk); - - return 0; -} -TIMER_OF_DECLARE(davinci_timer, "ti,da830-timer", of_davinci_timer_init);