summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/speed-pxa3xx.c
blob: 6a08ea78f065c2664d39ad685b4e3007701666cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * clock.h - implementation of the PXA clock functions
 *
 * Copyright (C) 2014 by Robert Jarzmik <robert.jarzmik@free.fr>
 *
 * This file is released under the GPLv2
 *
 */

#include <common.h>
#include <mach/clock.h>
#include <mach/pxa-regs.h>

/* Crystal clock: 13MHz */
#define BASE_CLK	13000000

unsigned long pxa_get_uartclk(void)
{
	return 14857000;
}

unsigned long pxa_get_pwmclk(void)
{
	return BASE_CLK;
}

unsigned long pxa_get_nandclk(void)
{
	if (cpu_is_pxa320())
		return 104000000;
	else
		return 156000000;
}