summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91sam9260reg.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2012-05-29 03:23:18 +0000
committerimp <imp@FreeBSD.org>2012-05-29 03:23:18 +0000
commit0a32ad9a42bf3a9fb12e434a103a329932670181 (patch)
treef5d0127abe14a408f0d0203046a818dcdc562ddd /sys/arm/at91/at91sam9260reg.h
parent2616fac7a2c890a651e7fd1282689b94bcfc1616 (diff)
downloadFreeBSD-src-0a32ad9a42bf3a9fb12e434a103a329932670181.zip
FreeBSD-src-0a32ad9a42bf3a9fb12e434a103a329932670181.tar.gz
Compute the master clock frequency, so we no longer need to have it
compiled into the kernel. This allows us to boot the same kernel on machines with different master clock frequencies, so long as we can determine the main clock frequency accurately. Cleanup the pmc clock init function so it can be called in early boot so we can use the serial port just after we call cninit. # We have two calls to at91_pmc_clock_init for reasons unknown, that will # be fixed later -- it is harmless for now.
Diffstat (limited to 'sys/arm/at91/at91sam9260reg.h')
-rw-r--r--sys/arm/at91/at91sam9260reg.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/arm/at91/at91sam9260reg.h b/sys/arm/at91/at91sam9260reg.h
index c790c2c..2f347a4 100644
--- a/sys/arm/at91/at91sam9260reg.h
+++ b/sys/arm/at91/at91sam9260reg.h
@@ -28,10 +28,6 @@
#ifndef AT91SAM9260REG_H_
#define AT91SAM9260REG_H_
-#ifndef AT91SAM9260_MASTER_CLOCK
-#define AT91SAM9260_MASTER_CLOCK ((18432000 * 43)/6)
-#endif
-
/* Chip Specific limits */
#define SAM9260_PLL_A_MIN_IN_FREQ 1000000 /* 1 Mhz */
#define SAM9260_PLL_A_MAX_IN_FREQ 32000000 /* 32 Mhz */
OpenPOWER on IntegriCloud