From patchwork Tue Oct 18 21:26:59 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: 683889 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sz7Vv03vrz9ryZ for ; Wed, 19 Oct 2016 08:29:11 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwbv0-0005PR-SJ; Tue, 18 Oct 2016 21:27:30 +0000 Received: from ibawizard.net ([82.208.49.253] helo=mengele.ibawizard.net) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwbuw-0005M9-Ja for lede-dev@lists.infradead.org; Tue, 18 Oct 2016 21:27:27 +0000 Received: from ntbk.lan (localhost [127.0.0.1]) by mengele.ibawizard.net (Postfix) with ESMTP id 4EB1B1D3606F; Tue, 18 Oct 2016 23:27:00 +0200 (CEST) From: =?UTF-8?q?Petr=20=C5=A0tetiar?= To: lede-dev@lists.infradead.org Date: Tue, 18 Oct 2016 23:26:59 +0200 Message-Id: <1476826019-8802-1-git-send-email-ynezz@true.cz> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161018_142726_839285_FFCB8BC7 X-CRM114-Status: UNSURE ( 5.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH] imx6: Add ds1307 RTC to kernel for working hctosys X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Harvey , =?UTF-8?q?Petr=20=C5=A0tetiar?= Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Otherwise if we use ds1307 as kernel module, hctosys fails as ds1307 is being initialized later then hctosys: [ 2.427349] hctosys: unable to open rtc device (rtc0) [ 3.714263] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1 [ 8.990061] rtc-ds1307 3-006f: rtc core: registered mcp7941x as rtc0 Signed-off-by: Petr Štetiar --- target/linux/imx6/config-4.4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/imx6/config-4.4 b/target/linux/imx6/config-4.4 index f749f9e..e7b020b 100644 --- a/target/linux/imx6/config-4.4 +++ b/target/linux/imx6/config-4.4 @@ -163,6 +163,7 @@ CONFIG_GENERIC_STRNLEN_USER=y # CONFIG_GIANFAR is not set CONFIG_GLOB=y CONFIG_GPIOLIB=y +CONFIG_GPIOLIB_IRQCHIP=y CONFIG_GPIO_DEVRES=y CONFIG_GPIO_GENERIC=y CONFIG_GPIO_MXC=y @@ -352,6 +353,7 @@ CONFIG_REGULATOR_PFUZE100=y CONFIG_RFS_ACCEL=y CONFIG_RPS=y CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_DS1307=y # CONFIG_RTC_DRV_IMXDI is not set # CONFIG_RTC_DRV_MXC is not set CONFIG_RWSEM_SPIN_ON_OWNER=y