diff options
Diffstat (limited to 'arch/powerpc/platforms/chrp/setup.c')
| -rw-r--r-- | arch/powerpc/platforms/chrp/setup.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c index 4099ddab920..dda5f2c72c2 100644 --- a/arch/powerpc/platforms/chrp/setup.c +++ b/arch/powerpc/platforms/chrp/setup.c | |||
| @@ -257,6 +257,13 @@ void __init chrp_setup_arch(void) | |||
| 257 | if (rtas_token("display-character") >= 0) | 257 | if (rtas_token("display-character") >= 0) |
| 258 | ppc_md.progress = rtas_progress; | 258 | ppc_md.progress = rtas_progress; |
| 259 | 259 | ||
| 260 | /* use RTAS time-of-day routines if available */ | ||
| 261 | if (rtas_token("get-time-of-day") != RTAS_UNKNOWN_SERVICE) { | ||
| 262 | ppc_md.get_boot_time = rtas_get_boot_time; | ||
| 263 | ppc_md.get_rtc_time = rtas_get_rtc_time; | ||
| 264 | ppc_md.set_rtc_time = rtas_set_rtc_time; | ||
| 265 | } | ||
| 266 | |||
| 260 | #ifdef CONFIG_BOOTX_TEXT | 267 | #ifdef CONFIG_BOOTX_TEXT |
| 261 | if (ppc_md.progress == NULL && boot_text_mapped) | 268 | if (ppc_md.progress == NULL && boot_text_mapped) |
| 262 | ppc_md.progress = btext_progress; | 269 | ppc_md.progress = btext_progress; |
| @@ -505,9 +512,11 @@ void __init chrp_init(void) | |||
| 505 | ppc_md.halt = rtas_halt; | 512 | ppc_md.halt = rtas_halt; |
| 506 | 513 | ||
| 507 | ppc_md.time_init = chrp_time_init; | 514 | ppc_md.time_init = chrp_time_init; |
| 515 | ppc_md.calibrate_decr = chrp_calibrate_decr; | ||
| 516 | |||
| 517 | /* this may get overridden with rtas routines later... */ | ||
| 508 | ppc_md.set_rtc_time = chrp_set_rtc_time; | 518 | ppc_md.set_rtc_time = chrp_set_rtc_time; |
| 509 | ppc_md.get_rtc_time = chrp_get_rtc_time; | 519 | ppc_md.get_rtc_time = chrp_get_rtc_time; |
| 510 | ppc_md.calibrate_decr = chrp_calibrate_decr; | ||
| 511 | 520 | ||
| 512 | #ifdef CONFIG_SMP | 521 | #ifdef CONFIG_SMP |
| 513 | smp_ops = &chrp_smp_ops; | 522 | smp_ops = &chrp_smp_ops; |
