diff mbox

[U-Boot,5/6] p2371: Remove hard-coded counter frequency

Message ID 1440063743-22838-5-git-send-email-thierry.reding@gmail.com
State Accepted
Delegated to: Tom Warren
Headers show

Commit Message

Thierry Reding Aug. 20, 2015, 9:42 a.m. UTC
From: Thierry Reding <treding@nvidia.com>

The counter frequency is derived from clk_m on Tegra, but that clock can
be configured by the primary bootloader to run at the same frequency as
the oscillator (38.4 MHz on Tegra210) or a divided down frequency (most
typically 19.2 MHz). Remove the hard-coded frequency and allow the timer
setup code to query the correct value at runtime.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 include/configs/p2371-0000.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Stephen Warren Aug. 20, 2015, 3:33 p.m. UTC | #1
On 08/20/2015 03:42 AM, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> The counter frequency is derived from clk_m on Tegra, but that clock can
> be configured by the primary bootloader to run at the same frequency as
> the oscillator (38.4 MHz on Tegra210) or a divided down frequency (most
> typically 19.2 MHz). Remove the hard-coded frequency and allow the timer
> setup code to query the correct value at runtime.

>   include/configs/p2371-0000.h | 2 --

Oh, there needs to be a patch for p2371-2180.h too. Perhaps just patch 
all 4 boards in one go?
diff mbox

Patch

diff --git a/include/configs/p2371-0000.h b/include/configs/p2371-0000.h
index 9d7b650d98ca..e190733357b5 100644
--- a/include/configs/p2371-0000.h
+++ b/include/configs/p2371-0000.h
@@ -60,6 +60,4 @@ 
 #include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
-#define COUNTER_FREQUENCY	38400000
-
 #endif /* _P2371_0000_H */