diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-10 13:04:13 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-17 12:58:33 +0200 |
commit | 2c07f24af210c4738fbe6f75a53c58fbd80fb658 (patch) | |
tree | 4d8e061e716beb451cdb45bd8761f2025ce062bb /bsps/riscv/griscv/include/amba.h | |
parent | grlib: Customizable allocation in ambapp_scan() (diff) | |
download | rtems-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.h | 5 |
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; |