include: sbi: macros for mseccfg.sseed and .useed
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 28 Oct 2023 22:49:57 +0000 (00:49 +0200)
committerAnup Patel <anup@brainfault.org>
Fri, 17 Nov 2023 06:33:59 +0000 (12:03 +0530)
Define macros to access the sseed and the useed bit in the machine
security configuration register (mseccfg).

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/riscv_encoding.h

index a545242a69dced3b3bb820f13ecee6472d86cdb8..0996d649a683b2d0185672efb952d51ce3a705ec 100644 (file)
 #define MSECCFG_MMWP                   (_UL(1) << MSECCFG_MMWP_SHIFT)
 #define MSECCFG_RLB_SHIFT              (2)
 #define MSECCFG_RLB                    (_UL(1) << MSECCFG_RLB_SHIFT)
+#define MSECCFG_USEED_SHIFT            (8)
+#define MSECCFG_USEED                  (_UL(1) << MSECCFG_USEED_SHIFT)
+#define MSECCFG_SSEED_SHIFT            (9)
+#define MSECCFG_SSEED                  (_UL(1) << MSECCFG_SSEED_SHIFT)
 
 /* Counter Overflow CSR */
 #define CSR_SCOUNTOVF                  0xda0