1. 27 10月, 2017 1 次提交
  2. 12 10月, 2017 1 次提交
    • H
      rtc: ds1307: improve weekday handling · 584ce30c
      Heiner Kallweit 提交于
      The current code for checking and fixing the weekday in ds1307_probe
      faces some issues:
      - This check is applied to all chips even if its applicable (AFAIK)
        to mcp794xx only
      - The check uses MCP794XX constants for registers and bits even though
        it's executed also on other chips (ok, this could be fixed easily)
      - It relies on tm_wday being properly populated when core calls set_time
        and set_alarm. This is not guaranteed at all.
      
      First two issue we could solve by moving the check to the
      mcp794xx-specific initialization (where also VBATEN flag is set).
      
      The proposed alternative is in the set_alarm path for mcp794xx only and
      calculates the alarm weekday based on the current weekday in the RTC
      timekeeping regs and the difference between alarm date and current date.
      So we are fine with any weekday even if it doesn't match the date.
      
      Still there are cases where this could fail, e.g.:
      - rtc date/time + weekday have power-on-reset default values
      - alarm is set to actual date/time + x
      - set_time is called (may change diff between rtc weekday and actual
        weekday)
      
      But similar issues we have with the current code too:
      - rtc date/time + weekday have power-on-reset default values
      - alarm is set to rtc date/time + x
      - set_time is called before the alarm triggers
      
      Using random rtc date/time with relative alarms simply can interfere
      with set_time. I'm not totally convinced of either option yet.
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
      584ce30c
  3. 05 9月, 2017 7 次提交
  4. 01 9月, 2017 10 次提交
  5. 21 8月, 2017 1 次提交
  6. 31 7月, 2017 1 次提交
  7. 07 7月, 2017 5 次提交
  8. 06 7月, 2017 1 次提交
  9. 25 6月, 2017 1 次提交
    • M
      rtc: ds1307: Add support for Epson RX8130CE · ee0981be
      Marek Vasut 提交于
      Add support for yet another RTC chip, Epson RX8130CE. This time around,
      the chip has slightly permutated registers and also the register starts
      at 0x10 instead of 0x0 .
      
      So far, we only support the RTC and NVRAM parts of the chip, Alarm and
      Timer is not supported.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
      ee0981be
  10. 03 6月, 2017 1 次提交
  11. 31 5月, 2017 1 次提交
  12. 26 5月, 2017 1 次提交
  13. 14 4月, 2017 2 次提交
  14. 09 3月, 2017 1 次提交
  15. 19 12月, 2016 1 次提交
  16. 01 9月, 2016 2 次提交
  17. 09 7月, 2016 2 次提交
  18. 20 5月, 2016 1 次提交