From patchwork Wed Jan 20 10:21:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 570626 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 393C8140B8C for ; Wed, 20 Jan 2016 21:21:37 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D9D7228C03E; Wed, 20 Jan 2016 11:20:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 939A128BFFF for ; Wed, 20 Jan 2016 11:20:33 +0100 (CET) X-policyd-weight: using cached result; rate:hard: -6.6 Received: from mengele.ibawizard.net (ibawizard.net [82.208.49.253]) by arrakis.dune.hu (Postfix) with ESMTP for ; Wed, 20 Jan 2016 11:20:33 +0100 (CET) Received: from localhost.localdomain (localhost [127.0.0.1]) by mengele.ibawizard.net (Postfix) with ESMTP id D31F21D36003; Wed, 20 Jan 2016 11:21:10 +0100 (CET) From: =?UTF-8?q?Petr=20=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Wed, 20 Jan 2016 11:21:06 +0100 Message-Id: <1453285266-20644-1-git-send-email-ynezz@true.cz> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1453132918-8331-1-git-send-email-ynezz@true.cz> References: <1453132918-8331-1-git-send-email-ynezz@true.cz> MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH v3] kernel: Add kernel module for Freescale SNVS RTC on chip module X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Petr Štetiar --- Changes in v3: * changed module to autload during boot, so it can be used as RTC source in sysfixtime init.d script package/kernel/linux/modules/other.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index b244fbe..528d32f 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -666,6 +666,22 @@ endef $(eval $(call KernelPackage,rtc-pt7c4338)) +define KernelPackage/rtc-snvs + SUBMENU:=$(OTHER_MENU) + TITLE:=Freescale SNVS RTC support + DEPENDS:=@TARGET_imx6 @RTC_SUPPORT + KCONFIG:=CONFIG_RTC_DRV_SNVS \ + CONFIG_RTC_CLASS=y + FILES:=$(LINUX_DIR)/drivers/rtc/rtc-snvs.ko + AUTOLOAD:=$(call AutoLoad,50,rtc-snvs,1) +endef + +define KernelPackage/rtc-snvs/description + Kernel module for Freescale SNVS RTC on chip module +endef + +$(eval $(call KernelPackage,rtc-snvs)) + define KernelPackage/mtdtests SUBMENU:=$(OTHER_MENU)