summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc
AgeCommit message (Collapse)Author
2013-07-02imx233: implement alarm wake upAmaury Pouly
This adds the application part of alarm wake up. On some targets like the Fuze+, it will also require a bootloader change to make sure that the device doesn't power down on alarm wake up (for example on the Fuze+ the bootloader requires the power button to be hold sufficiently long, thus preventing alarm wake up to work) Change-Id: I5d01957852355fddbd48110d3d75a5533f07879e
2012-05-27zenxfi3: RTC is used in same was as in fuze+, using seconds-since-1970 plus ↵Bertrik Sikken
an offset Change-Id: Iab2e6e15c790c26d3bf2679e9f965a409d162783
2012-05-19imx233: move rtc init from drivers/ to firmware/Amaury Pouly
Change-Id: Id816987a4bb1191d5c9cf8a85c51d75fbb2da7c8
2012-04-17as3514 rtc: sansa clip zip uses 1970/1/1 base date instead of special ↵Bertrik Sikken
AS3525v2 date Change-Id: I32329c82da93c705a5cb4af8a1a8b4e85a9c9b37
2012-03-13Convert IMX233 RTC driver (used in fuze+) to use mktime and gmtimeBertrik Sikken
Change-Id: Ie71d495509a81db5e02078398f5d722c00136072
2012-03-11Introduce gmtime.c and use it in the AS3514 RTC driverBertrik Sikken
Change-Id: I00a09ae28a68f8153fb8fa854fea741ddfb0bf09 Reviewed-on: http://gerrit.rockbox.org/175 Tested-by: Bertrik Sikken <bertrik@sikken.nl> Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Reviewed-by: Rafaël Carré <rafael.carre@gmail.com>
2012-01-07cowond2's power-target.h -> rename in pmu-target.hRafaël Carré
other targets (ipod nano2g / classic) use that name for pmu git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31618 a1c6a512-1295-4272-9138-f99709370657
2011-12-31imx233/fuze+: implement rtc (time only, alarm still to implement)Amaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31473 a1c6a512-1295-4272-9138-f99709370657
2011-12-24Initial commit of the Samsung YP-R0 port.Thomas Martitz
This port is a hybrid native/RaaA port. It runs on a embedded linux system, but is the only application. It therefore can implement lots of stuff that native targets also implement, while leveraging the underlying linux kernel. The port is quite advanced. User interface, audio playback, plugins work mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page). Included in utils/ypr0tools are scripts and programs required to generate a patched firmware. The patched firmware has the rootfs modified to load Rockbox. It includes a early/safe USB mode. This port needs a new toolchain, one that includes glibc headers and libraries. rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may also work. Most of the initial effort is done by Lorenzo Miori and others (on ABI), including reverse engineering and patching of the original firmware, initial drivers, and more. Big thanks to you. Flyspray: FS#12348 Author: Lorenzo Miori, myself Merry christmas to ypr0 owners! :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
2011-07-23imx233/fuze+: huge reworkAmaury Pouly
- enable MMU -rework lcd frame buffer - add rtc/adc/power stubs (or not) - fix a few MMC related defines (hopefully) - implement cache handling for DMA - more SD work - add keymap (based on clip) - add virtual buttons - update linker scripts - big step toward apps actually compiling git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30200 a1c6a512-1295-4272-9138-f99709370657
2010-12-24mc13783 RTC: Handle years in a better way for the use of struct tm. Make the ↵Michael Sevakis
code less general because all years evenly divisible by 4 in the day range are leap years. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28891 a1c6a512-1295-4272-9138-f99709370657
2010-12-08RTC s35380a - remove unneeded header files includesMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28778 a1c6a512-1295-4272-9138-f99709370657
2010-12-08RTC s35380a - cleanup and more commentsMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28772 a1c6a512-1295-4272-9138-f99709370657
2010-12-07RTC s35380a - proper alarm supportMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28763 a1c6a512-1295-4272-9138-f99709370657
2010-12-06RTC s35380a - add support for alarm function. Currently this powers up the ↵Marcin Bukat
device but doesn't start selected function (radio/recording/playback) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28740 a1c6a512-1295-4272-9138-f99709370657
2010-11-29RTC s35380a - fix initialization.Marcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28711 a1c6a512-1295-4272-9138-f99709370657
2010-11-28HD300 - add basic RTC supportMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28697 a1c6a512-1295-4272-9138-f99709370657
2010-11-01Another (hopefully final) fix for FS#11453 (AMSv2 powerdown fails sometimes ↵Bertrik Sikken
when wakeup timer set) by Fabian Vogel. This fix disables MCLK before powerdown-for-wakeup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28435 a1c6a512-1295-4272-9138-f99709370657
2010-08-28tcc77x targets: various minor cleanupsBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27913 a1c6a512-1295-4272-9138-f99709370657
2010-08-08Various minor fixes for Samsung YH* targetsBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27751 a1c6a512-1295-4272-9138-f99709370657
2010-07-16rtc_as3514.c: make alarm struct static and reorder fields to save some binsizeBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27448 a1c6a512-1295-4272-9138-f99709370657
2010-07-16Fix failing AMSv2 power-down when the wake-up alarm timer is set - FS #11453 ↵Bertrik Sikken
by me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27447 a1c6a512-1295-4272-9138-f99709370657
2010-06-27Sansa clip+: prevent an unnecessary OF database refresh when using the ↵Bertrik Sikken
wake-up alarm with a uSD card inserted (probably works for other AMSv2 targets too) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27158 a1c6a512-1295-4272-9138-f99709370657
2010-06-17AMSv2 RTC: no need to write to RTC_WAKEUP registerRafaël Carré
The wakeup alarm will be disabled when powering off anyway OF database refresh of µSD now only happens if the wakeup was explicitely enabled There still seems to be a freeze problem when powering off (sometimes) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26875 a1c6a512-1295-4272-9138-f99709370657
2010-06-06fix typo in r26245 (I guess not many people use rtc_alarm with gigabeat f)Robert Kukla
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26635 a1c6a512-1295-4272-9138-f99709370657
2010-05-24as3543 rtc wakeup: fix power offRafaël Carré
If we disable the hearbeat source after enabling the watchdog there's no more lock-up when powering off the dap Comment out alarm enabling on startup since rockbox disables the alarm anyway git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26247 a1c6a512-1295-4272-9138-f99709370657
2010-05-22rtc_enable_alarm() needs no return valueRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26245 a1c6a512-1295-4272-9138-f99709370657
2010-05-22as3525v2: RTC alarmRafaël Carré
A specific poweroff function needs to be used for wake-up to work Disable RTC in bootloaders for consistency with other Sansas git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26243 a1c6a512-1295-4272-9138-f99709370657
2010-05-04i.MX31/Gigabeat S: Actually enable DPTC which can set optimal voltage for ↵Michael Sevakis
528MHz. Requires an SPI and PMIC interface rework because of the low-latency needs for the DPTC to work best with minimal panicing. SPI can work with multitasking and asynchronously from interrupt handlers or normal code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25800 a1c6a512-1295-4272-9138-f99709370657
2010-02-22Clip+: show the same real time in OF and rockboxRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24859 a1c6a512-1295-4272-9138-f99709370657
2010-01-30fix warnings in s35390 rtc driverBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24380 a1c6a512-1295-4272-9138-f99709370657
2010-01-08Ingenic Jz4740: simplify RTC driver (you will need to re-set the clock)Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24201 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Final removal of tabs in firmware pathAndree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24158 a1c6a512-1295-4272-9138-f99709370657
2009-11-05Fix same bug as in r23531 in two more drivers (wrong masking of wday)Nils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23536 a1c6a512-1295-4272-9138-f99709370657
2009-11-05RTC read of ds1339 of ds3231 weekday Robert Kukla
Flyspray: FS #10760 Author: Simon Rothen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23531 a1c6a512-1295-4272-9138-f99709370657
2009-10-12Replace a couple of magic numbers with the appropriate constants.Rob Purchase
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23138 a1c6a512-1295-4272-9138-f99709370657
2009-10-11D2: The RTC chip needs to be runtime detected.Rob Purchase
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23112 a1c6a512-1295-4272-9138-f99709370657
2009-10-09as3514 RTC driver: correct calculation, fixes FS#10625Michael Chicoine
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23037 a1c6a512-1295-4272-9138-f99709370657
2009-09-26Add missing parentheses to fix redNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22840 a1c6a512-1295-4272-9138-f99709370657
2009-09-26FS#10569 RTC driver cleanupNils Wallménius
Change the RTC drivers so that the rtc_(read|write)_datetime functions now deal directly with the tm struct instead of passing a string of bcd digits to/from (set|get)_time . This simplifies drivers for rtc's that do not use a bcd representation internally and cleans up some target specific code and #ifdefs in generic code. Implement simple stubs for the sim to avoid #ifdefing for that too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22839 a1c6a512-1295-4272-9138-f99709370657
2009-07-12Correct svn:keywords and svn:eol-style on a few more files.Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21798 a1c6a512-1295-4272-9138-f99709370657
2009-07-05S35390a RTC: fix duplicate i2c initialisationBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21679 a1c6a512-1295-4272-9138-f99709370657
2009-06-28Add RTC driver for Seiko S35390A (used in the Meizu M3 and possibly other ↵Bertrik Sikken
Meizus) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21539 a1c6a512-1295-4272-9138-f99709370657
2009-06-24M:Robe 500: RTC is now working, Added some SPI flexibility per end device ↵Karl Kurbjun
and modified the interrupt handler for the tsc2100 which should make it more reliable. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21483 a1c6a512-1295-4272-9138-f99709370657
2009-05-06Ingenic Jz4740: add a delay between enabling the RTC clock and setting the ↵Maurus Cuelenaere
RTC time git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20862 a1c6a512-1295-4272-9138-f99709370657
2009-05-02M:Robe 500 - Fix some of the Keymaps, touchscreen improvements to decrease ↵Karl Kurbjun
inacurate reads, add support for dynamic frequency (was running at 87.5 MHz, now it runs at 175 MHz when boosted), disable clock to unneded modules (decreased power by 20 mA), LCD turnoff now works without graphic glitches, battery ADC read now returns scaled voltage, define backlight fading git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20846 a1c6a512-1295-4272-9138-f99709370657
2009-04-14FS#9635 - On V1, V2 and FM Archos recorders, ensure instant backlight ↵Boris Gjenero
switch-off. (Formerly, backlight switch-off was unpredicrable on some of these devices. The backlight would either turn off instantly or brighten instantly and then fade.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20707 a1c6a512-1295-4272-9138-f99709370657
2009-04-12FS#9985: The OF of AMS sansas seems to keep time in seconds since 1970-1-1 ↵Bertrik Sikken
instead of 1980-1-1 used in earlier sansas, so apply an adjustment for this difference when reading/writing the RTC. This avoids resetting of date/time by the OF. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20697 a1c6a512-1295-4272-9138-f99709370657
2009-02-26Ingenic Jz4740 RTC: actually write date to RTCMaurus Cuelenaere
Touchscreen DAPs: add timescreen keymap git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20122 a1c6a512-1295-4272-9138-f99709370657
2009-02-13Onda VX747:Maurus Cuelenaere
* Add preliminary keymap * Split up generic MIPS stuff from Ingenic specific * Make apps/ compilable * Add SD driver * Fix RTC driver * Add debug screen * Other cleanups/rewrites/fixes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19993 a1c6a512-1295-4272-9138-f99709370657