The base address for the interrupt controller is hard-coded in
Omap3530Interrupt.h, although Omap35xxPkg/InterruptDxe appears to
have initially intended to make use of PcdInterruptBaseAddress from
EmbeddedPkg. Move it to use said Pcd, and also declare use of it in
BeagleBoardLib, which makes a direct access.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
#\r
# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>\r
# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
#\r
# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>\r
# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterPeriodInNanoseconds|77\r
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|13000000\r
\r
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterPeriodInNanoseconds|77\r
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|13000000\r
\r
+ # OMAP Interrupt Controller\r
+ gEmbeddedTokenSpaceGuid.PcdInterruptBaseAddress|0x48200000\r
+\r
# We want to use the Shell Libraries but don't want it to initialise\r
# automatically. We initialise the libraries when the command is called by the\r
# Shell.\r
# We want to use the Shell Libraries but don't want it to initialise\r
# automatically. We initialise the libraries when the command is called by the\r
# Shell.\r
#/* @file\r
# Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
#/* @file\r
# Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
+# Copyright (c) 2016, Linaro Ltd. All rights reserved.\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
gArmTokenSpaceGuid.PcdSystemMemoryBase\r
gArmTokenSpaceGuid.PcdSystemMemorySize\r
\r
gArmTokenSpaceGuid.PcdSystemMemoryBase\r
gArmTokenSpaceGuid.PcdSystemMemorySize\r
+\r
+ gEmbeddedTokenSpaceGuid.PcdInterruptBaseAddress\r
/** @file\r
\r
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
/** @file\r
\r
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+ Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
#ifndef __OMAP3530INTERRUPT_H__\r
#define __OMAP3530INTERRUPT_H__\r
\r
#ifndef __OMAP3530INTERRUPT_H__\r
#define __OMAP3530INTERRUPT_H__\r
\r
-#define INTERRUPT_BASE (0x48200000)\r
+#include <Library/PcdLib.h>\r
+\r
+#define INTERRUPT_BASE (PcdGet32 (PcdInterruptBaseAddress))\r
\r
#define INT_NROF_VECTORS (96)\r
#define MAX_VECTOR (INT_NROF_VECTORS - 1)\r
\r
#define INT_NROF_VECTORS (96)\r
#define MAX_VECTOR (INT_NROF_VECTORS - 1)\r
# Omap35xx SoC package.\r
#\r
# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>\r
# Omap35xx SoC package.\r
#\r
# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>\r
+# Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterPeriodInNanoseconds|77\r
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|13000000\r
\r
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterPeriodInNanoseconds|77\r
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|13000000\r
\r
+ # OMAP Interrupt Controller\r
+ gEmbeddedTokenSpaceGuid.PcdInterruptBaseAddress|0x48200000\r
+\r