Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/err.h>
#include <linux/regulator/consumer.h>
#include <linux/io.h>
#include <mach/pxa2xx-regs.h>
#include <mach/smemc.h>
Go to the source code of this file.
Data Structures | |
struct | pxa_freqs_t |
Macros | |
#define | freq_debug 0 |
#define | SDRAM_TREF 64 /* standard 64ms SDRAM */ |
#define | CCLKCFG_TURBO 0x1 |
#define | CCLKCFG_FCS 0x2 |
#define | CCLKCFG_HALFTURBO 0x4 |
#define | CCLKCFG_FASTBUS 0x8 |
#define | MDREFR_DB2_MASK (MDREFR_K2DB2 | MDREFR_K1DB2) |
#define | MDREFR_DRI_MASK 0xFFF |
#define | MDCNFG_DRAC2(mdcnfg) (((mdcnfg) >> 21) & 0x3) |
#define | MDCNFG_DRAC0(mdcnfg) (((mdcnfg) >> 5) & 0x3) |
#define | CCLKCFG CCLKCFG_TURBO | CCLKCFG_FCS |
#define | NUM_PXA25x_RUN_FREQS ARRAY_SIZE(pxa255_run_freqs) |
#define | NUM_PXA25x_TURBO_FREQS ARRAY_SIZE(pxa255_turbo_freqs) |
#define | PXA27x_CCCR(A, L, N2) (A << 25 | N2 << 7 | L) |
#define | CCLKCFG2(B, HT, T) |
#define | NUM_PXA27x_FREQS ARRAY_SIZE(pxa27x_freqs) |
Functions | |
module_param (pxa27x_maxfreq, uint, 0) | |
MODULE_PARM_DESC (pxa27x_maxfreq,"Set the pxa27x maxfreq in MHz""(typically 624=>pxa270, 416=>pxa271, 520=>pxa272)") | |
module_param (pxa255_turbo_table, uint, 0) | |
MODULE_PARM_DESC (pxa255_turbo_table,"Selects the frequency table (0 = run table, !0 = turbo table)") | |
unsigned | get_clk_frequency_khz (int info) |
MODULE_AUTHOR ("Intrinsyc Software Inc.") | |
MODULE_DESCRIPTION ("CPU frequency changing driver for the PXA architecture") | |
MODULE_LICENSE ("GPL") | |
module_init (pxa_cpu_init) | |
module_exit (pxa_cpu_exit) | |
#define CCLKCFG CCLKCFG_TURBO | CCLKCFG_FCS |
Definition at line 89 of file cpufreq-pxa2xx.c.
Definition at line 152 of file cpufreq-pxa2xx.c.
#define CCLKCFG_FASTBUS 0x8 |
Definition at line 78 of file cpufreq-pxa2xx.c.
#define CCLKCFG_FCS 0x2 |
Definition at line 76 of file cpufreq-pxa2xx.c.
#define CCLKCFG_HALFTURBO 0x4 |
Definition at line 77 of file cpufreq-pxa2xx.c.
#define CCLKCFG_TURBO 0x1 |
Definition at line 75 of file cpufreq-pxa2xx.c.
#define freq_debug 0 |
Definition at line 51 of file cpufreq-pxa2xx.c.
#define MDCNFG_DRAC0 | ( | mdcnfg | ) | (((mdcnfg) >> 5) & 0x3) |
Definition at line 83 of file cpufreq-pxa2xx.c.
#define MDCNFG_DRAC2 | ( | mdcnfg | ) | (((mdcnfg) >> 21) & 0x3) |
Definition at line 82 of file cpufreq-pxa2xx.c.
#define MDREFR_DB2_MASK (MDREFR_K2DB2 | MDREFR_K1DB2) |
Definition at line 79 of file cpufreq-pxa2xx.c.
#define MDREFR_DRI_MASK 0xFFF |
Definition at line 80 of file cpufreq-pxa2xx.c.
#define NUM_PXA25x_RUN_FREQS ARRAY_SIZE(pxa255_run_freqs) |
Definition at line 113 of file cpufreq-pxa2xx.c.
#define NUM_PXA25x_TURBO_FREQS ARRAY_SIZE(pxa255_turbo_freqs) |
Definition at line 114 of file cpufreq-pxa2xx.c.
#define NUM_PXA27x_FREQS ARRAY_SIZE(pxa27x_freqs) |
Definition at line 168 of file cpufreq-pxa2xx.c.
Definition at line 151 of file cpufreq-pxa2xx.c.
#define SDRAM_TREF 64 /* standard 64ms SDRAM */ |
Definition at line 72 of file cpufreq-pxa2xx.c.
MODULE_AUTHOR | ( | "Intrinsyc Software Inc." | ) |
module_exit | ( | pxa_cpu_exit | ) |
module_init | ( | pxa_cpu_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | pxa27x_maxfreq | , |
uint | , | ||
0 | |||
) |
module_param | ( | pxa255_turbo_table | , |
uint | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | pxa27x_maxfreq | , |
"Set the pxa27x maxfreq in MHz""(typically 624=>pxa270, 416=>pxa271, 520=>pxa272)" | |||
) |