From 931e06de64100e28031627964321da3fdb449378 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 4 May 2010 10:07:53 +0000 Subject: i.MX31/Gigabeat S: Actually enable DPTC which can set optimal voltage for 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 --- firmware/drivers/rtc/rtc_mc13783.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/drivers/rtc/rtc_mc13783.c') diff --git a/firmware/drivers/rtc/rtc_mc13783.c b/firmware/drivers/rtc/rtc_mc13783.c index e36faa6089..9cef3e904c 100644 --- a/firmware/drivers/rtc/rtc_mc13783.c +++ b/firmware/drivers/rtc/rtc_mc13783.c @@ -104,8 +104,8 @@ int rtc_read_datetime(struct tm *tm) * greater */ do { - if (mc13783_read_regset(rtc_registers, regs, - RTC_NUM_REGS) < RTC_NUM_REGS) + if (mc13783_read_regs(rtc_registers, regs, + RTC_NUM_REGS) < RTC_NUM_REGS) { /* Couldn't read registers */ return 0; @@ -204,7 +204,7 @@ int rtc_write_datetime(const struct tm *tm) regs[RTC_REG_DAY] = day + tm->tm_mday - 1 - base_yearday; - if (mc13783_write_regset(rtc_registers, regs, 2) == 2) + if (mc13783_write_regs(rtc_registers, regs, 2) == 2) { return 7; } -- cgit v1.2.3