Permalink
Browse files

[drivers] experimental mod to run using PLL

Run CPU at 60 MHz using PLL rather than 48 MHz from
crystal.

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
1 parent 81f8f51 commit 98bb5c18b18a5da40009ccc746413b3c2458f1f3 @hxw hxw committed Mar 29, 2010
@@ -23,6 +23,7 @@
#if !defined(_SUSPEND_H_)
#define _SUSPEND_H_ 1
+void Suspend_initialise(void);
void suspend(int WatchdogTimeout);
#endif
@@ -25,7 +25,8 @@
void Tick_initialise();
enum {
- Tick_TicksPerMicroSecond = 24,
+ //Tick_TicksPerMicroSecond = 24,
+ Tick_TicksPerMicroSecond = 30,
};
unsigned long Tick_get(void);
@@ -76,6 +76,7 @@ void CTP_initialise(void)
CTPread = 0;
init_rs232_ch1();
+ SET_BRTRD(1, CALC_BAUD(PLL_CLK, 1, SERIAL_DIVMD, CTP_BPS));
InterruptType s = Interrupt_disable();
@@ -24,9 +24,9 @@
void delay_us(unsigned int microsec)
{
while (microsec--) {
- // at 48 MHz this should take 1 micro second
+ // at 60 MHz this should take 1 micro second
asm volatile (
- "\tld.w\t%r4, 6\n"
+ "\tld.w\t%r4, 7\n"
"delay_loop:\n"
"\tnop\n"
"\tnop\n"
Oops, something went wrong.

0 comments on commit 98bb5c1

Please sign in to comment.