From patchwork Wed Apr 17 14:47:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10905455 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 962B217E0 for ; Wed, 17 Apr 2019 14:47:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79D47223B3 for ; Wed, 17 Apr 2019 14:47:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DCAD28740; Wed, 17 Apr 2019 14:47:24 +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 DD269223B3 for ; Wed, 17 Apr 2019 14:47:23 +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: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:In-Reply-To:References: List-Owner; bh=HDUo1KpsjCsBuJwuUS8kH4MF9hZTIkmIKIXAgx7O0i0=; b=G4IVk/2Ws8iSzJ 9Zv0b/zfoOJTNlqnZvLcwBc1qpE4BvcKo9viabbar5Ae5fScPEnEndG5GCzkOd/DqxlX7yaWPdV5h 0SQMppJ0Crkv9OdIsJ1FVA9/H/iG5YOUiAlKeD6lCTkOI0p5krlvNC6VIeIKfGQK6fqLB+XWAu79J weR0pRAyeRJ2BIhVxdGJN4+Ft4pnms2ci0oBNFWIkNQG0z2+lNxDYqNbuf/+owvOssZhh3+J7xAZ1 RRBLqJtBxVcD6+qTURLltOpv/N2lWj4dYMLosl3zjQDTnjQ0StsqtpDqUCdNSORD32Nj3Xa11srzD uv2rDsx2SuvAXvGRHsfg==; 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 1hGlqJ-00039i-7v; Wed, 17 Apr 2019 14:47:19 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGlqG-0002yy-Eu for linux-arm-kernel@lists.infradead.org; Wed, 17 Apr 2019 14:47:17 +0000 Received: by mail-wr1-x436.google.com with SMTP id t17so32270303wrw.13 for ; Wed, 17 Apr 2019 07:47: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:mime-version :content-transfer-encoding; bh=Ap5mFoaMo2tPo1FsQ32/BuCFfhQsUubSQirVoPHo5A8=; b=gviqNG1FKCBvLVos2UlZMicJH5v40N4P+78E9eA4VqxbVjoLhV7AFm6McLDORs5lIk dbyKxmbNyImDI09DxnVJniQGxN3zFYSMWrm3Q59ovL8iST96Pgq1YubUJ/iupTCiXdxF TYPD04I+yiamBpp0MLE1v5QikRbWm8eP3o9N9quF8bEPJBkdSDlvZbGAfGlHkJSF4la4 uxbykwNTei+fRWGGY44vI121FOENDStOqQrBgVS0oeV5Lzbj4XBnWBP1/YDRNrz002wT kSnxF/RUSc35ZQN0DWlAHMH5Fy6cnbbtq2+CyurLf2T6HbQTZx2IIYAcZ/BmNbVfcBNO HLfw== 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:mime-version :content-transfer-encoding; bh=Ap5mFoaMo2tPo1FsQ32/BuCFfhQsUubSQirVoPHo5A8=; b=CDpCsuoYuLrUqYHbHdaU3o7Sk1JWJRXzA+xXEU+RjY+tSMLCAYzLohClzD6IyYljcz kLEKdP/G6CW9UmgmgnRuyCN2/mr/ODX1TZmHh50+r7KOukPWOmC6hdh3rEWT729EaxHJ 6qMXPkYLTJ4nti1RDLdxSnXkixF8E/8TM/cGj04P1+dAQ13SsR/EnV9icWu01W8qK8/L EpzhNR7eiJxblCrlu5jX15JoTX1WoOjbBHvqhkdcMG1WO2U9vu1bkOvrR6u0DCfoQKoX 42fks5DqF0M6NaArqXkjU+aOoWwmGAZ18Xnumf2hll3JhMlqrrmJXhqq2x4yk9hB/WAY NvWg== X-Gm-Message-State: APjAAAWV88b57MV7CEhg8K0lbUGsOe2zqAglcd0pe2X1dAIsfVW/Fp3I FcUwtKMJ/NzXCXLulHjCn88dtA== X-Google-Smtp-Source: APXvYqxL2lgRlHpFw+OzGQVAuHsPczWAB3MtT3I96JFcGMR9l5EachbZYY4y0Z6lwBGVTX6hSyyhgg== X-Received: by 2002:adf:ea43:: with SMTP id j3mr33344502wrn.210.1555512434371; Wed, 17 Apr 2019 07:47:14 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-15-216.w90-86.abo.wanadoo.fr. [90.86.218.216]) by smtp.gmail.com with ESMTPSA id u17sm5582862wmu.36.2019.04.17.07.47.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 07:47:13 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Daniel Lezcano , Thomas Gleixner , David Lechner Subject: [RFC 0/2] clocksource: davinci-timer: new driver Date: Wed, 17 Apr 2019 16:47:07 +0200 Message-Id: <20190417144709.19588-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190417_074716_570578_A703DCFE X-CRM114-Status: GOOD ( 10.81 ) 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 Hi Daniel, as discussed - this is the davinci timer driver split into the clockevent and clocksource parts. Since it won't work without all the other (left out for now) changes, I'm marking it as RFC. The code has been simplified as requested, the duplicated enums and the davinci_timer structure have been removed. Please let me know if that's better. I retested it on da850-lcdk, da830-evm and dm365-evm. Bartosz Golaszewski (2): clocksource: davinci-timer: add support for clockevents clocksource: timer-davinci: add support for clocksource drivers/clocksource/Kconfig | 5 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-davinci.c | 342 ++++++++++++++++++++++++++++ include/clocksource/timer-davinci.h | 44 ++++ 4 files changed, 392 insertions(+) create mode 100644 drivers/clocksource/timer-davinci.c create mode 100644 include/clocksource/timer-davinci.h