]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmJunoPkg/Include/ArmPlatform.h
ArmPlatformPkg/ArmJunoPkg: Enable PCI and SATA support
[mirror_edk2.git] / ArmPlatformPkg / ArmJunoPkg / Include / ArmPlatform.h
CommitLineData
9f38945f
OM
1/** @file\r
2*\r
3* Copyright (c) 2013-2014, ARM Limited. All rights reserved.\r
4*\r
5* This program and the accompanying materials\r
6* are licensed and made available under the terms and conditions of the BSD License\r
7* which accompanies this distribution. The full text of the license may be found at\r
8* http://opensource.org/licenses/bsd-license.php\r
9*\r
10* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12*\r
13**/\r
14\r
15#ifndef __ARM_JUNO_H__\r
16#define __ARM_JUNO_H__\r
17\r
18#include <VExpressMotherBoard.h>\r
19\r
20/***********************************************************************************\r
21// Platform Memory Map\r
22************************************************************************************/\r
23\r
24// Motherboard Peripheral and On-chip peripheral\r
25#define ARM_VE_BOARD_PERIPH_BASE 0x1C010000\r
26\r
27// NOR Flash 0\r
28#define ARM_VE_SMB_NOR0_BASE 0x08000000\r
29#define ARM_VE_SMB_NOR0_SZ SIZE_64MB\r
30\r
31// Off-Chip peripherals (USB, Ethernet, VRAM)\r
32#define ARM_VE_SMB_PERIPH_BASE 0x18000000\r
33#define ARM_VE_SMB_PERIPH_SZ (SIZE_64MB + SIZE_2MB)\r
34\r
35// On-Chip non-secure ROM\r
36#define ARM_JUNO_NON_SECURE_ROM_BASE 0x1F000000\r
37#define ARM_JUNO_NON_SECURE_ROM_SZ SIZE_16MB\r
38\r
39// On-Chip Peripherals\r
40#define ARM_JUNO_PERIPHERALS_BASE 0x20000000\r
41#define ARM_JUNO_PERIPHERALS_SZ 0x0E000000\r
42\r
1bb1f35f
OM
43#define ARM_JUNO_GIV2M_MSI_BASE 0x2c1c0000\r
44#define ARM_JUNO_GIV2M_MSI_SZ SIZE_256KB\r
45\r
9f38945f
OM
46// On-Chip non-secure SRAM\r
47#define ARM_JUNO_NON_SECURE_SRAM_BASE 0x2E000000\r
48#define ARM_JUNO_NON_SECURE_SRAM_SZ SIZE_16MB\r
49\r
50// SOC peripherals (HDLCD, UART, I2C, I2S, USB, SMC-PL354, etc)\r
51#define ARM_JUNO_SOC_PERIPHERALS_BASE 0x7FF50000\r
52#define ARM_JUNO_SOC_PERIPHERALS_SZ (SIZE_64KB * 9)\r
53\r
54// 6GB of DRAM from the 64bit address space\r
55#define ARM_JUNO_EXTRA_SYSTEM_MEMORY_BASE 0x0880000000\r
56#define ARM_JUNO_EXTRA_SYSTEM_MEMORY_SZ (SIZE_2GB + SIZE_4GB)\r
57\r
3399d5be
OM
58//\r
59// ACPI table information used to initialize tables.\r
60//\r
61#define EFI_ACPI_ARM_OEM_ID 'A','R','M','L','T','D' // OEMID 6 bytes long\r
62#define EFI_ACPI_ARM_OEM_TABLE_ID SIGNATURE_64('A','R','M','-','J','U','N','O') // OEM table id 8 bytes long\r
63#define EFI_ACPI_ARM_OEM_REVISION 0x20140727\r
64#define EFI_ACPI_ARM_CREATOR_ID SIGNATURE_32('A','R','M',' ')\r
65#define EFI_ACPI_ARM_CREATOR_REVISION 0x00000099\r
66\r
67// A macro to initialise the common header part of EFI ACPI tables as defined by\r
68// EFI_ACPI_DESCRIPTION_HEADER structure.\r
69#define ARM_ACPI_HEADER(Signature, Type, Revision) { \\r
70 Signature, /* UINT32 Signature */ \\r
71 sizeof (Type), /* UINT32 Length */ \\r
72 Revision, /* UINT8 Revision */ \\r
73 0, /* UINT8 Checksum */ \\r
74 { EFI_ACPI_ARM_OEM_ID }, /* UINT8 OemId[6] */ \\r
75 EFI_ACPI_ARM_OEM_TABLE_ID, /* UINT64 OemTableId */ \\r
76 EFI_ACPI_ARM_OEM_REVISION, /* UINT32 OemRevision */ \\r
77 EFI_ACPI_ARM_CREATOR_ID, /* UINT32 CreatorId */ \\r
78 EFI_ACPI_ARM_CREATOR_REVISION /* UINT32 CreatorRevision */ \\r
79 }\r
80\r
2596e61a
OM
81#define JUNO_WATCHDOG_COUNT 2\r
82\r
83// Define if the exported ACPI Tables are based on ACPI 5.0 spec or latest\r
84//#define ARM_JUNO_ACPI_5_0\r
85\r
c1fee786
RC
86//\r
87// Address of the system registers that contain the MAC address\r
88// assigned to the PCI Gigabyte Ethernet device.\r
89//\r
90\r
91#define ARM_JUNO_SYS_PCIGBE_L (ARM_VE_BOARD_PERIPH_BASE + 0x74)\r
92#define ARM_JUNO_SYS_PCIGBE_H (ARM_VE_BOARD_PERIPH_BASE + 0x78)\r
93\r
9f38945f 94#endif\r