cpufreq: exynos: cleanup exynos-cpufreq header
authorKukjin Kim <kgene.kim@samsung.com>
Sat, 29 Dec 2012 00:29:10 +0000 (16:29 -0800)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 10 Jan 2013 18:45:15 +0000 (10:45 -0800)
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/include/mach/cpufreq.h [deleted file]
drivers/cpufreq/exynos-cpufreq.c
drivers/cpufreq/exynos-cpufreq.h [new file with mode: 0644]
drivers/cpufreq/exynos4210-cpufreq.c
drivers/cpufreq/exynos4x12-cpufreq.c
drivers/cpufreq/exynos5250-cpufreq.c

diff --git a/arch/arm/mach-exynos/include/mach/cpufreq.h b/arch/arm/mach-exynos/include/mach/cpufreq.h
deleted file mode 100644 (file)
index 7517c3f..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/* linux/arch/arm/mach-exynos/include/mach/cpufreq.h
- *
- * Copyright (c) 2010 Samsung Electronics Co., Ltd.
- *             http://www.samsung.com
- *
- * EXYNOS - CPUFreq support
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
-*/
-
-enum cpufreq_level_index {
-       L0, L1, L2, L3, L4,
-       L5, L6, L7, L8, L9,
-       L10, L11, L12, L13, L14,
-       L15, L16, L17, L18, L19,
-       L20,
-};
-
-struct exynos_dvfs_info {
-       unsigned long   mpll_freq_khz;
-       unsigned int    pll_safe_idx;
-       unsigned int    pm_lock_idx;
-       unsigned int    max_support_idx;
-       unsigned int    min_support_idx;
-       struct clk      *cpu_clk;
-       unsigned int    *volt_table;
-       struct cpufreq_frequency_table  *freq_table;
-       void (*set_freq)(unsigned int, unsigned int);
-       bool (*need_apll_change)(unsigned int, unsigned int);
-};
-
-extern int exynos4210_cpufreq_init(struct exynos_dvfs_info *);
-extern int exynos4x12_cpufreq_init(struct exynos_dvfs_info *);
-extern int exynos5250_cpufreq_init(struct exynos_dvfs_info *);
index 7012ea8bf1e736aa82d9cd464429e41e7cfb1e70..caf638b585b58fbe9e352f7b3a18296da695ed35 100644 (file)
 #include <linux/cpufreq.h>
 #include <linux/suspend.h>
 
-#include <mach/cpufreq.h>
-
 #include <plat/cpu.h>
 
+#include "exynos-cpufreq.h"
+
 static struct exynos_dvfs_info *exynos_info;
 
 static struct regulator *arm_regulator;
diff --git a/drivers/cpufreq/exynos-cpufreq.h b/drivers/cpufreq/exynos-cpufreq.h
new file mode 100644 (file)
index 0000000..25c748b
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd.
+ *             http://www.samsung.com
+ *
+ * EXYNOS - CPUFreq support
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+enum cpufreq_level_index {
+       L0, L1, L2, L3, L4,
+       L5, L6, L7, L8, L9,
+       L10, L11, L12, L13, L14,
+       L15, L16, L17, L18, L19,
+       L20,
+};
+
+struct exynos_dvfs_info {
+       unsigned long   mpll_freq_khz;
+       unsigned int    pll_safe_idx;
+       unsigned int    pm_lock_idx;
+       unsigned int    max_support_idx;
+       unsigned int    min_support_idx;
+       struct clk      *cpu_clk;
+       unsigned int    *volt_table;
+       struct cpufreq_frequency_table  *freq_table;
+       void (*set_freq)(unsigned int, unsigned int);
+       bool (*need_apll_change)(unsigned int, unsigned int);
+};
+
+extern int exynos4210_cpufreq_init(struct exynos_dvfs_info *);
+extern int exynos4x12_cpufreq_init(struct exynos_dvfs_info *);
+extern int exynos5250_cpufreq_init(struct exynos_dvfs_info *);
index fb148fa276781ef40d4844c7d4d686b1ee801a8b..a5d0a8184220feac77aa6c38e1362ed6e12e0e24 100644 (file)
@@ -18,7 +18,8 @@
 #include <linux/cpufreq.h>
 
 #include <mach/regs-clock.h>
-#include <mach/cpufreq.h>
+
+#include "exynos-cpufreq.h"
 
 #define CPUFREQ_LEVEL_END      L5
 
index 8c5a7afa5b0b0d818e25f098707c84f377de7532..63ff74eec5213ad01738bd699a25addae7c76cd2 100644 (file)
@@ -18,7 +18,8 @@
 #include <linux/cpufreq.h>
 
 #include <mach/regs-clock.h>
-#include <mach/cpufreq.h>
+
+#include "exynos-cpufreq.h"
 
 #define CPUFREQ_LEVEL_END      (L13 + 1)
 
index e64c253cb1698d456ba853bb8c2ce4f03b2016cd..407126c2d7c6ac4a32b18bf1afb6ad884ce39120 100644 (file)
@@ -19,7 +19,8 @@
 
 #include <mach/map.h>
 #include <mach/regs-clock.h>
-#include <mach/cpufreq.h>
+
+#include "exynos-cpufreq.h"
 
 #define CPUFREQ_LEVEL_END      (L15 + 1)