Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3109836pxb; Mon, 18 Oct 2021 08:24:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7GJanIXKNsD7zr12Hzf5e2UoDa9FkXG60pm/tx8wA5SPLiBW4BcGqLju/QzcGJtrhOACZ X-Received: by 2002:a05:6402:b84:: with SMTP id cf4mr44428059edb.385.1634570643231; Mon, 18 Oct 2021 08:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634570643; cv=none; d=google.com; s=arc-20160816; b=Szl3oGao2g/PEueGxKGaZy9WEHEZUlujxmqIGWZoE91i6YBmh1SwVI+LJJ4OjIVaTh R/0yyf2UDOfnGoPC5MRLH++Q7hDqfj8uThuBCJxYagthVSsXo3MzwOBi8fyyaQJ1F3fR glqw75O65wrAK8uDkJ/0g4opoofITnA177NpBXjIArDi0vZsS4DxisZMDrVgF2rZxEXy PY3ByBJ9PWkQuS9Lm5sbQZsDSnrlYsgROAOFuBDILs0uLuCr3uwtuProDrgdcrvj3/2I +hEPK+KU7NsD+bH1Ly3Cka1zOHozpRH481xqY7reSAFHtkwXjCncNm2mMesyQldDNqsk ROZQ== 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=yCyK+k2KfCveZEpXipj5NWhdzSrfwj81adsAYl+RcGQ=; b=vG+JS+ZgG+Pt/mHLl+CLutAx+p3kf+PyJst6z1fOS9RStFjzBPUsCjdN5t59BkXY1J 5GIZwRL8n9Y34rdwAB8wt+vZLT+jwH3ZiOMN5ksI8Q6GkZhbg5OWpeCdWPZTTOnfGZkP yJXo20LvCujryFx97XfcLZ0gKXUlqxLkJnmrga6V0SWmCMFF2cZ5hHkbrKgv1pNahKCj mGDmwN4Fl3Yjmf2arRfwI1NKXPwS2kwPGt1K+zuztMci3NSL9trn/xiS9nCRB4205o4N AS6TZGD/SnW1LJSiyKrGkLycPmYS+/X5Iti9ti5vDsmS+QvJMOCDrO7OEzmraGL14vSs 1r3g== 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 z3si18624897edl.170.2021.10.18.08.23.38; Mon, 18 Oct 2021 08:24:03 -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 S233230AbhJRPVw (ORCPT + 99 others); Mon, 18 Oct 2021 11:21:52 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:44047 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233109AbhJRPVv (ORCPT ); Mon, 18 Oct 2021 11:21:51 -0400 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 4FB1B240009; Mon, 18 Oct 2021 15:19:38 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/7] rtc: add alarm related features Date: Mon, 18 Oct 2021 17:19:27 +0200 Message-Id: <20211018151933.76865-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211018151933.76865-1-alexandre.belloni@bootlin.com> References: <20211018151933.76865-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 Add more alarm related features to be declared by drivers. Signed-off-by: Alexandre Belloni --- include/uapi/linux/rtc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h index f950bff75e97..f4037c541925 100644 --- a/include/uapi/linux/rtc.h +++ b/include/uapi/linux/rtc.h @@ -114,7 +114,9 @@ struct rtc_pll_info { #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 3 +#define RTC_FEATURE_UPDATE_INTERRUPT 4 +#define RTC_FEATURE_CNT 5 #define RTC_MAX_FREQ 8192 -- 2.31.1