summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorPriyanka Jain <Priyanka.Jain@freescale.com>2010-10-25 14:52:53 +0530
committerKumar Gala <galak@kernel.crashing.org>2010-11-12 09:45:11 -0600
commit39c2a6eb75fabd9745c5762c8dec9d1a85dabf00 (patch)
treec965a781f4b4af40000305a679c4c1744d09aaf7 /board/freescale
parent96196a1f7546904563994d2d041804a816d7c139 (diff)
downloadu-boot-imx-39c2a6eb75fabd9745c5762c8dec9d1a85dabf00.zip
u-boot-imx-39c2a6eb75fabd9745c5762c8dec9d1a85dabf00.tar.gz
u-boot-imx-39c2a6eb75fabd9745c5762c8dec9d1a85dabf00.tar.bz2
p1_p2_rdb: to set SQW/INT pin of RTC as INT line
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> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/p1_p2_rdb/p1_p2_rdb.c4
1 files changed, 3 insertions, 1 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..1c4c020 100644
--- a/board/freescale/p1_p2_rdb/p1_p2_rdb.c
+++ b/board/freescale/p1_p2_rdb/p1_p2_rdb.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2009 Freescale Semiconductor, Inc.
+ * Copyright 2009-2010 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -33,6 +33,7 @@
#include <tsec.h>
#include <vsc7385.h>
#include <netdev.h>
+#include <rtc.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -156,6 +157,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;
}