mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-28 09:31:32 +00:00
Enable time handling on 83xx
Patch by Kumar Gala, 11 Jan 2006
This commit is contained in:
parent
9260a56151
commit
ce574ff506
2 changed files with 13 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
||||||
Changes since U-Boot 1.1.4:
|
Changes since U-Boot 1.1.4:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
* Enable time handling on 83xx
|
||||||
|
Patch by Kumar Gala, 11 Jan 2006
|
||||||
|
|
||||||
* Make System IO Config Registers board configurable on MPC83xx
|
* Make System IO Config Registers board configurable on MPC83xx
|
||||||
Patch by Kumar Gala, 11 Jan 2006
|
Patch by Kumar Gala, 11 Jan 2006
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,16 @@ struct irq_action {
|
||||||
|
|
||||||
int interrupt_init_cpu (unsigned *decrementer_count)
|
int interrupt_init_cpu (unsigned *decrementer_count)
|
||||||
{
|
{
|
||||||
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
volatile immap_t *immr = (immap_t *) CFG_IMMRBAR;
|
||||||
|
|
||||||
|
*decrementer_count = (gd->bus_clk / 4) / CFG_HZ;
|
||||||
|
|
||||||
|
/* Enable e300 time base */
|
||||||
|
|
||||||
|
immr->sysconf.spcr |= 0x00400000;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue