From patchwork Mon Oct 25 09:22:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priyanka Jain X-Patchwork-Id: 71919 X-Patchwork-Delegate: galak@kernel.crashing.org Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 47C1D152451 for ; Mon, 25 Oct 2010 11:24:29 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id 334D22000369 for ; Mon, 25 Oct 2010 11:24:29 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.17) for (single-drop); Mon, 25 Oct 2010 11:24:29 +0200 (CEST) Received: from murder ([192.168.6.180]) by backend2 (Cyrus v2.2.12) with LMTPA; Mon, 25 Oct 2010 11:23:30 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.mail.m-online.net (Cyrus v2.2.12) with LMTPA; Mon, 25 Oct 2010 11:23:29 +0200 Received: from scanner-4.m-online.net (scanner-4.mail.m-online.net [192.168.1.18]) by mail.m-online.net (Postfix) with ESMTP id CBC3E1C000BF; Mon, 25 Oct 2010 11:23:29 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-1.m-online.net (Postfix) with ESMTP id 41CD346C0C8; Mon, 25 Oct 2010 11:23:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 84A5E28099; Mon, 25 Oct 2010 11:23:18 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FY6ldMzjh2Lf; Mon, 25 Oct 2010 11:23:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 446E72809A; Mon, 25 Oct 2010 11:23:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 209E628097 for ; Mon, 25 Oct 2010 11:23:10 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WO-n6kxaIxAE for ; Mon, 25 Oct 2010 11:23:08 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from DB3EHSOBE006.bigfish.com (db3ehsobe006.messaging.microsoft.com [213.199.154.144]) by theia.denx.de (Postfix) with ESMTPS id 05A6028089 for ; Mon, 25 Oct 2010 11:23:05 +0200 (CEST) Received: from mail19-db3-R.bigfish.com (10.3.81.253) by DB3EHSOBE006.bigfish.com (10.3.84.26) with Microsoft SMTP Server id 14.1.225.8; Mon, 25 Oct 2010 09:23:05 +0000 Received: from mail19-db3 (localhost.localdomain [127.0.0.1]) by mail19-db3-R.bigfish.com (Postfix) with ESMTP id E1D9619E850E for ; Mon, 25 Oct 2010 09:23:04 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh87h2a8h61h) X-Spam-TCS-SCL: 0:0 X-FB-DOMAIN-IP-MATCH: fail Received: from mail19-db3 (localhost.localdomain [127.0.0.1]) by mail19-db3 (MessageSwitch) id 1287998579226432_18697; Mon, 25 Oct 2010 09:22:59 +0000 (UTC) Received: from DB3EHSMHS001.bigfish.com (unknown [10.3.81.252]) by mail19-db3.bigfish.com (Postfix) with ESMTP id 355BF1248053 for ; Mon, 25 Oct 2010 09:22:59 +0000 (UTC) Received: from de01egw01.freescale.net (192.88.165.102) by DB3EHSMHS001.bigfish.com (10.3.87.101) with Microsoft SMTP Server (TLS) id 14.0.482.44; Mon, 25 Oct 2010 09:22:58 +0000 Received: from az33smr02.freescale.net (az33smr02.freescale.net [10.64.34.200]) by de01egw01.freescale.net (8.14.3/8.14.3) with ESMTP id o9P9NdMd005353 for ; Mon, 25 Oct 2010 02:23:39 -0700 (MST) Received: from ld1090.zin33.ap.freescale.net (ld1090.zin33.ap.freescale.net [10.232.20.90]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id o9P9MtjE029519; Mon, 25 Oct 2010 04:22:56 -0500 (CDT) Received: by ld1090.zin33.ap.freescale.net (Postfix, from userid 65011109) id 4D7292806B; Mon, 25 Oct 2010 14:52:54 +0530 (IST) From: Priyanka Jain To: Date: Mon, 25 Oct 2010 14:52:53 +0530 Message-ID: <1287998573-626-1-git-send-email-Priyanka.Jain@freescale.com> X-Mailer: git-send-email 1.6.5.6 MIME-Version: 1.0 X-Reverse-DNS: de01egw01.freescale.net Cc: Priyanka Jain , kumar.gala@freescale.com Subject: [U-Boot] [PATCH][v0]p1_p2_rdb: to set SQW/INT pin of RTC as INT line X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net p1_p2_rdb : SQW/INT pin in RTC can be used for generating square wave(by default) or as interrupt line. U-boot is registering this pin for interrupts. Configuring SQW/INT bit as interrupt line during board initialization to avoid spurious interrupts generated by square wave. Signed-off-by: Priyanka Jain --- board/freescale/p1_p2_rdb/p1_p2_rdb.c | 1 + include/configs/P1_P2_RDB.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/board/freescale/p1_p2_rdb/p1_p2_rdb.c b/board/freescale/p1_p2_rdb/p1_p2_rdb.c index fae31f2..0043184 100644 --- a/board/freescale/p1_p2_rdb/p1_p2_rdb.c +++ b/board/freescale/p1_p2_rdb/p1_p2_rdb.c @@ -156,6 +156,7 @@ int board_early_init_r(void) set_tlb(1, flashbase, CONFIG_SYS_FLASH_BASE_PHYS, MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, 0, flash_esel, BOOKE_PAGESZ_16M, 1); + rtc_reset(); return 0; } diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h index cff0ed3..ba0c724 100644 --- a/include/configs/P1_P2_RDB.h +++ b/include/configs/P1_P2_RDB.h @@ -344,6 +344,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy); #define CONFIG_SYS_EEPROM_BUS_NUM 1 #define CONFIG_RTC_DS1337 +#define CONFIG_SYS_RTC_DS1337_NOOSC #define CONFIG_SYS_I2C_RTC_ADDR 0x68 /* * General PCI