diff options
Diffstat (limited to 'arch/arm/mach-ks8695')
-rw-r--r-- | arch/arm/mach-ks8695/include/mach/hardware.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-ks8695/include/mach/timex.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-ks8695/pci.c | 3 |
3 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-ks8695/include/mach/hardware.h b/arch/arm/mach-ks8695/include/mach/hardware.h index 1d640d075b7e..e0f911d9e021 100644 --- a/arch/arm/mach-ks8695/include/mach/hardware.h +++ b/arch/arm/mach-ks8695/include/mach/hardware.h | |||
@@ -17,6 +17,11 @@ | |||
17 | #include <asm/sizes.h> | 17 | #include <asm/sizes.h> |
18 | 18 | ||
19 | /* | 19 | /* |
20 | * Clocks are derived from MCLK, which is 25Mhz | ||
21 | */ | ||
22 | #define KS8695_CLOCK_RATE 25000000 | ||
23 | |||
24 | /* | ||
20 | * Physical RAM address. | 25 | * Physical RAM address. |
21 | */ | 26 | */ |
22 | #define KS8695_SDRAM_PA 0x00000000 | 27 | #define KS8695_SDRAM_PA 0x00000000 |
diff --git a/arch/arm/mach-ks8695/include/mach/timex.h b/arch/arm/mach-ks8695/include/mach/timex.h index 4682e350369b..10f716371bd3 100644 --- a/arch/arm/mach-ks8695/include/mach/timex.h +++ b/arch/arm/mach-ks8695/include/mach/timex.h | |||
@@ -14,7 +14,8 @@ | |||
14 | #ifndef __ASM_ARCH_TIMEX_H | 14 | #ifndef __ASM_ARCH_TIMEX_H |
15 | #define __ASM_ARCH_TIMEX_H | 15 | #define __ASM_ARCH_TIMEX_H |
16 | 16 | ||
17 | /* timers are derived from MCLK, which is 25MHz */ | 17 | #include <mach/hardware.h> |
18 | #define CLOCK_TICK_RATE 25000000 | 18 | |
19 | #define CLOCK_TICK_RATE KS8695_CLOCK_RATE | ||
19 | 20 | ||
20 | #endif | 21 | #endif |
diff --git a/arch/arm/mach-ks8695/pci.c b/arch/arm/mach-ks8695/pci.c index f5ebcc0fcab9..78499667eb7b 100644 --- a/arch/arm/mach-ks8695/pci.c +++ b/arch/arm/mach-ks8695/pci.c | |||
@@ -245,6 +245,9 @@ static int ks8695_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs | |||
245 | 245 | ||
246 | static void __init ks8695_pci_preinit(void) | 246 | static void __init ks8695_pci_preinit(void) |
247 | { | 247 | { |
248 | /* make software reset to avoid freeze if PCI bus was messed up */ | ||
249 | __raw_writel(0x80000000, KS8695_PCI_VA + KS8695_PBCS); | ||
250 | |||
248 | /* stage 1 initialization, subid, subdevice = 0x0001 */ | 251 | /* stage 1 initialization, subid, subdevice = 0x0001 */ |
249 | __raw_writel(0x00010001, KS8695_PCI_VA + KS8695_CRCSID); | 252 | __raw_writel(0x00010001, KS8695_PCI_VA + KS8695_CRCSID); |
250 | 253 | ||