summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-05-21 14:03:33 +0300
committerAnup Patel <anup@brainfault.org>2021-06-24 07:09:55 +0300
commita731c7e36988c3308e1978ecde491f2f6182d490 (patch)
treee6d966c4cc40d92863326914bc1e8b736bcf93c6 /include
parent03d6bb51ba96a16a8ac9a2fcbaebec9f6c31d900 (diff)
downloadopensbi-a731c7e36988c3308e1978ecde491f2f6182d490.tar.xz
platform: Replace CLINT library usage with ACLINT library
The ACLINT devices are backward compatible with SiFive CLINT so we replace all CLINT library usage in various platforms with ACLINT library. As a result of this replacement, the CLINT library is not used by any part of OpenSBI hence we remove it. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Xiang W <wxjstz@126.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/sys/clint.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/include/sbi_utils/sys/clint.h b/include/sbi_utils/sys/clint.h
deleted file mode 100644
index 1e2b40b..0000000
--- a/include/sbi_utils/sys/clint.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * SPDX-License-Identifier: BSD-2-Clause
- *
- * Copyright (c) 2019 Western Digital Corporation or its affiliates.
- *
- * Authors:
- * Anup Patel <anup.patel@wdc.com>
- */
-
-#ifndef __SYS_CLINT_H__
-#define __SYS_CLINT_H__
-
-#include <sbi/sbi_types.h>
-
-struct clint_data {
- /* Public details */
- unsigned long addr;
- u32 first_hartid;
- u32 hart_count;
- bool has_64bit_mmio;
- /* Private details (initialized and used by CLINT library)*/
- u32 *ipi;
- struct clint_data *time_delta_reference;
- unsigned long time_delta_computed;
- u64 time_delta;
- u64 *time_val;
- u64 *time_cmp;
- u64 (*time_rd)(volatile u64 *addr);
- void (*time_wr)(u64 value, volatile u64 *addr);
-};
-
-int clint_warm_ipi_init(void);
-
-int clint_cold_ipi_init(struct clint_data *clint);
-
-int clint_warm_timer_init(void);
-
-int clint_cold_timer_init(struct clint_data *clint,
- struct clint_data *reference);
-
-#endif