Skip to content

Commit 6dae38c

Browse files
tjurtschgalak
authored andcommitted
arch: riscv32: fe310: Always-On domain adress definition
Added always-on domain address definition Signed-off-by: Tomasz Michalak <[email protected]> Signed-off-by: Karol Gugala <[email protected]> Signed-off-by: Tomasz Jurtsch <[email protected]>
1 parent ed923da commit 6dae38c

File tree

1 file changed

+12
-0
lines changed
  • arch/riscv32/soc/riscv-privilege/fe310

1 file changed

+12
-0
lines changed

arch/riscv32/soc/riscv-privilege/fe310/soc.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,22 @@
105105

106106
#define FE310_PLIC_MAX_PRIORITY 7
107107

108+
/* Clock controller. */
109+
#define PRCI_BASE_ADDR 0x10008000
110+
108111
/* Timer configuration */
109112
#define RISCV_MTIME_BASE 0x0200BFF8
110113
#define RISCV_MTIMECMP_BASE 0x02004000
111114

115+
/* Always ON Domain */
116+
#define FE310_PMUIE 0x10000140
117+
#define FE310_PMUCAUSE 0x10000144
118+
#define FE310_PMUSLEEP 0x10000148
119+
#define FE310_PMUKEY 0x1000014C
120+
#define FE310_SLEEP_KEY_VAL 0x0051F15E
121+
122+
#define FE310_BACKUP_REG_BASE 0x10000080
123+
112124
/* lib-c hooks required RAM defined variables */
113125
#define RISCV_RAM_BASE CONFIG_RISCV_RAM_BASE_ADDR
114126
#define RISCV_RAM_SIZE CONFIG_RISCV_RAM_SIZE

0 commit comments

Comments
 (0)