Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-boundary-uboot
Commits
da4849fb
Commit
da4849fb
authored
18 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Write RTC seconds first to maintain settings integrity per
Maxim/Dallas DS1306 data sheet. Patch by Alan J. Luse, 02 May 2006
parent
983bebbe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+6
-2
6 additions, 2 deletions
CHANGELOG
rtc/ds1306.c
+6
-6
6 additions, 6 deletions
rtc/ds1306.c
with
12 additions
and
8 deletions
CHANGELOG
+
6
−
2
View file @
da4849fb
...
...
@@ -2,6 +2,10 @@
Changes since U-Boot 1.1.4:
======================================================================
* Write RTC seconds first to maintain settings integrity per
Maxim/Dallas DS1306 data sheet.
Patch by Alan J. Luse, 02 May 2006
* Scheduled for removal: strnicmp() which is unused
* Update for Intel Monahans boards:
...
...
@@ -9,12 +13,12 @@ Changes since U-Boot 1.1.4:
- NAND support for zylonite board + some minor cleanup
* Declare load_serial_ymodem() when using CFG_CMD_LOADB.
Patch by Jon Loeliger, 01
.
May 2006
Patch by Jon Loeliger, 01 May 2006
* Fixed handling of bad checksums with "mkimage -l"
* Added support for BC3450 board
Patch by Stefan Strobl, 21
.
Oct 2005
Patch by Stefan Strobl, 21 Oct 2005
* Update for NC650 board:
- Support rev1 and rev2 hardware
...
...
This diff is collapsed.
Click to expand it.
rtc/ds1306.c
+
6
−
6
View file @
da4849fb
...
...
@@ -360,13 +360,13 @@ void rtc_set (struct rtc_time *tmp)
tmp
->
tm_year
,
tmp
->
tm_mon
,
tmp
->
tm_mday
,
tmp
->
tm_wday
,
tmp
->
tm_hour
,
tmp
->
tm_min
,
tmp
->
tm_sec
);
rtc_write
(
RTC_YEAR
,
bin2bcd
(
tmp
->
tm_year
-
2000
));
rtc_write
(
RTC_MONTH
,
bin2bcd
(
tmp
->
tm_mon
));
rtc_write
(
RTC_DATE_OF_MONTH
,
bin2bcd
(
tmp
->
tm_mday
));
rtc_write
(
RTC_DAY_OF_WEEK
,
bin2bcd
(
tmp
->
tm_wday
+
1
));
rtc_write
(
RTC_HOURS
,
bin2bcd
(
tmp
->
tm_hour
));
rtc_write
(
RTC_MINUTES
,
bin2bcd
(
tmp
->
tm_min
));
rtc_write
(
RTC_SECONDS
,
bin2bcd
(
tmp
->
tm_sec
));
rtc_write
(
RTC_MINUTES
,
bin2bcd
(
tmp
->
tm_min
));
rtc_write
(
RTC_HOURS
,
bin2bcd
(
tmp
->
tm_hour
));
rtc_write
(
RTC_DAY_OF_WEEK
,
bin2bcd
(
tmp
->
tm_wday
+
1
));
rtc_write
(
RTC_DATE_OF_MONTH
,
bin2bcd
(
tmp
->
tm_mday
));
rtc_write
(
RTC_MONTH
,
bin2bcd
(
tmp
->
tm_mon
));
rtc_write
(
RTC_YEAR
,
bin2bcd
(
tmp
->
tm_year
-
2000
));
}
/* ------------------------------------------------------------------------- */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment