diff options
| author | Himanshu Chauhan <[email protected]> | 2023-07-12 10:04:31 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-07-13 12:12:58 +0530 |
| commit | d72f5f17478dfef3df817339a0f02cfdb77a1dc1 (patch) | |
| tree | f0483952e9cda12e5a53ce4101349f112bc8c1ab /include | |
| parent | cbcfc7b10c3a99349f184647c73448b0cb8482df (diff) | |
lib: utils: Add detection of Smepmp from ISA string in FDT
- Add function to parse ISA string in FDT.
- Set Smepmp feature bit in extensions if "smepmp" string is found in ISA string.
Signed-off-by: Himanshu Chauhan <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi_utils/fdt/fdt_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index 39d7f3a0..5c928ffd 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -56,6 +56,9 @@ int fdt_parse_max_enabled_hart_id(void *fdt, u32 *max_hartid); int fdt_parse_timebase_frequency(void *fdt, unsigned long *freq); +int fdt_parse_isa_extensions(void *fdt, unsigned int hard_id, + unsigned long *extensions); + int fdt_parse_gaisler_uart_node(void *fdt, int nodeoffset, struct platform_uart_data *uart); |
