Commit Graph

4 Commits

Author SHA1 Message Date
Jon Hunter
48061dcb5d rtc: Remove DT check for VRS RTC
The VRS RTC driver does not required device-tree because the device is
populated by the parent NVIDIA VRS PSEQ driver. Therefore, remove the
device-tree check in the probe function of the VRS RTC driver so that it
is not necessary to populate the device-tree node for the RTC device.

Bug 4006278

Change-Id: I0c5ca81a65109b3f0d5e12465a5496e558c9887c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2867042
(cherry picked from commit de193f1eec7497164b73b922deddaf216457592c)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2870757
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-03-21 02:35:48 -07:00
Jon Hunter
6fb4e1b127 rtc: Fix automatic loading of VRS RTC driver
The NVIDIA VRS RTC driver is not automatically loaded when built as an
out-of-tree module. Populate the MODULE_DEVICE_TABLE to fix this.

Bug 4006278

Change-Id: I651a6ab4a6aba6666532aed19146d9772c1c77ed
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2866611
(cherry picked from commit 4867aa729b46a262d50a03487b1869a5e3703be7)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2866850
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-03-13 04:58:37 -07:00
Shubhi Garg
1fa3407928 rtc: fix coverity defects
CID 10166554: Unintentional integer overflow defect.
Fixes by typecasting ret of signed 32bit value to signed
64bit value.

Bug 3952896

Change-Id: I35cbc8bf3e9eb906688f9bb27953d1e5bf76633d
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2864836
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-03-11 19:15:24 -08:00
Shubhi Garg
2f9478c1eb rtc: add VRS10 PSEQ RTC driver
Adding RTC driver support for Nvidia based Voltage Regulator Power
Sequencer. Driver depends on CONFIG_MFD_NVVRS_PSEQ to get enabled which
is a parent driver for RTC. Following are the VRS RTC functionalies:
1. RTC executes alarm function to wake system from suspend/shutdown state.
2. RTC has 32bit time counter register which increments each second.
3. RTC triggers interrupt when the set alarm time becomes equal to the time
read from TIME registers.

Bug 200669555

Change-Id: I7890c084e5a1ec075823fee3ae5171fe7a89c6e0
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2748752
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-07-29 00:09:21 -07:00