From patchwork Thu May 23 12:58:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10957577 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 AD65214B6 for ; Thu, 23 May 2019 12:58:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92A3B2842A for ; Thu, 23 May 2019 12:58:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87136284E9; Thu, 23 May 2019 12:58:27 +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 31331284F5 for ; Thu, 23 May 2019 12:58:27 +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=by/Ax12cW78CKz8M8eka7iN5w7EVCBks5dbM/atu9ns=; b=sYnD/sxfDLjKLf uLn5WDdENP6Ex+fme/M12wbMs6Vqou9TSodT6PVD5OrKo2LBJsvklxDNrzJU1u+6OZv/GAAgvBoII GcgBTnUimSCgPlQzafw5S8IkPVy/+M0h//AjqTyv1/+PIjEif3yIzaMj7DwEQf6qLmDp/VaTJvQ48 0c7NVWyfxKgD/VUicVVIZ9kngl9kQAiF2bqlLz2EWbUV2Xyq3ZoEL/vDEihrrofCHrQpLaJByZlAw +Moh8GlCk3Cos7WyN07cjZRWSSWwPwgAAcpGXySArfx1nISbXjYWEeeMLhII315rJpT6N+4q1ZjWL 3VSkZobZ00+HzqCiD7tA==; 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 1hTnId-00052I-3t; Thu, 23 May 2019 12:58:23 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTnIY-00050T-Tq for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2019 12:58:20 +0000 Received: by mail-wm1-x335.google.com with SMTP id c66so7070202wme.0 for ; Thu, 23 May 2019 05:58:17 -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=o/wtiYR2xsTC11waSO0yQUkZ4S3S31FqfgaPX+rcr4s=; b=r9PZXAbFtJJPPvfQKRF6s1VHnG3klpb3OOQ9YbAaVc30OrfbyFjPcDaG8WTk7KnD/L wk6pIuXqTf4vOm2od99w7Gexv/tKuwTYb/vvCeEwIvK80SqkgbvRsJ9FHuQDWtuoG53H OZS6AEaWh89rv6PE3k7On3pIorUmC1ToiWFgTxcPTKuwsTx145B0OMOU5GVR61icBFtY dTNkQTBVq+F2qSfvgl6CUyFZqUFozzzOLBmPlmw/h2zLtgvG4ulfOqeRzAFhGIymUDff 1H4lDDPPZt+UeupJvdXu8X7wV/wRH75j9sWdmyEAu2GXXQZ39U0OI6mZ4Mq4Ryu8vwLF jWZA== 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=o/wtiYR2xsTC11waSO0yQUkZ4S3S31FqfgaPX+rcr4s=; b=eUBqFJ3aUsOv9YgiKUEtKIcgidlZ7IX180SfZjp1ZLp14KxZTMK6S37xWkUOaNXd7C CGvKaRaSjGWxRP5uAwWJvH5skRJQoQc/4lvZdak4jTkb5f6sHcQAp1+sLEP0rq3gq/sO Vd+wshvJFlHYA9a6a4t5cnmEhcioCxeTAc8yaQ0v4jyzTbAh8mSfw9KPBDoSQgxxhvik CAP5GFXfMPUrCiCB0eSYZyQS+32SLPpNQuQ4plslLngbiJKZzwrCI/DFtWWJvaMUiRLX Ovghu254MeZVdCt1Og3F2WlqF40Oh4eRZM0gS7+uItLMQX921i7f/OA8pZWbYxZJOQpJ OgHQ== X-Gm-Message-State: APjAAAWnvX/ID9fscXdKsRSttT/iDghxZEnnThzEz9bDn1NoEhcUsL5b waRvnm1+2ruCAiAO5huD0i+eiw== X-Google-Smtp-Source: APXvYqwK7EF3A/sETDYJqJjEvH+9WhzGaBLe8eflWij1cL5o/3OTIchEO4ol0wDyLjpwfdW/vL7BGQ== X-Received: by 2002:a1c:a958:: with SMTP id s85mr11479598wme.144.1558616296604; Thu, 23 May 2019 05:58:16 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id s13sm9876118wmh.31.2019.05.23.05.58.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 05:58:15 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Daniel Lezcano , Thomas Gleixner , David Lechner Subject: [RFC v2 0/2] clocksource: davinci-timer: new driver Date: Thu, 23 May 2019 14:58:11 +0200 Message-Id: <20190523125813.29506-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-20190523_055819_016550_FC51489B X-CRM114-Status: GOOD ( 11.82 ) 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, this is another try at the davinci clocksource driver. Changes in regard to v1 listed below. As before, the driver is split into two parts (one for clockevent and one for clocksource). v1 -> v2: - changed the format of the copyright notice - removed all mentiones of the periodic timer setting - added caching of the TCR register value so that its updating doesn't require a read - split the timer configuration for clock events into the set_state_oneshot() and set_state_shutdown() callbacks 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 | 355 ++++++++++++++++++++++++++++ include/clocksource/timer-davinci.h | 44 ++++ 4 files changed, 405 insertions(+) create mode 100644 drivers/clocksource/timer-davinci.c create mode 100644 include/clocksource/timer-davinci.h