mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-17 01:47:00 +02:00
To make software license auditing simpler, use SPDX[0] license identifiers instead of duplicating the license text in every file. NOTE: Files that have been imported by FreeBSD have not been modified. [0]: https://spdx.org/ Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761a Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
29 lines
722 B
C
29 lines
722 B
C
/*
|
|
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef __MT_CPUXGPT_H__
|
|
#define __MT_CPUXGPT_H__
|
|
|
|
/* REG */
|
|
#define INDEX_CTL_REG 0x000
|
|
#define INDEX_STA_REG 0x004
|
|
#define INDEX_CNT_L_INIT 0x008
|
|
#define INDEX_CNT_H_INIT 0x00C
|
|
|
|
/* CTL_REG SET */
|
|
#define EN_CPUXGPT 0x01
|
|
#define EN_AHLT_DEBUG 0x02
|
|
#define CLK_DIV1 (0x1 << 8)
|
|
#define CLK_DIV2 (0x2 << 8)
|
|
#define CLK_DIV4 (0x4 << 8)
|
|
#define CLK_DIV_MASK (~(0x7<<8))
|
|
|
|
void generic_timer_backup(void);
|
|
void sched_clock_init(uint64_t normal_base, uint64_t atf_base);
|
|
uint64_t sched_clock(void);
|
|
|
|
#endif /* __MT_CPUXGPT_H__ */
|