diff options
author | Stephen Warren <swarren@nvidia.com> | 2015-08-20 00:15:41 +0300 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2015-09-17 02:10:22 +0300 |
commit | bfac08472371d4d6d4fa56972b0e1166f780633a (patch) | |
tree | 7ca7ad2530ef0ab2e51164021d00c25f050618a0 /include/configs/p2371-2180.h | |
parent | a6b2daffdedf0664f7b49eb20c81f1adada6bd51 (diff) | |
download | u-boot-bfac08472371d4d6d4fa56972b0e1166f780633a.tar.xz |
ARM: tegra: fix COUNTER_FREQUENCY for T210
While T210 boards all have 38.4MHz crystals, per the TRM, the only
supported configuration is to divide the crystal frequency by 2 to
generate clk_m, which is what feeds the ARM generic timers amongst other
things. Fix the value of COUNTER_FREQUENCY to reflect this divide-by-2.
When I queried the 19.2 value in Tom's original T210 patches, I wasn't
aware of this extra divide-by-2, and didn't notice any effect from the
incorrect value, since its only used if U-Boot is booted in EL3, whereas
I'm booting it in EL2.
Reported-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/configs/p2371-2180.h')
-rw-r--r-- | include/configs/p2371-2180.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/p2371-2180.h b/include/configs/p2371-2180.h index 378d5a905e..f311ae9e7d 100644 --- a/include/configs/p2371-2180.h +++ b/include/configs/p2371-2180.h @@ -60,6 +60,7 @@ #include "tegra-common-usb-gadget.h" #include "tegra-common-post.h" -#define COUNTER_FREQUENCY 38400000 +/* Crystal is 38.4MHz. clk_m runs at half that rate */ +#define COUNTER_FREQUENCY 19200000 #endif /* _P2371_2180_H */ |