Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156500
b: refs/heads/master
c: 0a51810
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Victor authored and Russell King committed Aug 5, 2009
1 parent da180c3 commit d780be2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 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: 38a6fe8c013e72c402b37a7ea400387120f460d8
refs/heads/master: 0a51810aa058a0a4ac76dd6f87f4d10bee774e2e
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-ks8695/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

#include <asm/sizes.h>

/*
* Clocks are derived from MCLK, which is 25Mhz
*/
#define KS8695_CLOCK_RATE 25000000

/*
* Physical RAM address.
*/
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/arm/mach-ks8695/include/mach/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#ifndef __ASM_ARCH_TIMEX_H
#define __ASM_ARCH_TIMEX_H

/* timers are derived from MCLK, which is 25MHz */
#define CLOCK_TICK_RATE 25000000
#include <mach/hardware.h>

#define CLOCK_TICK_RATE KS8695_CLOCK_RATE

#endif
2 changes: 1 addition & 1 deletion trunk/drivers/serial/serial_ks8695.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static struct uart_port ks8695uart_ports[SERIAL_KS8695_NR] = {
.mapbase = KS8695_UART_VA,
.iotype = SERIAL_IO_MEM,
.irq = KS8695_IRQ_UART_TX,
.uartclk = CLOCK_TICK_RATE * 16,
.uartclk = KS8695_CLOCK_RATE * 16,
.fifosize = 16,
.ops = &ks8695uart_pops,
.flags = ASYNC_BOOT_AUTOCONF,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/watchdog/ks8695_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static inline void ks8695_wdt_stop(void)
static inline void ks8695_wdt_start(void)
{
unsigned long tmcon;
unsigned long tval = wdt_time * CLOCK_TICK_RATE;
unsigned long tval = wdt_time * KS8695_CLOCK_RATE;

spin_lock(&ks8695_lock);
/* disable timer0 */
Expand Down Expand Up @@ -103,7 +103,7 @@ static inline void ks8695_wdt_reload(void)
static int ks8695_wdt_settimeout(int new_time)
{
/*
* All counting occurs at SLOW_CLOCK / 128 = 0.256 Hz
* All counting occurs at KS8695_CLOCK_RATE / 128 = 0.256 Hz
*
* Since WDV is a 16-bit counter, the maximum period is
* 65536 / 0.256 = 256 seconds.
Expand Down

0 comments on commit d780be2

Please sign in to comment.