Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
ae7b6dcc
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ae7b6dcc
编写于
6月 12, 2013
作者:
K
Kukjin Kim
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v3.11-next/driver-cpufreq' into v3.11-next/s3c24xx-driver
上级
0e81a352
f023f8dd
变更
14
显示空白变更内容
内联
并排
Showing
14 changed file
with
100 addition
and
103 deletion
+100
-103
arch/arm/Kconfig
arch/arm/Kconfig
+0
-47
arch/arm/mach-s3c24xx/Kconfig
arch/arm/mach-s3c24xx/Kconfig
+27
-39
arch/arm/mach-s3c24xx/Makefile
arch/arm/mach-s3c24xx/Makefile
+0
-6
arch/arm/mach-s3c24xx/include/mach/s3c2412.h
arch/arm/mach-s3c24xx/include/mach/s3c2412.h
+0
-0
arch/arm/mach-s3c24xx/iotiming-s3c2412.c
arch/arm/mach-s3c24xx/iotiming-s3c2412.c
+1
-1
arch/arm/plat-samsung/include/plat/cpu-freq-core.h
arch/arm/plat-samsung/include/plat/cpu-freq-core.h
+5
-5
arch/arm/plat-samsung/include/plat/cpu-freq.h
arch/arm/plat-samsung/include/plat/cpu-freq.h
+3
-3
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/Kconfig.arm
+58
-0
drivers/cpufreq/Makefile
drivers/cpufreq/Makefile
+5
-0
drivers/cpufreq/s3c2410-cpufreq.c
drivers/cpufreq/s3c2410-cpufreq.c
+0
-0
drivers/cpufreq/s3c2412-cpufreq.c
drivers/cpufreq/s3c2412-cpufreq.c
+1
-2
drivers/cpufreq/s3c2440-cpufreq.c
drivers/cpufreq/s3c2440-cpufreq.c
+0
-0
drivers/cpufreq/s3c24xx-cpufreq-debugfs.c
drivers/cpufreq/s3c24xx-cpufreq-debugfs.c
+0
-0
drivers/cpufreq/s3c24xx-cpufreq.c
drivers/cpufreq/s3c24xx-cpufreq.c
+0
-0
未找到文件。
arch/arm/Kconfig
浏览文件 @
ae7b6dcc
...
@@ -2054,53 +2054,6 @@ menu "CPU Power Management"
...
@@ -2054,53 +2054,6 @@ menu "CPU Power Management"
if ARCH_HAS_CPUFREQ
if ARCH_HAS_CPUFREQ
source "drivers/cpufreq/Kconfig"
source "drivers/cpufreq/Kconfig"
config CPU_FREQ_S3C
bool
help
Internal configuration node for common cpufreq on Samsung SoC
config CPU_FREQ_S3C24XX
bool "CPUfreq driver for Samsung S3C24XX series CPUs (EXPERIMENTAL)"
depends on ARCH_S3C24XX && CPU_FREQ
select CPU_FREQ_S3C
help
This enables the CPUfreq driver for the Samsung S3C24XX family
of CPUs.
For details, take a look at <file:Documentation/cpu-freq>.
If in doubt, say N.
config CPU_FREQ_S3C24XX_PLL
bool "Support CPUfreq changing of PLL frequency (EXPERIMENTAL)"
depends on CPU_FREQ_S3C24XX
help
Compile in support for changing the PLL frequency from the
S3C24XX series CPUfreq driver. The PLL takes time to settle
after a frequency change, so by default it is not enabled.
This also means that the PLL tables for the selected CPU(s) will
be built which may increase the size of the kernel image.
config CPU_FREQ_S3C24XX_DEBUG
bool "Debug CPUfreq Samsung driver core"
depends on CPU_FREQ_S3C24XX
help
Enable s3c_freq_dbg for the Samsung S3C CPUfreq core
config CPU_FREQ_S3C24XX_IODEBUG
bool "Debug CPUfreq Samsung driver IO timing"
depends on CPU_FREQ_S3C24XX
help
Enable s3c_freq_iodbg for the Samsung S3C CPUfreq core
config CPU_FREQ_S3C24XX_DEBUGFS
bool "Export debugfs for CPUFreq"
depends on CPU_FREQ_S3C24XX && DEBUG_FS
help
Export status information via debugfs.
endif
endif
source "drivers/cpuidle/Kconfig"
source "drivers/cpuidle/Kconfig"
...
...
arch/arm/mach-s3c24xx/Kconfig
浏览文件 @
ae7b6dcc
...
@@ -28,7 +28,7 @@ config CPU_S3C2410
...
@@ -28,7 +28,7 @@ config CPU_S3C2410
select CPU_ARM920T
select CPU_ARM920T
select CPU_LLSERIAL_S3C2410
select CPU_LLSERIAL_S3C2410
select S3C2410_CLOCK
select S3C2410_CLOCK
select
S3C2410_CPUFREQ if CPU_FREQ_S3C24XX
select
ARM_S3C2410_CPUFREQ if ARM_S3C24XX_CPUFREQ
select S3C2410_PM if PM
select S3C2410_PM if PM
select SAMSUNG_HRT
select SAMSUNG_HRT
help
help
...
@@ -204,18 +204,29 @@ config S3C24XX_GPIO_EXTRA128
...
@@ -204,18 +204,29 @@ config S3C24XX_GPIO_EXTRA128
Add an extra 128 gpio numbers to the available GPIO pool. This is
Add an extra 128 gpio numbers to the available GPIO pool. This is
available for boards that need extra gpios for external devices.
available for boards that need extra gpios for external devices.
config S3C24XX_PLL
bool "Support CPUfreq changing of PLL frequency (EXPERIMENTAL)"
depends on ARM_S3C24XX
help
Compile in support for changing the PLL frequency from the
S3C24XX series CPUfreq driver. The PLL takes time to settle
after a frequency change, so by default it is not enabled.
This also means that the PLL tables for the selected CPU(s) will
be built which may increase the size of the kernel image.
# cpu frequency items common between s3c2410 and s3c2440/s3c2442
# cpu frequency items common between s3c2410 and s3c2440/s3c2442
config S3C2410_IOTIMING
config S3C2410_IOTIMING
bool
bool
depends on
CPU_FREQ_S3C24XX
depends on
ARM_S3C24XX_CPUFREQ
help
help
Internal node to select io timing code that is common to the s3c2410
Internal node to select io timing code that is common to the s3c2410
and s3c2440/s3c2442 cpu frequency support.
and s3c2440/s3c2442 cpu frequency support.
config S3C2410_CPUFREQ_UTILS
config S3C2410_CPUFREQ_UTILS
bool
bool
depends on CPU_FREQ_S3C24XX
depends on ARM_S3C24XX_CPUFREQ
help
help
Internal node to select timing code that is common to the s3c2410
Internal node to select timing code that is common to the s3c2410
and s3c2440/s3c244 cpu frequency support.
and s3c2440/s3c244 cpu frequency support.
...
@@ -224,7 +235,7 @@ config S3C2410_CPUFREQ_UTILS
...
@@ -224,7 +235,7 @@ config S3C2410_CPUFREQ_UTILS
config S3C2412_IOTIMING
config S3C2412_IOTIMING
bool
bool
depends on
CPU_FREQ_S3C24XX
&& (CPU_S3C2412 || CPU_S3C2443)
depends on
ARM_S3C24XX_CPUFREQ
&& (CPU_S3C2412 || CPU_S3C2443)
help
help
Intel node to select io timing code that is common to the s3c2412
Intel node to select io timing code that is common to the s3c2412
and the s3c2443.
and the s3c2443.
...
@@ -233,16 +244,9 @@ config S3C2412_IOTIMING
...
@@ -233,16 +244,9 @@ config S3C2412_IOTIMING
if CPU_S3C2410
if CPU_S3C2410
config S3C2410_CPUFREQ
bool
depends on CPU_FREQ_S3C24XX
select S3C2410_CPUFREQ_UTILS
help
CPU Frequency scaling support for S3C2410
config S3C2410_PLL
config S3C2410_PLL
bool
bool
depends on
S3C2410_CPUFREQ && CPU_FREQ_
S3C24XX_PLL
depends on
ARM_S3C2410_CPUFREQ &&
S3C24XX_PLL
default y
default y
help
help
Select the PLL table for the S3C2410
Select the PLL table for the S3C2410
...
@@ -278,7 +282,7 @@ config ARCH_BAST
...
@@ -278,7 +282,7 @@ config ARCH_BAST
bool "Simtec Electronics BAST (EB2410ITX)"
bool "Simtec Electronics BAST (EB2410ITX)"
select ISA
select ISA
select MACH_BAST_IDE
select MACH_BAST_IDE
select S3C2410_IOTIMING if S3C2410_CPUFREQ
select S3C2410_IOTIMING if
ARM_
S3C2410_CPUFREQ
select S3C24XX_DCLK
select S3C24XX_DCLK
select S3C24XX_SIMTEC_NOR
select S3C24XX_SIMTEC_NOR
select S3C24XX_SIMTEC_PM if PM
select S3C24XX_SIMTEC_PM if PM
...
@@ -385,14 +389,6 @@ config CPU_S3C2412_ONLY
...
@@ -385,14 +389,6 @@ config CPU_S3C2412_ONLY
!CPU_S3C2442 && !CPU_S3C2443
!CPU_S3C2442 && !CPU_S3C2443
default y
default y
config S3C2412_CPUFREQ
bool
depends on CPU_FREQ_S3C24XX
default y
select S3C2412_IOTIMING
help
CPU Frequency scaling support for S3C2412 and S3C2413 SoC CPUs.
config S3C2412_DMA
config S3C2412_DMA
bool
bool
help
help
...
@@ -494,14 +490,6 @@ endif # CPU_S3C2416
...
@@ -494,14 +490,6 @@ endif # CPU_S3C2416
if CPU_S3C2440
if CPU_S3C2440
config S3C2440_CPUFREQ
bool "S3C2440/S3C2442 CPU Frequency scaling support"
depends on CPU_FREQ_S3C24XX && (CPU_S3C2440 || CPU_S3C2442)
default y
select S3C2410_CPUFREQ_UTILS
help
CPU Frequency scaling support for S3C2440 and S3C2442 SoC CPUs.
config S3C2440_DMA
config S3C2440_DMA
bool
bool
help
help
...
@@ -521,15 +509,15 @@ config S3C2440_XTAL_16934400
...
@@ -521,15 +509,15 @@ config S3C2440_XTAL_16934400
config S3C2440_PLL_12000000
config S3C2440_PLL_12000000
bool
bool
depends on S3C2440_CPUFREQ && S3C2440_XTAL_12000000
depends on
ARM_
S3C2440_CPUFREQ && S3C2440_XTAL_12000000
default y if
CPU_FREQ_
S3C24XX_PLL
default y if S3C24XX_PLL
help
help
PLL tables for S3C2440 or S3C2442 CPUs with 12MHz crystals.
PLL tables for S3C2440 or S3C2442 CPUs with 12MHz crystals.
config S3C2440_PLL_16934400
config S3C2440_PLL_16934400
bool
bool
depends on S3C2440_CPUFREQ && S3C2440_XTAL_16934400
depends on
ARM_
S3C2440_CPUFREQ && S3C2440_XTAL_16934400
default y if
CPU_FREQ_
S3C24XX_PLL
default y if S3C24XX_PLL
help
help
PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals.
PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals.
...
@@ -583,7 +571,7 @@ config MACH_NEXCODER_2440
...
@@ -583,7 +571,7 @@ config MACH_NEXCODER_2440
config MACH_OSIRIS
config MACH_OSIRIS
bool "Simtec IM2440D20 (OSIRIS) module"
bool "Simtec IM2440D20 (OSIRIS) module"
select S3C2410_IOTIMING if S3C2440_CPUFREQ
select S3C2410_IOTIMING if
ARM_
S3C2440_CPUFREQ
select S3C2440_XTAL_12000000
select S3C2440_XTAL_12000000
select S3C24XX_DCLK
select S3C24XX_DCLK
select S3C24XX_GPIO_EXTRA128
select S3C24XX_GPIO_EXTRA128
...
@@ -655,7 +643,7 @@ config MACH_RX1950
...
@@ -655,7 +643,7 @@ config MACH_RX1950
bool "HP iPAQ rx1950"
bool "HP iPAQ rx1950"
select I2C
select I2C
select PM_H1940 if PM
select PM_H1940 if PM
select S3C2410_IOTIMING if S3C2440_CPUFREQ
select S3C2410_IOTIMING if
ARM_
S3C2440_CPUFREQ
select S3C2440_XTAL_16934400
select S3C2440_XTAL_16934400
select S3C24XX_DCLK
select S3C24XX_DCLK
select S3C24XX_PWM
select S3C24XX_PWM
...
...
arch/arm/mach-s3c24xx/Makefile
浏览文件 @
ae7b6dcc
...
@@ -17,13 +17,11 @@ obj- :=
...
@@ -17,13 +17,11 @@ obj- :=
obj-y
+=
common.o
obj-y
+=
common.o
obj-$(CONFIG_CPU_S3C2410)
+=
s3c2410.o
obj-$(CONFIG_CPU_S3C2410)
+=
s3c2410.o
obj-$(CONFIG_S3C2410_CPUFREQ)
+=
cpufreq-s3c2410.o
obj-$(CONFIG_S3C2410_DMA)
+=
dma-s3c2410.o
obj-$(CONFIG_S3C2410_DMA)
+=
dma-s3c2410.o
obj-$(CONFIG_S3C2410_PLL)
+=
pll-s3c2410.o
obj-$(CONFIG_S3C2410_PLL)
+=
pll-s3c2410.o
obj-$(CONFIG_S3C2410_PM)
+=
pm-s3c2410.o sleep-s3c2410.o
obj-$(CONFIG_S3C2410_PM)
+=
pm-s3c2410.o sleep-s3c2410.o
obj-$(CONFIG_CPU_S3C2412)
+=
s3c2412.o clock-s3c2412.o
obj-$(CONFIG_CPU_S3C2412)
+=
s3c2412.o clock-s3c2412.o
obj-$(CONFIG_S3C2412_CPUFREQ)
+=
cpufreq-s3c2412.o
obj-$(CONFIG_S3C2412_DMA)
+=
dma-s3c2412.o
obj-$(CONFIG_S3C2412_DMA)
+=
dma-s3c2412.o
obj-$(CONFIG_S3C2412_PM)
+=
pm-s3c2412.o
obj-$(CONFIG_S3C2412_PM)
+=
pm-s3c2412.o
obj-$(CONFIG_S3C2412_PM_SLEEP)
+=
sleep-s3c2412.o
obj-$(CONFIG_S3C2412_PM_SLEEP)
+=
sleep-s3c2412.o
...
@@ -34,7 +32,6 @@ obj-$(CONFIG_S3C2416_PM) += pm-s3c2416.o
...
@@ -34,7 +32,6 @@ obj-$(CONFIG_S3C2416_PM) += pm-s3c2416.o
obj-$(CONFIG_CPU_S3C2440)
+=
s3c2440.o clock-s3c2440.o
obj-$(CONFIG_CPU_S3C2440)
+=
s3c2440.o clock-s3c2440.o
obj-$(CONFIG_CPU_S3C2442)
+=
s3c2442.o
obj-$(CONFIG_CPU_S3C2442)
+=
s3c2442.o
obj-$(CONFIG_CPU_S3C244X)
+=
s3c244x.o clock-s3c244x.o
obj-$(CONFIG_CPU_S3C244X)
+=
s3c244x.o clock-s3c244x.o
obj-$(CONFIG_S3C2440_CPUFREQ)
+=
cpufreq-s3c2440.o
obj-$(CONFIG_S3C2440_DMA)
+=
dma-s3c2440.o
obj-$(CONFIG_S3C2440_DMA)
+=
dma-s3c2440.o
obj-$(CONFIG_S3C2440_PLL_12000000)
+=
pll-s3c2440-12000000.o
obj-$(CONFIG_S3C2440_PLL_12000000)
+=
pll-s3c2440-12000000.o
obj-$(CONFIG_S3C2440_PLL_16934400)
+=
pll-s3c2440-16934400.o
obj-$(CONFIG_S3C2440_PLL_16934400)
+=
pll-s3c2440-16934400.o
...
@@ -59,9 +56,6 @@ obj-$(CONFIG_S3C2412_IOTIMING) += iotiming-s3c2412.o
...
@@ -59,9 +56,6 @@ obj-$(CONFIG_S3C2412_IOTIMING) += iotiming-s3c2412.o
obj-$(CONFIG_S3C2443_COMMON)
+=
common-s3c2443.o
obj-$(CONFIG_S3C2443_COMMON)
+=
common-s3c2443.o
obj-$(CONFIG_S3C2443_DMA)
+=
dma-s3c2443.o
obj-$(CONFIG_S3C2443_DMA)
+=
dma-s3c2443.o
obj-$(CONFIG_CPU_FREQ_S3C24XX)
+=
cpufreq.o
obj-$(CONFIG_CPU_FREQ_S3C24XX_DEBUGFS)
+=
cpufreq-debugfs.o
#
#
# machine support
# machine support
# following is ordered alphabetically by option text.
# following is ordered alphabetically by option text.
...
...
arch/arm/mach-s3c24xx/s3c2412.h
→
arch/arm/mach-s3c24xx/
include/mach/
s3c2412.h
浏览文件 @
ae7b6dcc
文件已移动
arch/arm/mach-s3c24xx/iotiming-s3c2412.c
浏览文件 @
ae7b6dcc
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include <plat/cpu-freq-core.h>
#include <plat/cpu-freq-core.h>
#include <plat/clock.h>
#include <plat/clock.h>
#include
"s3c2412.h"
#include
<mach/s3c2412.h>
#define print_ns(x) ((x) / 10), ((x) % 10)
#define print_ns(x) ((x) / 10), ((x) % 10)
...
...
arch/arm/plat-samsung/include/plat/cpu-freq-core.h
浏览文件 @
ae7b6dcc
...
@@ -202,7 +202,7 @@ extern int s3c_plltab_register(struct cpufreq_frequency_table *plls,
...
@@ -202,7 +202,7 @@ extern int s3c_plltab_register(struct cpufreq_frequency_table *plls,
extern
struct
s3c_cpufreq_config
*
s3c_cpufreq_getconfig
(
void
);
extern
struct
s3c_cpufreq_config
*
s3c_cpufreq_getconfig
(
void
);
extern
struct
s3c_iotimings
*
s3c_cpufreq_getiotimings
(
void
);
extern
struct
s3c_iotimings
*
s3c_cpufreq_getiotimings
(
void
);
#ifdef CONFIG_
CPU_FREQ_S3C24XX
_DEBUGFS
#ifdef CONFIG_
ARM_S3C24XX_CPUFREQ
_DEBUGFS
#define s3c_cpufreq_debugfs_call(x) x
#define s3c_cpufreq_debugfs_call(x) x
#else
#else
#define s3c_cpufreq_debugfs_call(x) NULL
#define s3c_cpufreq_debugfs_call(x) NULL
...
@@ -259,17 +259,17 @@ extern void s3c2412_iotiming_set(struct s3c_cpufreq_config *cfg,
...
@@ -259,17 +259,17 @@ extern void s3c2412_iotiming_set(struct s3c_cpufreq_config *cfg,
#define s3c2412_iotiming_set NULL
#define s3c2412_iotiming_set NULL
#endif
/* CONFIG_S3C2412_IOTIMING */
#endif
/* CONFIG_S3C2412_IOTIMING */
#ifdef CONFIG_
CPU_FREQ_S3C24XX
_DEBUG
#ifdef CONFIG_
ARM_S3C24XX_CPUFREQ
_DEBUG
#define s3c_freq_dbg(x...) printk(KERN_INFO x)
#define s3c_freq_dbg(x...) printk(KERN_INFO x)
#else
#else
#define s3c_freq_dbg(x...) do { if (0) printk(x); } while (0)
#define s3c_freq_dbg(x...) do { if (0) printk(x); } while (0)
#endif
/* CONFIG_
CPU_FREQ_S3C24XX
_DEBUG */
#endif
/* CONFIG_
ARM_S3C24XX_CPUFREQ
_DEBUG */
#ifdef CONFIG_
CPU_FREQ_S3C24XX
_IODEBUG
#ifdef CONFIG_
ARM_S3C24XX_CPUFREQ
_IODEBUG
#define s3c_freq_iodbg(x...) printk(KERN_INFO x)
#define s3c_freq_iodbg(x...) printk(KERN_INFO x)
#else
#else
#define s3c_freq_iodbg(x...) do { if (0) printk(x); } while (0)
#define s3c_freq_iodbg(x...) do { if (0) printk(x); } while (0)
#endif
/* CONFIG_
CPU_FREQ_S3C24XX
_IODEBUG */
#endif
/* CONFIG_
ARM_S3C24XX_CPUFREQ
_IODEBUG */
static
inline
int
s3c_cpufreq_addfreq
(
struct
cpufreq_frequency_table
*
table
,
static
inline
int
s3c_cpufreq_addfreq
(
struct
cpufreq_frequency_table
*
table
,
int
index
,
size_t
table_size
,
int
index
,
size_t
table_size
,
...
...
arch/arm/plat-samsung/include/plat/cpu-freq.h
浏览文件 @
ae7b6dcc
...
@@ -126,7 +126,7 @@ struct s3c_cpufreq_board {
...
@@ -126,7 +126,7 @@ struct s3c_cpufreq_board {
};
};
/* Things depending on frequency scaling. */
/* Things depending on frequency scaling. */
#ifdef CONFIG_
CPU_FREQ_S3C
#ifdef CONFIG_
ARM_S3C_CPUFREQ
#define __init_or_cpufreq
#define __init_or_cpufreq
#else
#else
#define __init_or_cpufreq __init
#define __init_or_cpufreq __init
...
@@ -134,7 +134,7 @@ struct s3c_cpufreq_board {
...
@@ -134,7 +134,7 @@ struct s3c_cpufreq_board {
/* Board functions */
/* Board functions */
#ifdef CONFIG_
CPU_FREQ_S3C
#ifdef CONFIG_
ARM_S3C_CPUFREQ
extern
int
s3c_cpufreq_setboard
(
struct
s3c_cpufreq_board
*
board
);
extern
int
s3c_cpufreq_setboard
(
struct
s3c_cpufreq_board
*
board
);
#else
#else
...
@@ -142,4 +142,4 @@ static inline int s3c_cpufreq_setboard(struct s3c_cpufreq_board *board)
...
@@ -142,4 +142,4 @@ static inline int s3c_cpufreq_setboard(struct s3c_cpufreq_board *board)
{
{
return
0
;
return
0
;
}
}
#endif
/* CONFIG_
CPU_FREQ_S3C
*/
#endif
/* CONFIG_
ARM_S3C_CPUFREQ
*/
drivers/cpufreq/Kconfig.arm
浏览文件 @
ae7b6dcc
...
@@ -96,6 +96,56 @@ config ARM_OMAP2PLUS_CPUFREQ
...
@@ -96,6 +96,56 @@ config ARM_OMAP2PLUS_CPUFREQ
default ARCH_OMAP2PLUS
default ARCH_OMAP2PLUS
select CPU_FREQ_TABLE
select CPU_FREQ_TABLE
config ARM_S3C_CPUFREQ
bool
help
Internal configuration node for common cpufreq on Samsung SoC
config ARM_S3C24XX_CPUFREQ
bool "CPUfreq driver for Samsung S3C24XX series CPUs (EXPERIMENTAL)"
depends on ARCH_S3C24XX
select ARM_S3C_CPUFREQ
help
This enables the CPUfreq driver for the Samsung S3C24XX family
of CPUs.
For details, take a look at <file:Documentation/cpu-freq>.
If in doubt, say N.
config ARM_S3C24XX_CPUFREQ_DEBUG
bool "Debug CPUfreq Samsung driver core"
depends on ARM_S3C24XX_CPUFREQ
help
Enable s3c_freq_dbg for the Samsung S3C CPUfreq core
config ARM_S3C24XX_CPUFREQ_IODEBUG
bool "Debug CPUfreq Samsung driver IO timing"
depends on ARM_S3C24XX_CPUFREQ
help
Enable s3c_freq_iodbg for the Samsung S3C CPUfreq core
config ARM_S3C24XX_CPUFREQ_DEBUGFS
bool "Export debugfs for CPUFreq"
depends on ARM_S3C24XX_CPUFREQ && DEBUG_FS
help
Export status information via debugfs.
config ARM_S3C2410_CPUFREQ
bool
depends on ARM_S3C24XX_CPUFREQ && CPU_S3C2410
select S3C2410_CPUFREQ_UTILS
help
CPU Frequency scaling support for S3C2410
config ARM_S3C2412_CPUFREQ
bool
depends on ARM_S3C24XX_CPUFREQ && CPU_S3C2412
default y
select S3C2412_IOTIMING
help
CPU Frequency scaling support for S3C2412 and S3C2413 SoC CPUs.
config ARM_S3C2416_CPUFREQ
config ARM_S3C2416_CPUFREQ
bool "S3C2416 CPU Frequency scaling support"
bool "S3C2416 CPU Frequency scaling support"
depends on CPU_S3C2416
depends on CPU_S3C2416
...
@@ -118,6 +168,14 @@ config ARM_S3C2416_CPUFREQ_VCORESCALE
...
@@ -118,6 +168,14 @@ config ARM_S3C2416_CPUFREQ_VCORESCALE
If in doubt, say N.
If in doubt, say N.
config ARM_S3C2440_CPUFREQ
bool "S3C2440/S3C2442 CPU Frequency scaling support"
depends on ARM_S3C24XX_CPUFREQ && (CPU_S3C2440 || CPU_S3C2442)
select S3C2410_CPUFREQ_UTILS
default y
help
CPU Frequency scaling support for S3C2440 and S3C2442 SoC CPUs.
config ARM_S3C64XX_CPUFREQ
config ARM_S3C64XX_CPUFREQ
bool "Samsung S3C64XX"
bool "Samsung S3C64XX"
depends on CPU_S3C6410
depends on CPU_S3C6410
...
...
drivers/cpufreq/Makefile
浏览文件 @
ae7b6dcc
...
@@ -65,7 +65,12 @@ obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ) += omap-cpufreq.o
...
@@ -65,7 +65,12 @@ obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ) += omap-cpufreq.o
obj-$(CONFIG_PXA25x)
+=
pxa2xx-cpufreq.o
obj-$(CONFIG_PXA25x)
+=
pxa2xx-cpufreq.o
obj-$(CONFIG_PXA27x)
+=
pxa2xx-cpufreq.o
obj-$(CONFIG_PXA27x)
+=
pxa2xx-cpufreq.o
obj-$(CONFIG_PXA3xx)
+=
pxa3xx-cpufreq.o
obj-$(CONFIG_PXA3xx)
+=
pxa3xx-cpufreq.o
obj-$(CONFIG_ARM_S3C24XX_CPUFREQ)
+=
s3c24xx-cpufreq.o
obj-$(CONFIG_ARM_S3C24XX_CPUFREQ_DEBUGFS)
+=
s3c24xx-cpufreq-debugfs.o
obj-$(CONFIG_ARM_S3C2410_CPUFREQ)
+=
s3c2410-cpufreq.o
obj-$(CONFIG_ARM_S3C2412_CPUFREQ)
+=
s3c2412-cpufreq.o
obj-$(CONFIG_ARM_S3C2416_CPUFREQ)
+=
s3c2416-cpufreq.o
obj-$(CONFIG_ARM_S3C2416_CPUFREQ)
+=
s3c2416-cpufreq.o
obj-$(CONFIG_ARM_S3C2440_CPUFREQ)
+=
s3c2440-cpufreq.o
obj-$(CONFIG_ARM_S3C64XX_CPUFREQ)
+=
s3c64xx-cpufreq.o
obj-$(CONFIG_ARM_S3C64XX_CPUFREQ)
+=
s3c64xx-cpufreq.o
obj-$(CONFIG_ARM_S5PV210_CPUFREQ)
+=
s5pv210-cpufreq.o
obj-$(CONFIG_ARM_S5PV210_CPUFREQ)
+=
s5pv210-cpufreq.o
obj-$(CONFIG_ARM_SA1100_CPUFREQ)
+=
sa1100-cpufreq.o
obj-$(CONFIG_ARM_SA1100_CPUFREQ)
+=
sa1100-cpufreq.o
...
...
arch/arm/mach-s3c24xx/cpufreq-s3c2410
.c
→
drivers/cpufreq/s3c2410-cpufreq
.c
浏览文件 @
ae7b6dcc
文件已移动
arch/arm/mach-s3c24xx/cpufreq-s3c2412
.c
→
drivers/cpufreq/s3c2412-cpufreq
.c
浏览文件 @
ae7b6dcc
...
@@ -25,13 +25,12 @@
...
@@ -25,13 +25,12 @@
#include <asm/mach/map.h>
#include <asm/mach/map.h>
#include <mach/regs-clock.h>
#include <mach/regs-clock.h>
#include <mach/s3c2412.h>
#include <plat/cpu.h>
#include <plat/cpu.h>
#include <plat/clock.h>
#include <plat/clock.h>
#include <plat/cpu-freq-core.h>
#include <plat/cpu-freq-core.h>
#include "s3c2412.h"
/* our clock resources. */
/* our clock resources. */
static
struct
clk
*
xtal
;
static
struct
clk
*
xtal
;
static
struct
clk
*
fclk
;
static
struct
clk
*
fclk
;
...
...
arch/arm/mach-s3c24xx/cpufreq-s3c2440
.c
→
drivers/cpufreq/s3c2440-cpufreq
.c
浏览文件 @
ae7b6dcc
文件已移动
arch/arm/mach-s3c24xx/
cpufreq-debugfs.c
→
drivers/cpufreq/s3c24xx-
cpufreq-debugfs.c
浏览文件 @
ae7b6dcc
文件已移动
arch/arm/mach-s3c24xx/
cpufreq.c
→
drivers/cpufreq/s3c24xx-
cpufreq.c
浏览文件 @
ae7b6dcc
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录