Skip to content

Commit

Permalink
rtc: add optee RTC driver
Browse files Browse the repository at this point in the history
This drivers allows to to communicate with a RTC PTA handled by OP-TEE.
This PTA allows to query RTC information, set/get time and set/get
offset depending on the supported features.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
  • Loading branch information
clementleger committed Feb 16, 2022
1 parent e6251ab commit 78c118b
Show file tree
Hide file tree
Showing 3 changed files with 407 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,16 @@ config RTC_DRV_OPAL
This driver can also be built as a module. If so, the module
will be called rtc-opal.

config RTC_DRV_OPTEE
tristate "OP-TEE based RTC driver"
depends on OPTEE
help
Select this to get support for OP-TEE based RTC control
on ARM SoCs where RTC are not accessible to normal world (Linux).

This driver can also be built as a module. If so, the module
will be called rtc-optee.

config RTC_DRV_ZYNQMP
tristate "Xilinx Zynq Ultrascale+ MPSoC RTC"
depends on OF && HAS_IOMEM
Expand Down
1 change: 1 addition & 0 deletions drivers/rtc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ obj-$(CONFIG_RTC_DRV_GAMECUBE) += rtc-gamecube.o
obj-$(CONFIG_RTC_DRV_NTXEC) += rtc-ntxec.o
obj-$(CONFIG_RTC_DRV_OMAP) += rtc-omap.o
obj-$(CONFIG_RTC_DRV_OPAL) += rtc-opal.o
obj-$(CONFIG_RTC_DRV_OPTEE) += rtc-optee.o
obj-$(CONFIG_RTC_DRV_PALMAS) += rtc-palmas.o
obj-$(CONFIG_RTC_DRV_PCAP) += rtc-pcap.o
obj-$(CONFIG_RTC_DRV_PCF2123) += rtc-pcf2123.o
Expand Down
Loading

0 comments on commit 78c118b

Please sign in to comment.