Loading...
Searching...
No Matches
cpu_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Matvii Ivashchenko
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
16
17#include "cpu_conf_common.h"
18#include "vendor/clint.h"
19#include "vendor/plic.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#define CLINT_BASE_ADDR (0xe0000000UL)
30
35#define PLIC_CTRL_ADDR (0xf8000000UL)
36
41#define PLIC_NUM_INTERRUPTS (31U)
42
47#define PLIC_NUM_PRIORITIES (7U)
48
52#define NUM_PMP_ENTRIES (16)
53
60#define RTC_FREQ (20000000UL)
61
62#ifdef __cplusplus
63}
64#endif
65