Skip to content
Snippets Groups Projects
Commit 39c2a6eb authored by Priyanka Jain's avatar Priyanka Jain Committed by Kumar Gala
Browse files

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: default avatarPriyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 96196a1f
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright 2009 Freescale Semiconductor, Inc. * Copyright 2009-2010 Freescale Semiconductor, Inc.
* *
* See file CREDITS for list of people who contributed to this * See file CREDITS for list of people who contributed to this
* project. * project.
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <tsec.h> #include <tsec.h>
#include <vsc7385.h> #include <vsc7385.h>
#include <netdev.h> #include <netdev.h>
#include <rtc.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -156,6 +157,7 @@ int board_early_init_r(void) ...@@ -156,6 +157,7 @@ int board_early_init_r(void)
set_tlb(1, flashbase, CONFIG_SYS_FLASH_BASE_PHYS, set_tlb(1, flashbase, CONFIG_SYS_FLASH_BASE_PHYS,
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
0, flash_esel, BOOKE_PAGESZ_16M, 1); 0, flash_esel, BOOKE_PAGESZ_16M, 1);
rtc_reset();
return 0; return 0;
} }
......
...@@ -350,6 +350,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy); ...@@ -350,6 +350,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
#define CONFIG_SYS_EEPROM_BUS_NUM 1 #define CONFIG_SYS_EEPROM_BUS_NUM 1
#define CONFIG_RTC_DS1337 #define CONFIG_RTC_DS1337
#define CONFIG_SYS_RTC_DS1337_NOOSC
#define CONFIG_SYS_I2C_RTC_ADDR 0x68 #define CONFIG_SYS_I2C_RTC_ADDR 0x68
/* /*
* General PCI * General PCI
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment