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>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user