From bf5c2ef02d1494f1190fcdba11368c04b9a89442 Mon Sep 17 00:00:00 2001 From: cognet Date: Thu, 25 Oct 2007 23:02:42 +0000 Subject: [PATCH] Add an option to be able to override the value of the AT91 master clock frequency. It'd be better to be able to calculate it at runtime, but we need the information very early, to setup the uart. --- sys/arm/at91/at91rm92reg.h | 2 ++ sys/conf/options.arm | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/arm/at91/at91rm92reg.h b/sys/arm/at91/at91rm92reg.h index 69181495952d..2e0299ad88fd 100644 --- a/sys/arm/at91/at91rm92reg.h +++ b/sys/arm/at91/at91rm92reg.h @@ -340,7 +340,9 @@ #define AT91RM92_OHCI_PA_BASE 0x00300000 #define AT91RM92_OHCI_SIZE 0x00100000 +#ifndef AT91C_MASTER_CLOCK #define AT91C_MASTER_CLOCK 60000000 +#endif /* SDRAMC */ diff --git a/sys/conf/options.arm b/sys/conf/options.arm index e586ffb07d23..9135efe2ce4d 100644 --- a/sys/conf/options.arm +++ b/sys/conf/options.arm @@ -4,6 +4,7 @@ ARM_CACHE_LOCK_ENABLE opt_global.h ARMFPE opt_global.h ARM_KERN_DIRECTMAP opt_vm.h ARM_USE_SMALL_ALLOC opt_global.h +AT91C_MASTER_CLOCK opt_global.h COUNTS_PER_SEC opt_timer.h CPU_SA1100 opt_global.h CPU_SA1110 opt_global.h