diff mbox

[U-Boot,v0] p1_p2_rdb: to set SQW/INT pin of RTC as INT line

Message ID 470DB7CE2CD0944E9436E7ADEFC02FE3C18F@039-SN1MPN1-003.039d.mgd.msft.net
State Accepted
Delegated to: Kumar Gala
Headers show

Commit Message

Jain Priyanka-B32167 Oct. 26, 2010, 6:20 a.m. UTC
Dear Kumar,

As there is no feedback on this patch in the maillist. Please pull this
upstream.

Thanks
Priyanka

-----Original Message-----
From: Jain Priyanka-B32167 
Sent: Monday, October 25, 2010 2:53 PM
To: u-boot@lists.denx.de
Cc: Jain Priyanka-B32167; Gala Kumar-B11780
Subject: [U-Boot] [PATCH][v0]p1_p2_rdb: to set SQW/INT pin of RTC as INT
line

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 <Priyanka.Jain@freescale.com>
---
 board/freescale/p1_p2_rdb/p1_p2_rdb.c |    1 +
 include/configs/P1_P2_RDB.h           |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

  * General PCI
--
1.6.5.6
diff mbox

Patch

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
 /*