Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72777
b: refs/heads/master
c: e0511f7
h: refs/heads/master
i:
  72775: cf87de5
v: v3
  • Loading branch information
Ralf Baechle committed Oct 29, 2007
1 parent 67b359e commit cf6f41a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 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: ba5eac515f73910744c5d9f8fc1c5d6548cf6ff4
refs/heads/master: e0511f75246df404e72fc1376967253d2f460c34
21 changes: 10 additions & 11 deletions trunk/arch/mips/basler/excite/excite_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,23 @@ DEFINE_SPINLOCK(titan_lock);
int titan_irqflags;


/*
* The eXcite platform uses the alternate timer interrupt
*
* Fixme: At the time of this writing cevt-r4k.c doesn't yet know about how
* to handle the alternate timer interrupt of the RM9000.
*/
void __init plat_time_init(void)
{
const u32 modebit5 = ocd_readl(0x00e4);
unsigned int
mult = ((modebit5 >> 11) & 0x1f) + 2,
div = ((modebit5 >> 16) & 0x1f) + 2;
unsigned int mult = ((modebit5 >> 11) & 0x1f) + 2,
unsigned int div = ((modebit5 >> 16) & 0x1f) + 2;

if (div == 33) div = 1;
if (div == 33)
div = 1;
mips_hpt_frequency = EXCITE_CPU_EXT_CLOCK * mult / div / 2;
}

void __init plat_timer_setup(struct irqaction *irq)
{
/* The eXcite platform uses the alternate timer interrupt */
set_c0_intcontrol(0x80);
setup_irq(TIMER_IRQ, irq);
}

static int __init excite_init_console(void)
{
#if defined(CONFIG_SERIAL_8250)
Expand Down

0 comments on commit cf6f41a

Please sign in to comment.