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
Jack Humbert
reform-boundary-uboot
Commits
21831001
Commit
21831001
authored
14 years ago
by
Graeme Russ
Browse files
Options
Downloads
Patches
Plain Diff
eNET: Add RTC support to eNET
The SC520 has an inbuilt MC146818 - Enable it for the eNET board
parent
d881ea53
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/rtc/mc146818.c
+6
-0
6 additions, 0 deletions
drivers/rtc/mc146818.c
include/configs/eNET.h
+2
-0
2 additions, 0 deletions
include/configs/eNET.h
with
8 additions
and
0 deletions
drivers/rtc/mc146818.c
+
6
−
0
View file @
21831001
...
@@ -31,6 +31,12 @@
...
@@ -31,6 +31,12 @@
#include
<command.h>
#include
<command.h>
#include
<rtc.h>
#include
<rtc.h>
#ifdef __I386__
#include
<asm/io.h>
#define in8(p) inb(p)
#define out8(p, v) outb(v, p)
#endif
#if defined(CONFIG_CMD_DATE)
#if defined(CONFIG_CMD_DATE)
static
uchar
rtc_read
(
uchar
reg
);
static
uchar
rtc_read
(
uchar
reg
);
...
...
This diff is collapsed.
Click to expand it.
include/configs/eNET.h
+
2
−
0
View file @
21831001
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
* Stuff still to be dealt with -
* Stuff still to be dealt with -
*/
*/
#define CONFIG_RTC_MC146818
#define CONFIG_RTC_MC146818
#define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0
/*
/*
* High Level Configuration Options
* High Level Configuration Options
...
@@ -91,6 +92,7 @@
...
@@ -91,6 +92,7 @@
#define CONFIG_CMD_BDI
/* bdinfo */
#define CONFIG_CMD_BDI
/* bdinfo */
#define CONFIG_CMD_BOOTD
/* bootd */
#define CONFIG_CMD_BOOTD
/* bootd */
#define CONFIG_CMD_CONSOLE
/* coninfo */
#define CONFIG_CMD_CONSOLE
/* coninfo */
#define CONFIG_CMD_DATE
#define CONFIG_CMD_ECHO
/* echo arguments */
#define CONFIG_CMD_ECHO
/* echo arguments */
#define CONFIG_CMD_FLASH
/* flinfo, erase, protect */
#define CONFIG_CMD_FLASH
/* flinfo, erase, protect */
#define CONFIG_CMD_FPGA
/* FPGA configuration Support */
#define CONFIG_CMD_FPGA
/* FPGA configuration Support */
...
...
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