diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2015-01-09 08:36:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-19 09:02:23 +0100 |
commit | e340ce04833ad6063965113e7b2345c45c6bc47a (patch) | |
tree | e4a2790c5e008b96ad7d91f870d34e27cc3b112a /arch/arm/mach-pxa/speed-pxa3xx.c | |
parent | 8e876a81052725f7b069e615698902752dee7791 (diff) | |
download | barebox-e340ce04833ad6063965113e7b2345c45c6bc47a.tar.gz barebox-e340ce04833ad6063965113e7b2345c45c6bc47a.tar.xz |
ARM: pxa: add pxa3xx architecture
Add the pxa3xx architecture, for pxa300, pxa310 and pxa320 SoCs.
This includes :
- the registers
- the cpu type
- the reset source handling
- a minimal set of clocks
- pin control definitions
In this last case, the big mfp-pxaxxx.h files were dropped, forcing
board developers to use MFP_LPM_* macros cunningly.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-pxa/speed-pxa3xx.c')
-rw-r--r-- | arch/arm/mach-pxa/speed-pxa3xx.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/speed-pxa3xx.c b/arch/arm/mach-pxa/speed-pxa3xx.c new file mode 100644 index 0000000000..6a08ea78f0 --- /dev/null +++ b/arch/arm/mach-pxa/speed-pxa3xx.c @@ -0,0 +1,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; +} |