File tree Expand file tree Collapse file tree 10 files changed +0
-33
lines changed
soc/riscv/riscv-privilege Expand file tree Collapse file tree 10 files changed +0
-33
lines changed Original file line number Diff line number Diff line change 13
13
14
14
#include <soc_common.h>
15
15
16
- /* Machine timer memory-mapped registers */
17
- #define RISCV_MTIME_BASE 0xE6000000
18
- #define RISCV_MTIMECMP_BASE 0xE6000008
19
-
20
16
/* Include CSRs available for Andes V5 SoCs */
21
17
#include "soc_v5.h"
22
18
Original file line number Diff line number Diff line change 14
14
15
15
/* IRQ numbers */
16
16
#define RISCV_MACHINE_SOFT_IRQ 3 /* Machine Software Interrupt */
17
- #define RISCV_MACHINE_TIMER_IRQ 7 /* Machine Timer Interrupt */
18
17
#define RISCV_MACHINE_EXT_IRQ 11 /* Machine External Interrupt */
19
18
20
19
/* ECALL Exception numbers */
Original file line number Diff line number Diff line change 12
12
#define RISCV_GD32VF103_SOC_H_
13
13
14
14
#include <soc_common.h>
15
- #include <zephyr/devicetree.h>
16
-
17
- /* Timer configuration */
18
- #define RISCV_MTIME_BASE DT_REG_ADDR(DT_NODELABEL(systimer))
19
- #define RISCV_MTIMECMP_BASE (RISCV_MTIME_BASE + 8)
20
15
21
16
#endif /* RISCV_GD32VF103_SOC_H */
Original file line number Diff line number Diff line change 9
9
/* UART Configuration */
10
10
#define MIV_UART_0_LINECFG 0x1
11
11
12
- /* Timer configuration */
13
- #define RISCV_MTIME_BASE 0x4400bff8
14
- #define RISCV_MTIMECMP_BASE 0x44004000
15
-
16
12
#endif /* __RISCV32_MIV_SOC_H_ */
Original file line number Diff line number Diff line change 11
11
12
12
13
13
/* Timer configuration */
14
- #define RISCV_MTIME_BASE 0x0200BFF8ULL
15
- #define RISCV_MTIMECMP_BASE (0x02004000ULL + (8ULL * 0))
16
14
#define RISCV_MTIMECMP_BY_HART (h ) (0x02004000ULL + (8ULL * (h)))
17
15
#define RISCV_MSIP_BASE 0x02000000
18
16
Original file line number Diff line number Diff line change 9
9
10
10
#include <soc_common.h>
11
11
12
- /* Machine System Timer (MTIME) registers */
13
- #define RISCV_MTIME_BASE 0xffffff90U
14
- #define RISCV_MTIMECMP_BASE 0xffffff98U
15
-
16
12
/* System information (SYSINFO) register offsets */
17
13
#define NEORV32_SYSINFO_CLK 0x00U
18
14
#define NEORV32_SYSINFO_CPU 0x04U
Original file line number Diff line number Diff line change 50
50
51
51
#endif
52
52
53
- /* Timer configuration */
54
- #define RISCV_MTIME_BASE 0x0200BFF8
55
- #define RISCV_MTIMECMP_BASE 0x02004000
56
-
57
53
#endif /* __RISCV_SIFIVE_FREEDOM_SOC_H_ */
Original file line number Diff line number Diff line change 9
9
10
10
#include <soc_common.h>
11
11
12
- #define RISCV_MTIME_BASE 0x0200BFF8
13
- #define RISCV_MTIMECMP_BASE 0x02004000
14
-
15
12
#endif
Original file line number Diff line number Diff line change 9
9
10
10
#include <soc_common.h>
11
11
12
- /* Machine timer memory-mapped registers */
13
- #define RISCV_MTIME_BASE 0xE6000000
14
- #define RISCV_MTIMECMP_BASE 0xE6000008
15
-
16
12
#endif /* RISCV_TELINK_B91_SOC_H */
Original file line number Diff line number Diff line change 10
10
#include <soc_common.h>
11
11
12
12
#define SIFIVE_SYSCON_TEST 0x00100000
13
- #define RISCV_MTIME_BASE 0x0200BFF8
14
- #define RISCV_MTIMECMP_BASE 0x02004000
15
13
#define RISCV_MSIP_BASE 0x02000000
16
14
17
15
#endif
You can’t perform that action at this time.
0 commit comments