2 * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <linux/bitops.h>
11 #include <linux/sizes.h>
13 #define CNT_CONTROL_BASE 0x60E00000
16 #define CNTCR_EN BIT(0)
18 /* setup ARMv8 Generic Timer */
24 base = map_sysmem(CNT_CONTROL_BASE, SZ_4K);
28 * In a system that implements both Secure and Non-secure states,
29 * this register is only writable in Secure state.
31 tmp = readl(base + CNTCR);
33 writel(tmp, base + CNTCR);