Bug 128961 - [patch] Detect main clock frequency of AT91 controller.
Summary: [patch] Detect main clock frequency of AT91 controller.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 1.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stanislav Sedov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-18 12:10 UTC by Björn König
Modified: 2008-11-30 22:33 UTC (History)
0 users

See Also:


Attachments
src-sys-arm-at91.diff (2.00 KB, patch)
2008-11-18 12:10 UTC, Björn König
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Björn König 2008-11-18 12:10:06 UTC
	The PMC of the AT91 controller provides a register
	where you can find an estimation of the main clock
	frequency. The patch below uses this register to
	sense the frequency of the oscillating crystal.

	Alternatively you can set the frequency explicitely
	in the kernel configuration file with

	options AT91C_MAIN_CLOCK=16000000

	for example.
Comment 1 Stanislav Sedov freebsd_committer freebsd_triage 2008-11-18 12:31:17 UTC
Responsible Changed
From-To: freebsd-arm->stas

I'll take it.
Comment 2 Stanislav Sedov freebsd_committer freebsd_triage 2008-11-30 22:33:41 UTC
State Changed
From-To: open->closed

Committed. Thanks!