summaryrefslogtreecommitdiffstats
path: root/bsps/riscv/griscv/include/amba.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-10 13:04:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-17 12:58:33 +0200
commit2c07f24af210c4738fbe6f75a53c58fbd80fb658 (patch)
tree4d8e061e716beb451cdb45bd8761f2025ce062bb /bsps/riscv/griscv/include/amba.h
parentgrlib: Customizable allocation in ambapp_scan() (diff)
downloadrtems-2c07f24af210c4738fbe6f75a53c58fbd80fb658.tar.bz2
grlib: Add ambapp_plb()
Replace the global variable ambapp_plb with a function to allow an automatic on demand initialization.
Diffstat (limited to 'bsps/riscv/griscv/include/amba.h')
-rw-r--r--bsps/riscv/griscv/include/amba.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/bsps/riscv/griscv/include/amba.h b/bsps/riscv/griscv/include/amba.h
index 8833cdfba6..292660d5c1 100644
--- a/bsps/riscv/griscv/include/amba.h
+++ b/bsps/riscv/griscv/include/amba.h
@@ -69,9 +69,6 @@
extern "C" {
#endif
-/* The AMBA Plug&Play info of the bus that the cpu sits on */
-extern struct ambapp_bus ambapp_plb;
-
extern uint32_t GRLIB_Cpu_Index;
extern const unsigned char GRLIB_mp_irq;
@@ -89,7 +86,7 @@ static inline uint32_t grlib_up_counter_frequency(void)
* For simplicity, assume that the interrupt controller uses the processor
* clock. This is at least true on the GR740.
*/
- return ambapp_freq_get(&ambapp_plb, GRLIB_IrqCtrl_Adev);
+ return ambapp_freq_get(ambapp_plb(), GRLIB_IrqCtrl_Adev);
}
extern rtems_interrupt_lock GRLIB_IrqCtrl_Lock;