Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor 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
vesta
u-boot-2015.04
Commits
04531f3c
Commit
04531f3c
authored
16 years ago
by
Ladislav Michl
Committed by
Jean-Christophe PLAGNIOL-VILLARD
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
NetStar: add RTC support
Add RTC support. Signed-off-by:
Ladislav Michl
<
ladis@linux-mips.org
>
parent
71f7bd30
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
board/netstar/netstar.c
+5
-0
5 additions, 0 deletions
board/netstar/netstar.c
include/configs/netstar.h
+9
-0
9 additions, 0 deletions
include/configs/netstar.h
with
14 additions
and
0 deletions
board/netstar/netstar.c
+
5
−
0
View file @
04531f3c
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
*/
*/
#include
<common.h>
#include
<common.h>
#include
<i2c.h>
#include
<flash.h>
#include
<flash.h>
DECLARE_GLOBAL_DATA_PTR
;
DECLARE_GLOBAL_DATA_PTR
;
...
@@ -53,6 +54,10 @@ int dram_init(void)
...
@@ -53,6 +54,10 @@ int dram_init(void)
int
misc_init_r
(
void
)
int
misc_init_r
(
void
)
{
{
#if defined(CONFIG_RTC_DS1307)
/* enable trickle charge */
i2c_reg_write
(
CONFIG_SYS_I2C_RTC_ADDR
,
0x10
,
0xaa
);
#endif
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
include/configs/netstar.h
+
9
−
0
View file @
04531f3c
...
@@ -110,6 +110,14 @@
...
@@ -110,6 +110,14 @@
#define CONFIG_SYS_NAND_BASE 0x04000000 + (2 << 23)
#define CONFIG_SYS_NAND_BASE 0x04000000 + (2 << 23)
#define NAND_ALLOW_ERASE_ALL 1
#define NAND_ALLOW_ERASE_ALL 1
#define CONFIG_HARD_I2C
#define CONFIG_SYS_I2C_SPEED 100000
#define CONFIG_SYS_I2C_SLAVE 1
#define CONFIG_DRIVER_OMAP1510_I2C
#define CONFIG_RTC_DS1307
#define CONFIG_SYS_I2C_RTC_ADDR 0x68
#define CONFIG_CONS_INDEX 1
#define CONFIG_CONS_INDEX 1
#define CONFIG_BAUDRATE 115200
#define CONFIG_BAUDRATE 115200
...
@@ -133,6 +141,7 @@
...
@@ -133,6 +141,7 @@
*/
*/
#define CONFIG_CMD_BDI
#define CONFIG_CMD_BDI
#define CONFIG_CMD_BOOTD
#define CONFIG_CMD_BOOTD
#define CONFIG_CMD_DATE
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_SAVEENV
#define CONFIG_CMD_SAVEENV
#define CONFIG_CMD_FLASH
#define CONFIG_CMD_FLASH
...
...
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