]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
e2220-1170: Remove hard-coded counter frequency
authorThierry Reding <treding@nvidia.com>
Thu, 20 Aug 2015 09:42:21 +0000 (11:42 +0200)
committerTom Warren <twarren@nvidia.com>
Wed, 16 Sep 2015 23:10:23 +0000 (16:10 -0700)
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>
Signed-off-by: Tom Warren <twarren@nvidia.com>
include/configs/e2220-1170.h

index 32ebb82f48df5521375aa2866d035fcdaa2dd2d8..998a69aba1060a799ee5151035805f8133fe8770 100644 (file)
@@ -59,7 +59,4 @@
 #include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
-/* Crystal is 38.4MHz. clk_m runs at half that rate */
-#define COUNTER_FREQUENCY      19200000
-
 #endif /* _E2220_1170_H */