Changeset 3608


Ignore:
Timestamp:
Mar 15, 2013, 5:26:35 AM (17 months ago)
Author:
quozl
Message:

OLPC - set the month and day registers of the RTC when it is being initialised on XO-1.75 and XO-4, and add initialisation in response to RTC power loss on XO-1 and XO-1.5.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/rtc.fth

    r3324 r3608  
    1515: ?clear 
    1616   h# 3f rtc@  h# 3e rtc@  bwjoin  h# 55aa  <>  if 
    17       h# 20 8 rtc!                     \ century 
     17      h# 20 h#  8 rtc!                 \ century 
     18      h# 13 h#  9 rtc!                 \ year 
     19      h#  1 h#  8 rtc!                 \ month 
     20      h#  1 h#  7 rtc!                 \ day 
    1821      h# 20 h# 10  do  0 i rtc!  loop  \ wipe cmos@ cmos! area 
    1922      h# 55aa  wbsplit  h# 3e rtc!  h# 3f rtc! 
  • dev/ds1385r.fth

    r2879 r3608  
    8989   then 
    9090; 
     91: reinit 
     92   h# 20 h# 1a rtc! 
     93   h# 13 h#  9 rtc! 
     94   h#  1 h#  8 rtc! 
     95   h#  1 h#  7 rtc! 
     96   ." RTC cleared" cr 
     97; 
    9198true value first-open? 
    9299headers 
     
    97104      regb-mode d# 11 rtc! 
    98105      \ If the battery is bad, display a message, but go open the device anyway 
    99       check-battery battery-message drop 
     106      check-battery battery-message  if  reinit  then 
    100107      false to first-open? 
    101108   then 
Note: See TracChangeset for help on using the changeset viewer.