staging: fsl-dpaa2/rtc: add rtc driver
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 23 Apr 2018 03:55:00 +0000 (11:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:53:05 +0000 (15:53 +0200)
commit9bdf43b3d40f8c0066eb12c7693509d2b4c5bdac
treecdd7663d700c962328b63954e00b6cc864915e9a
parentd08e2f9728ca5ceeb1ba026a2a1c741d7833d756
staging: fsl-dpaa2/rtc: add rtc driver

This patch is to add driver for the DPAA2 1588 timer module (RTC)
which interfaces to up to an unlimited number of 10/100/1000 or
10G ethernet MACs, providing current time, alarm, and fiper support.
The 1588 IP control block includes these distinctive features.

- External GPIO trigger for time-stamping
- 2 Time-stamp alarms
- 3 FIPER pulse generators
- Phase adjusted output timer clock

Currently this driver only supports basic functions like
settime/gettime/adjtime/adjfreq.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/Kconfig
drivers/staging/fsl-dpaa2/Makefile
drivers/staging/fsl-dpaa2/rtc/Makefile [new file with mode: 0644]
drivers/staging/fsl-dpaa2/rtc/dprtc-cmd.h [new file with mode: 0644]
drivers/staging/fsl-dpaa2/rtc/dprtc.c [new file with mode: 0644]
drivers/staging/fsl-dpaa2/rtc/dprtc.h [new file with mode: 0644]
drivers/staging/fsl-dpaa2/rtc/rtc.c [new file with mode: 0644]