summaryrefslogtreecommitdiff
path: root/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c
diff options
context:
space:
mode:
Diffstat (limited to 'BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c')
-rwxr-xr-xBeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c
index a74b60d91a..5a40ccea91 100755
--- a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c
+++ b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c
@@ -17,6 +17,8 @@
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
+#include <Omap3530/Omap3530.h>
+
VOID
PadConfiguration (
VOID
@@ -101,12 +103,21 @@ ArmPlatformGetBootMode (
VOID
ArmPlatformNormalInitialize (
VOID
- ) {
+ )
+{
//Set up Pin muxing.
PadConfiguration ();
// Set up system clocking
ClockInit ();
+
+ // Turn off the functional clock for Timer 3
+ MmioAnd32 (CM_FCLKEN_PER, 0xFFFFFFFF ^ CM_ICLKEN_PER_EN_GPT3_ENABLE );
+ ArmDataSyncronizationBarrier ();
+
+ // Clear IRQs
+ MmioWrite32 (INTCPS_CONTROL, INTCPS_CONTROL_NEWIRQAGR);
+ ArmDataSyncronizationBarrier ();
}
/**