]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tegra2: trivially enable 13 mhz crystal frequency
authorLucas Stach <dev@lynxeye.de>
Tue, 1 May 2012 12:50:05 +0000 (12:50 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:40 +0000 (08:31 +0200)
This is needed for upcoming Toradex Colibri T20 upstream support.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/armv7/tegra2/clock.c

index b6b32107fe4057e5972815f6c30de2ce988ad40d..ccad3516398cd9d781902d3c5c070c8c0490a66d 100644 (file)
@@ -1059,7 +1059,10 @@ void clock_early_init(void)
                clock_set_rate(CLOCK_ID_CGENERAL, 600, 26, 0, 8);
                break;
 
-       case CLOCK_OSC_FREQ_13_0:
+       case CLOCK_OSC_FREQ_13_0: /* OSC is 13Mhz */
+               clock_set_rate(CLOCK_ID_PERIPH, 432, 13, 1, 8);
+               clock_set_rate(CLOCK_ID_CGENERAL, 600, 13, 0, 8);
+               break;
        case CLOCK_OSC_FREQ_19_2:
        default:
                /*