Besides the initialization function, the SRTC driver provides IOCTL functions to set up
the RTC timers and alarm functions. The following RTC IOCTLs are implemented by the
SRTC driver:
• RTC_RD_TIME
• RTC_SET_TIME
• RTC_AIE_ON
• RTC_AIE_OFF
• RTC_ALM_READ
• RTC_ALM_SET
The driver information can be access by the proc file system. For example:
root@freescale /unit_tests$ cat /proc/driver/rtc
rtc_time : 12:48:29
rtc_date : 2009-08-07
alrm_time : 14:41:16
alrm_date : 1970-01-13
alarm_IRQ : no
alrm_pending : no
24hr : yes
24.2.2 Keeping Alive in the Power Off State
To preserve the time when the device is in the power-off state, the SRTC clock source
should be set to CKIL and the voltage input, NVCC_SRTC_POW, should remain active.
Usually these signals are connected to the PMIC and software can configure the PMIC
registers to enable the SRTC clock source and power supply.
Generally, when the main battery is removed and the device is in power-off state, a coin-
cell battery is used as a backup power supply. To avoid SRTC time loss, the voltage of
the coin-cell battery should be sufficient to power the SRTC. If the coin-cell battery is
chargeable, it is recommended to automatically enable the coin-cell charger so that the
SRTC is properly powered.
24.3 Driver Features
• Implementing all the functions required by Linux to provide the real-time clock and
alarm interrupt.
• Reserveing time in power-ff state.
• Alarm wakes up the system from low-power modes.
Driver Features
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
174
Freescale Semiconductor, Inc.
Содержание i.MX 6DualLite
Страница 1: ...i MX 6Solo 6DualLite Linux Reference Manual Document Number IMX6SDLLXRM Rev L3 0 35_4 1 0 09 2013...
Страница 2: ...i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 2 Freescale Semiconductor Inc...
Страница 32: ...Overview i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 32 Freescale Semiconductor Inc...
Страница 48: ...Overview i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 48 Freescale Semiconductor Inc...
Страница 52: ...Overview i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 52 Freescale Semiconductor Inc...
Страница 132: ...Software Operation i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 132 Freescale Semiconductor Inc...
Страница 148: ...Driver Features i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 148 Freescale Semiconductor Inc...
Страница 152: ...Hardware Operation i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 152 Freescale Semiconductor Inc...
Страница 168: ...Unit Test i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 168 Freescale Semiconductor Inc...
Страница 176: ...Driver Features i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 176 Freescale Semiconductor Inc...
Страница 190: ...Unit Test i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 190 Freescale Semiconductor Inc...
Страница 212: ...Introduction i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 212 Freescale Semiconductor Inc...
Страница 230: ...Driver Features i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 230 Freescale Semiconductor Inc...
Страница 238: ...Driver Features i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 238 Freescale Semiconductor Inc...
Страница 256: ...System WakeUp i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 256 Freescale Semiconductor Inc...
Страница 292: ...Introduction i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 292 Freescale Semiconductor Inc...
Страница 296: ...Software Operation i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 296 Freescale Semiconductor Inc...
Страница 310: ...Requirements i MX 6Solo 6DualLite Linux Reference Manual Rev L3 0 35_4 1 0 09 2013 310 Freescale Semiconductor Inc...