[PATCH 12/42] leon3: timer config updated to use proper naming
Daniel Hellstrom
daniel at gaisler.com
Tue Apr 14 11:32:39 UTC 2015
To be merged with "leon3: make timer initialization configurable"
---
c/src/lib/libbsp/sparc/leon3/amba/amba.c | 10 +++++-----
c/src/lib/libbsp/sparc/leon3/include/leon.h | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/leon3/amba/amba.c b/c/src/lib/libbsp/sparc/leon3/amba/amba.c
index 8e6cef5..fe481f5 100644
--- a/c/src/lib/libbsp/sparc/leon3/amba/amba.c
+++ b/c/src/lib/libbsp/sparc/leon3/amba/amba.c
@@ -71,8 +71,8 @@ rtems_interrupt_lock LEON3_IrqCtrl_Lock =
/* Pointers to Interrupt Controller configuration registers */
volatile struct irqmp_regs *LEON3_IrqCtrl_Regs;
-struct ambapp_dev *irqmp_dev;
-struct ambapp_dev *timer_dev;
+struct ambapp_dev *LEON3_IrqCtrl_Adev;
+struct ambapp_dev *LEON3_Timer_Adev;
/*
* amba_initialize
@@ -109,7 +109,7 @@ void amba_initialize(void)
}
LEON3_IrqCtrl_Regs = (volatile struct irqmp_regs *)DEV_TO_APB(adev)->start;
- irqmp_dev = adev;
+ LEON3_IrqCtrl_Adev = adev;
if ((LEON3_IrqCtrl_Regs->ampctrl >> 28) > 0) {
/* IRQ Controller has support for multiple IRQ Controllers, each
* CPU can be routed to different Controllers, we find out which
@@ -139,12 +139,12 @@ void amba_initialize(void)
ambapp_find_by_idx, &leon3_timer_core_index);
if (adev) {
LEON3_Timer_Regs = (volatile struct gptimer_regs *)DEV_TO_APB(adev)->start;
- timer_dev = adev;
+ LEON3_Timer_Adev = adev;
/* Register AMBA Bus Frequency */
ambapp_freq_init(
&ambapp_plb,
- timer_dev,
+ LEON3_Timer_Adev,
(LEON3_Timer_Regs->scaler_reload + 1)
* LEON3_GPTIMER_0_FREQUENCY_SET_BY_BOOT_LOADER
);
diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h
index 8d7a03a..8ad8a18 100644
--- a/c/src/lib/libbsp/sparc/leon3/include/leon.h
+++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h
@@ -131,11 +131,11 @@ extern "C" {
/* LEON3 Interrupt Controller */
extern volatile struct irqmp_regs *LEON3_IrqCtrl_Regs;
-extern struct ambapp_dev *irqmp_dev;
+extern struct ambapp_dev *LEON3_IrqCtrl_Adev;
/* LEON3 GP Timer */
extern volatile struct gptimer_regs *LEON3_Timer_Regs;
-extern struct ambapp_dev *timer_dev;
+extern struct ambapp_dev *LEON3_Timer_Adev;
/* LEON3 CPU Index of boot CPU */
extern uint32_t LEON3_Cpu_Index;
--
1.7.0.4
More information about the devel
mailing list