Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96432
b: refs/heads/master
c: b01273f
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Ralf Baechle committed May 12, 2008
1 parent b927c06 commit 62e44fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d303f4a1a09b18e9689aa896bbc23879130b1da8
refs/heads/master: b01273f120a390363ceb27bd0ccc60ddf1fb936d
7 changes: 5 additions & 2 deletions trunk/arch/mips/emma2rh/markeins/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ static void markeins_machine_power_off(void)
while (1) ;
}

static unsigned long clock[4] = { 166500000, 187312500, 199800000, 210600000 };
static unsigned long __initdata emma2rh_clock[4] = {
166500000, 187312500, 199800000, 210600000
};

static unsigned int __init detect_bus_frequency(unsigned long rtc_base)
{
Expand All @@ -85,7 +87,8 @@ static unsigned int __init detect_bus_frequency(unsigned long rtc_base)
/* detect from boot strap */
reg = emma2rh_in32(EMMA2RH_BHIF_STRAP_0);
reg = (reg >> 4) & 0x3;
return clock[reg];

return emma2rh_clock[reg];
}

void __init plat_time_init(void)
Expand Down

0 comments on commit 62e44fc

Please sign in to comment.