2018-04-16 19:03:33 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Ken Rabold
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License v2.1. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-04-16 22:35:32 +02:00
|
|
|
* @ingroup cpu_fe310
|
2018-04-16 19:03:33 +02:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief CPU specific configuration options
|
|
|
|
*
|
|
|
|
* @author Ken Rabold
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CPU_CONF_H
|
|
|
|
#define CPU_CONF_H
|
|
|
|
|
2020-09-09 21:37:15 +02:00
|
|
|
#include "cpu_conf_common.h"
|
|
|
|
#include "vendor/platform.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2018-04-16 19:03:33 +02:00
|
|
|
#endif
|
|
|
|
|
2019-02-05 16:59:36 +01:00
|
|
|
/**
|
2020-09-09 21:37:15 +02:00
|
|
|
* @brief Base address of the CLINT
|
2019-02-05 16:59:36 +01:00
|
|
|
*/
|
2020-09-09 21:37:15 +02:00
|
|
|
#define CLINT_BASE_ADDR (CLINT_CTRL_ADDR)
|
2019-02-05 16:59:36 +01:00
|
|
|
|
2020-06-25 16:51:18 +02:00
|
|
|
/**
|
2020-09-09 21:37:15 +02:00
|
|
|
* @brief Base address of the PLIC peripheral
|
2020-06-25 16:51:18 +02:00
|
|
|
*/
|
2020-09-09 21:37:15 +02:00
|
|
|
#define PLIC_BASE_ADDR (PLIC_CTRL_ADDR)
|
2018-04-16 19:03:33 +02:00
|
|
|
|
2023-06-06 17:30:51 +02:00
|
|
|
/**
|
|
|
|
* @brief Number of available PMP regions
|
|
|
|
* Note, the upper 8 regions are hardwired to zero!
|
|
|
|
*/
|
|
|
|
#define NUM_PMP_ENTRIES 16
|
|
|
|
|
2018-04-16 19:03:33 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* CPU_CONF_H */
|
|
|
|
/** @} */
|