Searched +full:xgene +full:- +full:rtc (Results 1 – 5 of 5) sorted by relevance
| /linux/Documentation/devicetree/bindings/rtc/ |
| H A D | apm,xgene-rtc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/rtc/apm,xgene-rtc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: APM X-Gene Real Time Clock 10 - Khuong Dinh <khuong@os.amperecomputing.com> 14 const: apm,xgene-rtc 22 '#clock-cells': 29 - compatible 30 - reg [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-xgene.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * APM X-Gene SoC Real Time Clock Driver 17 #include <linux/rtc.h> 20 /* RTC CSR Registers */ 36 struct rtc_device *rtc; member 47 rtc_time64_to_tm(readl(pdata->csr_base + RTC_CCVR), tm); in xgene_rtc_read_time() 59 writel((u32)rtc_tm_to_time64(tm), pdata->csr_base + RTC_CLR); in xgene_rtc_set_time() 60 readl(pdata->csr_base + RTC_CLR); /* Force a barrier */ in xgene_rtc_set_time() 70 rtc_time64_to_tm(0, &alrm->time); in xgene_rtc_read_alarm() 71 alrm->enabled = readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE; in xgene_rtc_read_alarm() [all …]
|
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 3 # Makefile for RTC class/drivers. 6 ccflags-$(CONFIG_RTC_DEBUG) := -DDEBUG 8 obj-$(CONFIG_RTC_LIB) += lib.o 9 obj-$(CONFIG_RTC_CLASS) += rtc-core.o 10 obj-$(CONFIG_RTC_MC146818_LIB) += rtc-mc146818-lib.o 11 rtc-core-y := class.o interface.o 13 rtc-core-$(CONFIG_RTC_NVMEM) += nvmem.o 14 rtc-core-$(CONFIG_RTC_INTF_DEV) += dev.o 15 rtc-core-$(CONFIG_RTC_INTF_PROC) += proc.o [all …]
|
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # RTC class/drivers configuration 19 Generic RTC class support. If you say yes here, you will 26 bool "Set system time from RTC on startup and resume" 30 the value read from a specified RTC device. This is useful to avoid 34 string "RTC used to set the system time" 38 The RTC device that will be used to (re)initialize the system 44 This clock should be battery-backed, so that it reads the correct 45 time when the system boots from a power-off state. Otherwise, your 50 sleep states. Do not specify an RTC here unless it stays powered [all …]
|
| /linux/arch/arm64/boot/dts/apm/ |
| H A D | apm-merlin.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 10 /include/ "apm-shadowcat.dtsi" 13 model = "APM X-Gene Merlin board"; 14 compatible = "apm,merlin", "apm,xgene-shadowcat"; 23 gpio-keys { 24 compatible = "gpio-keys"; 28 linux,input-type = <0x1>; 29 interrupt-parent = <&sbgpio>; 35 compatible = "apm,merlin-poweroff-mailbox", "syscon"; [all …]
|