Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-ep93xx/include/mach/hardware.h |
| 3 | */ |
Hubert Feurstein | 43234b1 | 2009-11-17 18:10:48 +0100 | [diff] [blame] | 4 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 5 | #ifndef __ASM_ARCH_HARDWARE_H |
| 6 | #define __ASM_ARCH_HARDWARE_H |
| 7 | |
Hartley Sweeten | 583ddaf | 2009-07-06 17:39:50 +0100 | [diff] [blame] | 8 | #include <mach/ep93xx-regs.h> |
| 9 | #include <mach/platform.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 10 | |
Hartley Sweeten | 701fac8 | 2009-06-30 23:06:43 +0100 | [diff] [blame] | 11 | /* |
| 12 | * The EP93xx has two external crystal oscillators. To generate the |
| 13 | * required high-frequency clocks, the processor uses two phase-locked- |
| 14 | * loops (PLLs) to multiply the incoming external clock signal to much |
| 15 | * higher frequencies that are then divided down by programmable dividers |
| 16 | * to produce the needed clocks. The PLLs operate independently of one |
| 17 | * another. |
| 18 | */ |
| 19 | #define EP93XX_EXT_CLK_RATE 14745600 |
| 20 | #define EP93XX_EXT_RTC_RATE 32768 |
| 21 | |
| 22 | #define EP93XX_KEYTCHCLK_DIV4 (EP93XX_EXT_CLK_RATE / 4) |
| 23 | #define EP93XX_KEYTCHCLK_DIV16 (EP93XX_EXT_CLK_RATE / 16) |
| 24 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 25 | #endif |