mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
The S-35390A keeps the hour either as 0-23 or - its default after a
power-on reset - as 0-11 plus a p.m. flag, selected by the 12/24 bit of
status register 1. The driver assumed 24-hour mode and never set it: it
masked the p.m. flag off, so on a chip left in 12-hour mode every
afternoon read as morning, and writing an afternoon time stored an
out-of-range hour.
Read the mode in rtc_init() and convert the hour both ways. The chip's
mode is left alone, as another firmware on the same player may depend on
it - the Samsung YP-CP3's original firmware runs it in 12-hour mode and
never touches the bit. If the status register cannot be read, the driver
keeps assuming 24-hour mode, as before.
Upstream removed the driver with its only users, the Meizu M3/M6 and
Samsung YP-S3 ports (
|
||
|---|---|---|
| .. | ||
| rtc_as3514.c | ||
| rtc_d2.c | ||
| rtc_ds1339_ds3231.c | ||
| rtc_e8564.c | ||
| rtc_imx233.c | ||
| rtc_jz4740.c | ||
| rtc_jz4760.c | ||
| rtc_mc13783.c | ||
| rtc_mr100.c | ||
| rtc_pcf50605.c | ||
| rtc_pcf50606.c | ||
| rtc_rx5x348ab.c | ||
| rtc_s3c2440.c | ||
| rtc_s35380a.c | ||
| rtc_s35390a.c | ||
| rtc_stm32h7.c | ||
| rtc_x1000.c | ||
| rtc_zenvisionm.c | ||