diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-11 12:11:29 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-11 12:11:29 +0000 |
commit | 6aaa8d7d9bf850bb68566a651c5712cccceff473 (patch) | |
tree | 78c46509e612c98224b8d0569288592c097b944d /ArmPlatformPkg/ArmRealViewEbPkg | |
parent | f598bf12660fc7e758710e6a484d7eea3bfee6ef (diff) | |
download | edk2-platforms-6aaa8d7d9bf850bb68566a651c5712cccceff473.tar.xz |
ArmPlatformPkg/ArmRealViewEbPkg: Fix some register definitions
Some registers were not correctly set. Some other registers do not
exist on ARM RealView EB.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11809 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/ArmRealViewEbPkg')
-rw-r--r-- | ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform/ArmPlatform.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform/ArmPlatform.h b/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform/ArmPlatform.h index bbe736c398..04e1ce86d4 100644 --- a/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform/ArmPlatform.h +++ b/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform/ArmPlatform.h @@ -26,7 +26,7 @@ // Motherboard Peripheral and On-chip peripheral
#define ARM_EB_SMB_MB_ON_CHIP_PERIPH_BASE 0x10000000
-#define ARM_EB_SMB_MB_ON_CHIP_PERIPH_SZ 0x00100000
+#define ARM_EB_SMB_MB_ON_CHIP_PERIPH_SZ 0x10000000
#define ARM_EB_BOARD_PERIPH_BASE 0x10000000
//#define ARM_EB_CHIP_PERIPH_BASE 0x10020000
@@ -73,9 +73,6 @@ #define ARM_EB_SYS_CLCD_REG (ARM_EB_BOARD_PERIPH_BASE + 0x00050)
#define ARM_EB_SYS_PROCID0_REG (ARM_EB_BOARD_PERIPH_BASE + 0x00084)
#define ARM_EB_SYS_PROCID1_REG (ARM_EB_BOARD_PERIPH_BASE + 0x00088)
-#define ARM_EB_SYS_CFGDATA_REG (ARM_EB_BOARD_PERIPH_BASE + 0x000A0)
-#define ARM_EB_SYS_CFGCTRL_REG (ARM_EB_BOARD_PERIPH_BASE + 0x000A4)
-#define ARM_EB_SYS_CFGSTAT_REG (ARM_EB_BOARD_PERIPH_BASE + 0x000A8)
// SP810 Controller
#define SP810_CTRL_BASE (ARM_EB_BOARD_PERIPH_BASE + 0x01000)
@@ -96,10 +93,11 @@ #define PL031_RTC_BASE (ARM_EB_BOARD_PERIPH_BASE + 0x17000)
// Dynamic Memory Controller Base
-#define ARM_EB_DMC_BASE 0x10018000
+#define ARM_EB_DMC_BASE 0x10018000
// Static Memory Controller Base
-#define ARM_EB_SMC_CTRL_BASE 0x10080000
+#define ARM_EB_SMC_CTRL_BASE 0x10080000
+
#define PL111_CLCD_BASE 0x10020000
//Note: Moving the framebuffer into the 0x70000000-0x80000000 region does not seem to work
#define PL111_CLCD_VRAM_BASE 0x00100000
@@ -138,4 +136,15 @@ // and DXE. EFI stacks and heaps will be declared in this region.
#define ARM_EB_EFI_MEMORY_REGION_SZ 0x1000000
+/*******************************************
+// System Configuration Control
+*******************************************/
+
+// Sites where the peripheral is fitted
+#define ARM_EB_UNSUPPORTED ~0
+
+#define VIRTUAL_SYS_CFG(site,func) (((site) << 24) | (func))
+
+#define SYS_CFG_RTC VIRTUAL_SYS_CFG(ARM_EB_UNSUPPORTED,1)
+
#endif
|