Loading...
Searching...
No Matches
cpu_conf.h File Reference

CPU specific configuration for the Gaisler NOEL-V. More...

Detailed Description

CPU specific configuration for the Gaisler NOEL-V.

Author
Matvii Ivashchenko

Definition in file cpu_conf.h.

#include "cpu_conf_common.h"
#include "vendor/clint.h"
#include "vendor/plic.h"
+ Include dependency graph for cpu_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define CLINT_BASE_ADDR   (0xe0000000UL)
 Base address of the RISC-V ACLINT (CLINT)
 
#define PLIC_CTRL_ADDR   (0xf8000000UL)
 Base address of the PLIC.
 
#define PLIC_NUM_INTERRUPTS   (31U)
 Number of interrupt sources in the PLIC.
 
#define PLIC_NUM_PRIORITIES   (7U)
 Number of priority levels in the PLIC.
 
#define NUM_PMP_ENTRIES   (16)
 Number of available PMP regions.
 
#define RTC_FREQ   (20000000UL)
 MTIME clock frequency of the ACLINT.
 

Macro Definition Documentation

◆ CLINT_BASE_ADDR

#define CLINT_BASE_ADDR   (0xe0000000UL)

Base address of the RISC-V ACLINT (CLINT)

Definition at line 29 of file cpu_conf.h.

◆ NUM_PMP_ENTRIES

#define NUM_PMP_ENTRIES   (16)

Number of available PMP regions.

Definition at line 52 of file cpu_conf.h.

◆ PLIC_CTRL_ADDR

#define PLIC_CTRL_ADDR   (0xf8000000UL)

Base address of the PLIC.

Definition at line 35 of file cpu_conf.h.

◆ PLIC_NUM_INTERRUPTS

#define PLIC_NUM_INTERRUPTS   (31U)

Number of interrupt sources in the PLIC.

Definition at line 41 of file cpu_conf.h.

◆ PLIC_NUM_PRIORITIES

#define PLIC_NUM_PRIORITIES   (7U)

Number of priority levels in the PLIC.

Definition at line 47 of file cpu_conf.h.

◆ RTC_FREQ

#define RTC_FREQ   (20000000UL)

MTIME clock frequency of the ACLINT.

GRLIB ACLINT runs mtime at CLOCK_CORECLOCK / 2. Must match CONFIG_ZTIMER_USEC_BASE_FREQ in board.h.

Definition at line 60 of file cpu_conf.h.