Skip to content

Commit 418ad7d

Browse files
gmarullcarlescufi
authored andcommitted
soc: riscv: remove unused RISCV_MTIME(CMP)_BASE and IRQ definitions
The RISC-V machine timer base addresses and IRQ are now obtained from Devicetree. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 3a19948 commit 418ad7d

File tree

10 files changed

+0
-33
lines changed

10 files changed

+0
-33
lines changed

soc/riscv/riscv-privilege/andes_v5/ae350/soc.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
#include <soc_common.h>
1515

16-
/* Machine timer memory-mapped registers */
17-
#define RISCV_MTIME_BASE 0xE6000000
18-
#define RISCV_MTIMECMP_BASE 0xE6000008
19-
2016
/* Include CSRs available for Andes V5 SoCs */
2117
#include "soc_v5.h"
2218

soc/riscv/riscv-privilege/common/soc_common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
/* IRQ numbers */
1616
#define RISCV_MACHINE_SOFT_IRQ 3 /* Machine Software Interrupt */
17-
#define RISCV_MACHINE_TIMER_IRQ 7 /* Machine Timer Interrupt */
1817
#define RISCV_MACHINE_EXT_IRQ 11 /* Machine External Interrupt */
1918

2019
/* ECALL Exception numbers */

soc/riscv/riscv-privilege/gd32vf103/soc.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,5 @@
1212
#define RISCV_GD32VF103_SOC_H_
1313

1414
#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)
2015

2116
#endif /* RISCV_GD32VF103_SOC_H */

soc/riscv/riscv-privilege/miv/soc.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@
99
/* UART Configuration */
1010
#define MIV_UART_0_LINECFG 0x1
1111

12-
/* Timer configuration */
13-
#define RISCV_MTIME_BASE 0x4400bff8
14-
#define RISCV_MTIMECMP_BASE 0x44004000
15-
1612
#endif /* __RISCV32_MIV_SOC_H_ */

soc/riscv/riscv-privilege/mpfs/soc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212

1313
/* Timer configuration */
14-
#define RISCV_MTIME_BASE 0x0200BFF8ULL
15-
#define RISCV_MTIMECMP_BASE (0x02004000ULL + (8ULL * 0))
1614
#define RISCV_MTIMECMP_BY_HART(h) (0x02004000ULL + (8ULL * (h)))
1715
#define RISCV_MSIP_BASE 0x02000000
1816

soc/riscv/riscv-privilege/neorv32/soc.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
#include <soc_common.h>
1111

12-
/* Machine System Timer (MTIME) registers */
13-
#define RISCV_MTIME_BASE 0xffffff90U
14-
#define RISCV_MTIMECMP_BASE 0xffffff98U
15-
1612
/* System information (SYSINFO) register offsets */
1713
#define NEORV32_SYSINFO_CLK 0x00U
1814
#define NEORV32_SYSINFO_CPU 0x04U

soc/riscv/riscv-privilege/sifive-freedom/soc.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,4 @@
5050

5151
#endif
5252

53-
/* Timer configuration */
54-
#define RISCV_MTIME_BASE 0x0200BFF8
55-
#define RISCV_MTIMECMP_BASE 0x02004000
56-
5753
#endif /* __RISCV_SIFIVE_FREEDOM_SOC_H_ */

soc/riscv/riscv-privilege/starfive_jh71xx/soc.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@
99

1010
#include <soc_common.h>
1111

12-
#define RISCV_MTIME_BASE 0x0200BFF8
13-
#define RISCV_MTIMECMP_BASE 0x02004000
14-
1512
#endif

soc/riscv/riscv-privilege/telink_b91/soc.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@
99

1010
#include <soc_common.h>
1111

12-
/* Machine timer memory-mapped registers */
13-
#define RISCV_MTIME_BASE 0xE6000000
14-
#define RISCV_MTIMECMP_BASE 0xE6000008
15-
1612
#endif /* RISCV_TELINK_B91_SOC_H */

soc/riscv/riscv-privilege/virt/soc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include <soc_common.h>
1111

1212
#define SIFIVE_SYSCON_TEST 0x00100000
13-
#define RISCV_MTIME_BASE 0x0200BFF8
14-
#define RISCV_MTIMECMP_BASE 0x02004000
1513
#define RISCV_MSIP_BASE 0x02000000
1614

1715
#endif

0 commit comments

Comments
 (0)