File: andes_plmt.h

package info (click to toggle)
opensbi 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,480 kB
  • sloc: ansic: 34,934; python: 4,658; asm: 1,113; makefile: 639; sh: 329
file content (28 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * SPDX-License-Identifier: BSD-2-Clause
 *
 * Copyright (c) 2022 Andes Technology Corporation
 *
 * Authors:
 *   Zong Li <zong@andestech.com>
 *   Nylon Chen <nylon7@andestech.com>
 *   Yu Chien Peter Lin <peterlin@andestech.com>
 */

#ifndef __TIMER_ANDES_PLMT_H__
#define __TIMER_ANDES_PLMT_H__

#define DEFAULT_AE350_PLMT_FREQ 60000000
#define PLMT_REGION_ALIGN 0x1000

struct plmt_data {
	u32 hart_count;
	unsigned long size;
	unsigned long timer_freq;
	volatile u64 *time_val;
	volatile u64 *time_cmp;
};

int plmt_cold_timer_init(struct plmt_data *plmt);

#endif /* __TIMER_ANDES_PLMT_H__ */