summaryrefslogtreecommitdiffstats
path: root/Omap35xxPkg/Include/Omap3530
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2016-11-27 23:26:06 +0000
committerLeif Lindholm <leif.lindholm@linaro.org>2016-12-05 17:21:40 +0000
commit209b8f3c2710ee215daf6a044b5346743cbc05df (patch)
treeb2c264506d0f049107b25aa2284e4ee3bfbf1eca /Omap35xxPkg/Include/Omap3530
parent2c1cc12931b6c5a85471272799b3d4c249025a60 (diff)
downloadedk2-209b8f3c2710ee215daf6a044b5346743cbc05df.tar.gz
edk2-209b8f3c2710ee215daf6a044b5346743cbc05df.tar.bz2
edk2-209b8f3c2710ee215daf6a044b5346743cbc05df.zip
Omap35xxPkg, BeagleBoardPkg: Use Pcd for INTERRUPT_BASE
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>
Diffstat (limited to 'Omap35xxPkg/Include/Omap3530')
-rw-r--r--Omap35xxPkg/Include/Omap3530/Omap3530Interrupt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Omap35xxPkg/Include/Omap3530/Omap3530Interrupt.h b/Omap35xxPkg/Include/Omap3530/Omap3530Interrupt.h
index 774d873015..d8d727e4c8 100644
--- a/Omap35xxPkg/Include/Omap3530/Omap3530Interrupt.h
+++ b/Omap35xxPkg/Include/Omap3530/Omap3530Interrupt.h
@@ -1,6 +1,7 @@
/** @file
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
+ Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -15,7 +16,9 @@
#ifndef __OMAP3530INTERRUPT_H__
#define __OMAP3530INTERRUPT_H__
-#define INTERRUPT_BASE (0x48200000)
+#include <Library/PcdLib.h>
+
+#define INTERRUPT_BASE (PcdGet32 (PcdInterruptBaseAddress))
#define INT_NROF_VECTORS (96)
#define MAX_VECTOR (INT_NROF_VECTORS - 1)