diff options
author | cognet <cognet@FreeBSD.org> | 2007-10-25 23:02:42 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2007-10-25 23:02:42 +0000 |
commit | bf5c2ef02d1494f1190fcdba11368c04b9a89442 (patch) | |
tree | 76b2de4c69b1b52f85008a0ef378c353cd3b92cb | |
parent | 5ddc0ba1346643892db6dec9755b5ef6beeb624a (diff) | |
download | FreeBSD-src-bf5c2ef02d1494f1190fcdba11368c04b9a89442.zip FreeBSD-src-bf5c2ef02d1494f1190fcdba11368c04b9a89442.tar.gz |
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.
-rw-r--r-- | sys/arm/at91/at91rm92reg.h | 2 | ||||
-rw-r--r-- | sys/conf/options.arm | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/arm/at91/at91rm92reg.h b/sys/arm/at91/at91rm92reg.h index 6918149..2e0299a 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 e586ffb..9135efe 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 |