Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2430288pxb; Sun, 17 Oct 2021 14:53:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiou4Glbv5y3U4m5C5DAjIGUlttTrAWEFQDpZwAuywTT5QVN2lKLUt46Sy9icyuSW56Rga X-Received: by 2002:a63:3f0b:: with SMTP id m11mr19885767pga.274.1634507614620; Sun, 17 Oct 2021 14:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634507614; cv=none; d=google.com; s=arc-20160816; b=KCUHS+YSCXKwPTuUurIS14Ku5fzyb11yU37WBiXrc4Qx3SrK73chfDjxZEI3WVNVQJ C+FX1xG8iWfuEHY+BSm43jIyvDWfeHH2J3dWex3aVu3WoR7HwowbW66zPuhChWClljN7 A4vQ2AyxS0EH5eds65EtaNfkdrmqif/FYO9mvM+OzvYiS4e7xbIhY5rbyPFR+Mf28M2C pf7pQxlRISJM55hKc2QR+EkS0cTez1kyKdJyWB99wjpFlBOlsJwnjxguRn3odYlkm9YX K8GV7/LYqOTTbzM10IFGSIz5Xma/eE4RSCA+rMAH/oN2CtNae60v5eX7DX20cBmh0/qY VhPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=AZ9WTiMvC9e4G/uZqQQpHMy2hMlfJtXb5LIrfZcbchc=; b=PO8794ACkmtCVOTibbeRx0LEDkNIHlvAn4QDAMrHM8X5zJGM1WH95UADtQZInJxgDY RClXALZg617uytMNjxsbHqnZ3YV4jRYODNLXFmASHVp88rScOkFFE39kpqNtiJxAEfGf BlV7m7fVigKxvF9KYMo1l6RDNxLWnyr2UhKgjB8zjKVbtQsPSg8lQicafEVi5x2wxt7Q PrvAcquN7Ohd5g42aNfwACgsL1gxE6vpHJav1V76p8Y5k+hl5lle7VU9sEqSSicT0SrZ lRs/X1yXAXhksuksStV+RSNnOsxn/A6CKW1LhhxjrXWloZ5Q5UkjVPsIZaNrmz98MAaT F15w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x3si7508630plo.430.2021.10.17.14.53.21; Sun, 17 Oct 2021 14:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238438AbhJOT24 (ORCPT + 99 others); Fri, 15 Oct 2021 15:28:56 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:58433 "EHLO mslow1.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238301AbhJOT2y (ORCPT ); Fri, 15 Oct 2021 15:28:54 -0400 Received: from relay6-d.mail.gandi.net (unknown [217.70.183.198]) by mslow1.mail.gandi.net (Postfix) with ESMTP id EF65ED6788 for ; Fri, 15 Oct 2021 19:21:47 +0000 (UTC) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 257CCC0002; Fri, 15 Oct 2021 19:21:26 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] rtc: add alarm related features Date: Fri, 15 Oct 2021 21:21:14 +0200 Message-Id: <20211015192121.817642-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211015192121.817642-1-alexandre.belloni@bootlin.com> References: <20211015192121.817642-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Correct and add alarm related features to be declared by drivers. Signed-off-by: Alexandre Belloni --- include/uapi/linux/rtc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h index f950bff75e97..60ea711b1843 100644 --- a/include/uapi/linux/rtc.h +++ b/include/uapi/linux/rtc.h @@ -113,8 +113,10 @@ struct rtc_pll_info { /* feature list */ #define RTC_FEATURE_ALARM 0 #define RTC_FEATURE_ALARM_RES_MINUTE 1 -#define RTC_FEATURE_NEED_WEEK_DAY 2 -#define RTC_FEATURE_CNT 3 +#define RTC_FEATURE_ALARM_RES_2S 2 +#define RTC_FEATURE_UPDATE_INTERRUPT 3 +#define RTC_FEATURE_NEED_WEEK_DAY 4 +#define RTC_FEATURE_CNT 5 #define RTC_MAX_FREQ 8192 -- 2.31.1