Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2737
b: refs/heads/master
c: bdca3f0
h: refs/heads/master
i:
  2735: 67cea60
v: v3
  • Loading branch information
Randy Vinson authored and Greg Kroah-Hartman committed Jun 22, 2005
1 parent a0d98de commit 98c3db9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c124a78d8c7475ecc43f385f34112b638c4228d9
refs/heads/master: bdca3f0aedde85552099aa95ab1449bf81e4f6f5
20 changes: 20 additions & 0 deletions trunk/arch/ppc/platforms/83xx/mpc834x_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,26 @@ mpc834x_sys_init_IRQ(void)
ipic_set_default_priority();
}

#if defined(CONFIG_I2C_MPC) && defined(CONFIG_SENSORS_DS1374)
extern ulong ds1374_get_rtc_time(void);
extern int ds1374_set_rtc_time(ulong);

static int __init
mpc834x_rtc_hookup(void)
{
struct timespec tv;

ppc_md.get_rtc_time = ds1374_get_rtc_time;
ppc_md.set_rtc_time = ds1374_set_rtc_time;

tv.tv_nsec = 0;
tv.tv_sec = (ppc_md.get_rtc_time)();
do_settimeofday(&tv);

return 0;
}
late_initcall(mpc834x_rtc_hookup);
#endif
static __inline__ void
mpc834x_sys_set_bat(void)
{
Expand Down

0 comments on commit 98c3db9

Please sign in to comment.