summaryrefslogtreecommitdiff
path: root/PandaBoardPkg
diff options
context:
space:
mode:
authorOlivier Deprez <o-deprez@ti.com>2012-08-09 11:37:58 +0200
committerRyan Harkin <ryan.harkin@linaro.org>2012-11-24 13:13:25 +0000
commitf2044ef0c5ea84e139e111d38fcd9c4f799a7f90 (patch)
tree40079292f231bb8aacd59f0eaa5c59369ec18226 /PandaBoardPkg
parent15e9615c74fc478cbdb75dc36367b3dbc2f24822 (diff)
panda: comment out omap3 related code in PandaBoardLib
some code here is inherited from omap3 and not compatible with omap4. Comment it out as tempo fix
Diffstat (limited to 'PandaBoardPkg')
-rwxr-xr-xPandaBoardPkg/Library/PandaBoardLib/PandaBoard.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/PandaBoardPkg/Library/PandaBoardLib/PandaBoard.c b/PandaBoardPkg/Library/PandaBoardLib/PandaBoard.c
index 6f88b3aa8..d679b14dc 100755
--- a/PandaBoardPkg/Library/PandaBoardLib/PandaBoard.c
+++ b/PandaBoardPkg/Library/PandaBoardLib/PandaBoard.c
@@ -65,6 +65,7 @@ PandaBoardGetRevision (
VOID
)
{
+#if 0
UINT32 OldPinDir;
UINT32 Revision;
@@ -77,6 +78,9 @@ PandaBoardGetRevision (
MmioWrite32 (GPIO6_BASE + GPIO_OE, OldPinDir);
return (PANDABOARD_REVISION)((Revision >> 11) & 0x7);
+#endif
+
+ return 0;
}
/**
@@ -120,6 +124,7 @@ ArmPlatformNormalInitialize (
VOID
)
{
+#if 0
PANDABOARD_REVISION Revision;
Revision = PandaBoardGetRevision();
@@ -137,6 +142,12 @@ ArmPlatformNormalInitialize (
// Clear IRQs
MmioWrite32 (INTCPS_CONTROL, INTCPS_CONTROL_NEWIRQAGR);
ArmDataSyncronizationBarrier ();
+#endif
+
+ // Make sure GPMC region region 0 is disabled
+ // Not doing so makes gpmc_init hang early in kernel init
+ MmioAnd32 (GPMC_CONFIG7_0, ~CSVALID);
+
}
/**
@@ -150,7 +161,8 @@ ArmPlatformInitializeSystemMemory (
VOID
)
{
- // We do not need to initialize the System Memory on RTSM
+ // Nothing done here, handled by the ROM Configuration Header
+
}
EFI_STATUS