2011-02-01 06:41:42 +01:00
|
|
|
/** @file
|
|
|
|
* Header defining Versatile Express constants (Base addresses, sizes, flags)
|
|
|
|
*
|
|
|
|
* Copyright (c) 2011, ARM Limited. All rights reserved.
|
|
|
|
*
|
2011-06-03 11:41:49 +02:00
|
|
|
* This program and the accompanying materials
|
|
|
|
* are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
* which accompanies this distribution. The full text of the license may be found at
|
|
|
|
* http://opensource.org/licenses/bsd-license.php
|
|
|
|
*
|
|
|
|
* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2011-02-01 06:41:42 +01:00
|
|
|
*
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __ARM_VEXPRESS_H__
|
|
|
|
#define __ARM_VEXPRESS_H__
|
|
|
|
|
2011-06-03 11:41:49 +02:00
|
|
|
#include <Base.h>
|
|
|
|
#include <VExpressMotherBoard.h>
|
|
|
|
|
|
|
|
/***********************************************************************************
|
2011-02-01 06:41:42 +01:00
|
|
|
// Platform Memory Map
|
2011-06-03 11:41:49 +02:00
|
|
|
************************************************************************************/
|
2011-02-01 06:41:42 +01:00
|
|
|
|
|
|
|
// Can be NOR0, NOR1, DRAM
|
|
|
|
#define ARM_VE_REMAP_BASE 0x00000000
|
2011-06-03 11:41:49 +02:00
|
|
|
#define ARM_VE_REMAP_SZ SIZE_64MB
|
2011-02-01 06:41:42 +01:00
|
|
|
|
|
|
|
// Motherboard Peripheral and On-chip peripheral
|
|
|
|
#define ARM_VE_SMB_MB_ON_CHIP_PERIPH_BASE 0x10000000
|
2011-06-03 11:41:49 +02:00
|
|
|
#define ARM_VE_SMB_MB_ON_CHIP_PERIPH_SZ SIZE_256MB
|
2011-02-01 06:41:42 +01:00
|
|
|
#define ARM_VE_BOARD_PERIPH_BASE 0x10000000
|
|
|
|
#define ARM_VE_CHIP_PERIPH_BASE 0x10020000
|
|
|
|
|
|
|
|
// SMC
|
|
|
|
#define ARM_VE_SMC_BASE 0x40000000
|
|
|
|
#define ARM_VE_SMC_SZ 0x1C000000
|
|
|
|
|
|
|
|
// NOR Flash 1
|
|
|
|
#define ARM_VE_SMB_NOR0_BASE 0x40000000
|
2011-06-03 11:41:49 +02:00
|
|
|
#define ARM_VE_SMB_NOR0_SZ SIZE_64MB
|
2011-02-01 06:41:42 +01:00
|
|
|
// NOR Flash 2
|
|
|
|
#define ARM_VE_SMB_NOR1_BASE 0x44000000
|
2011-06-03 11:41:49 +02:00
|
|
|
#define ARM_VE_SMB_NOR1_SZ SIZE_64MB
|
2011-02-01 06:41:42 +01:00
|
|
|
// SRAM
|
|
|
|
#define ARM_VE_SMB_SRAM_BASE 0x48000000
|
2011-06-03 11:41:49 +02:00
|
|
|
#define ARM_VE_SMB_SRAM_SZ SIZE_32MB
|
2011-02-01 06:41:42 +01:00
|
|
|
// USB, Ethernet, VRAM
|
|
|
|
#define ARM_VE_SMB_PERIPH_BASE 0x4C000000
|
2011-06-03 11:41:49 +02:00
|
|
|
#define PL111_CLCD_VRAM_MOTHERBOARD_BASE ARM_VE_SMB_PERIPH_BASE
|
|
|
|
#define ARM_VE_SMB_PERIPH_SZ SIZE_64MB
|
2011-02-01 06:41:42 +01:00
|
|
|
|
|
|
|
// DRAM
|
2014-01-10 12:27:31 +01:00
|
|
|
#define ARM_VE_DRAM_BASE PcdGet64 (PcdSystemMemoryBase)
|
|
|
|
#define ARM_VE_DRAM_SZ PcdGet64 (PcdSystemMemorySize)
|
2011-06-11 13:12:38 +02:00
|
|
|
// Inside the DRAM we allocate a section for the VRAM (Video RAM)
|
2011-07-01 17:30:01 +02:00
|
|
|
#define LCD_VRAM_CORE_TILE_BASE 0x64000000
|
2011-02-01 06:41:42 +01:00
|
|
|
|
|
|
|
// External AXI between daughterboards (Logic Tile)
|
|
|
|
#define ARM_VE_EXT_AXI_BASE 0xE0000000
|
2011-06-03 11:41:49 +02:00
|
|
|
#define ARM_VE_EXT_AXI_SZ 0x20000000 /* 512 MB */
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************************
|
|
|
|
Core Tile memory-mapped Peripherals
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
// PL111 Colour LCD Controller - core tile
|
|
|
|
#define PL111_CLCD_CORE_TILE_BASE (ARM_VE_BOARD_PERIPH_BASE + 0x20000)
|
2011-09-23 01:21:02 +02:00
|
|
|
#define PL111_CLCD_SITE ARM_VE_DAUGHTERBOARD_1_SITE
|
2011-06-03 11:41:49 +02:00
|
|
|
|
|
|
|
// PL341 Dynamic Memory Controller Base
|
|
|
|
#define ARM_VE_DMC_BASE (ARM_VE_BOARD_PERIPH_BASE + 0xE0000)
|
|
|
|
|
|
|
|
// PL354 Static Memory Controller Base
|
|
|
|
#define ARM_VE_SMC_CTRL_BASE (ARM_VE_BOARD_PERIPH_BASE + 0xE1000)
|
2011-02-01 06:41:42 +01:00
|
|
|
|
|
|
|
// System Configuration Controller register Base addresses
|
2011-09-23 01:21:02 +02:00
|
|
|
#define ARM_VE_SYS_CFG_CTRL_BASE (ARM_VE_BOARD_PERIPH_BASE + 0xE2000)
|
|
|
|
#define ARM_VE_SCC_BASE ARM_VE_SYS_CFG_CTRL_BASE
|
2011-06-03 11:41:49 +02:00
|
|
|
#define ARM_VE_SYS_CFGRW0_REG (ARM_VE_BOARD_PERIPH_BASE + 0xE2000)
|
|
|
|
#define ARM_VE_SYS_CFGRW1_REG (ARM_VE_BOARD_PERIPH_BASE + 0xE2004)
|
|
|
|
#define ARM_VE_SYS_CFGRW2_REG (ARM_VE_BOARD_PERIPH_BASE + 0xE2008)
|
|
|
|
|
|
|
|
// SP805 Watchdog on Cortex A9 core tile
|
|
|
|
#define SP805_WDOG_CORE_TILE_BASE (ARM_VE_BOARD_PERIPH_BASE + 0xE5000)
|
|
|
|
|
|
|
|
// BP147 TZPC Base Address
|
|
|
|
#define ARM_VE_TZPC_BASE (ARM_VE_BOARD_PERIPH_BASE + 0xE6000)
|
|
|
|
|
|
|
|
// PL301 Fast AXI Base Address
|
|
|
|
#define ARM_VE_FAXI_BASE (ARM_VE_BOARD_PERIPH_BASE + 0xE9000)
|
|
|
|
|
|
|
|
// TZASC Trust Zone Address Space Controller Base Address
|
|
|
|
#define ARM_VE_TZASC_BASE (ARM_VE_BOARD_PERIPH_BASE + 0xEC000)
|
|
|
|
|
|
|
|
// PL310 L2x0 Cache Controller Base Address
|
|
|
|
//#define ARM_VE_L2x0_CTLR_BASE 0x1E00A000
|
|
|
|
|
|
|
|
/***********************************************************************************
|
|
|
|
Peripherals' misc settings
|
|
|
|
************************************************************************************/
|
2011-02-01 06:41:42 +01:00
|
|
|
|
|
|
|
#define ARM_VE_CFGRW1_TZASC_EN_BIT_MASK 0x2000
|
|
|
|
#define ARM_VE_CFGRW1_REMAP_NOR0 0
|
|
|
|
#define ARM_VE_CFGRW1_REMAP_NOR1 (1 << 28)
|
|
|
|
#define ARM_VE_CFGRW1_REMAP_EXT_AXI (1 << 29)
|
|
|
|
#define ARM_VE_CFGRW1_REMAP_DRAM (1 << 30)
|
|
|
|
|
2011-06-03 11:41:49 +02:00
|
|
|
// TZASC - Other settings
|
2011-02-01 06:41:42 +01:00
|
|
|
#define ARM_VE_DECPROT_BIT_TZPC (1 << 6)
|
|
|
|
#define ARM_VE_DECPROT_BIT_DMC_TZASC (1 << 11)
|
|
|
|
#define ARM_VE_DECPROT_BIT_NMC_TZASC (1 << 12)
|
|
|
|
#define ARM_VE_DECPROT_BIT_SMC_TZASC (1 << 13)
|
|
|
|
#define ARM_VE_DECPROT_BIT_EXT_MAST_TZ (1)
|
|
|
|
#define ARM_VE_DECPROT_BIT_DMC_TZASC_LOCK (1 << 3)
|
|
|
|
#define ARM_VE_DECPROT_BIT_NMC_TZASC_LOCK (1 << 4)
|
|
|
|
#define ARM_VE_DECPROT_BIT_SMC_TZASC_LOCK (1 << 5)
|
|
|
|
|
2011-06-03 11:41:49 +02:00
|
|
|
#endif
|