summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorChander Kashyap <chander.kashyap@linaro.org>2011-12-06 23:34:12 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-12-09 17:30:09 +0100
commit393cb36199d337c8554cc8dfc853f5f405f4742b (patch)
tree2f33a5043d10915372d2ce3f0a76c1372d74a966 /arch/arm/cpu
parent7f8c070ff99aadf153cd90cd0ec1987e8c2ebbe1 (diff)
downloadu-boot-imx-393cb36199d337c8554cc8dfc853f5f405f4742b.zip
u-boot-imx-393cb36199d337c8554cc8dfc853f5f405f4742b.tar.gz
u-boot-imx-393cb36199d337c8554cc8dfc853f5f405f4742b.tar.bz2
S5PC2XX: Rename S5pc2XX to exynos
As per new naming convention for Samsung SoC's, all Cortex-A9 and Cortex-A15 based SoC's will be classified under the name Exynos. Cortex-A9 and Cortex-A15 based SoC's will be sub-classified as Exynos4 and Exynos5 respectively. In order to better adapt and reuse code across various upcoming Samsung Exynos based boards, all uses of s5pc210 prefix/suffix/directory-names are renamed in this patch. s5pc210 is renamed as exynos4210 and S5PC210/s5pc210 suffix/prefix are renamed as exynos4/EXYNOS4. Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/exynos/Makefile (renamed from arch/arm/cpu/armv7/s5pc2xx/Makefile)0
-rw-r--r--arch/arm/cpu/armv7/exynos/clock.c (renamed from arch/arm/cpu/armv7/s5pc2xx/clock.c)50
-rw-r--r--arch/arm/cpu/armv7/exynos/soc.c (renamed from arch/arm/cpu/armv7/s5pc2xx/soc.c)0
3 files changed, 25 insertions, 25 deletions
diff --git a/arch/arm/cpu/armv7/s5pc2xx/Makefile b/arch/arm/cpu/armv7/exynos/Makefile
index 124c380..124c380 100644
--- a/arch/arm/cpu/armv7/s5pc2xx/Makefile
+++ b/arch/arm/cpu/armv7/exynos/Makefile
diff --git a/arch/arm/cpu/armv7/s5pc2xx/clock.c b/arch/arm/cpu/armv7/exynos/clock.c
index 5ecd475..64de262 100644
--- a/arch/arm/cpu/armv7/s5pc2xx/clock.c
+++ b/arch/arm/cpu/armv7/exynos/clock.c
@@ -30,11 +30,11 @@
#define CONFIG_SYS_CLK_FREQ_C210 24000000
#endif
-/* s5pc210: return pll clock frequency */
-static unsigned long s5pc210_get_pll_clk(int pllreg)
+/* exynos4: return pll clock frequency */
+static unsigned long exynos4_get_pll_clk(int pllreg)
{
- struct s5pc210_clock *clk =
- (struct s5pc210_clock *)samsung_get_base_clock();
+ struct exynos4_clock *clk =
+ (struct exynos4_clock *)samsung_get_base_clock();
unsigned long r, m, p, s, k = 0, mask, fout;
unsigned int freq;
@@ -96,11 +96,11 @@ static unsigned long s5pc210_get_pll_clk(int pllreg)
return fout;
}
-/* s5pc210: return ARM clock frequency */
-static unsigned long s5pc210_get_arm_clk(void)
+/* exynos4: return ARM clock frequency */
+static unsigned long exynos4_get_arm_clk(void)
{
- struct s5pc210_clock *clk =
- (struct s5pc210_clock *)samsung_get_base_clock();
+ struct exynos4_clock *clk =
+ (struct exynos4_clock *)samsung_get_base_clock();
unsigned long div;
unsigned long dout_apll;
unsigned int apll_ratio;
@@ -115,11 +115,11 @@ static unsigned long s5pc210_get_arm_clk(void)
return dout_apll;
}
-/* s5pc210: return pwm clock frequency */
-static unsigned long s5pc210_get_pwm_clk(void)
+/* exynos4: return pwm clock frequency */
+static unsigned long exynos4_get_pwm_clk(void)
{
- struct s5pc210_clock *clk =
- (struct s5pc210_clock *)samsung_get_base_clock();
+ struct exynos4_clock *clk =
+ (struct exynos4_clock *)samsung_get_base_clock();
unsigned long pclk, sclk;
unsigned int sel;
unsigned int ratio;
@@ -158,11 +158,11 @@ static unsigned long s5pc210_get_pwm_clk(void)
return pclk;
}
-/* s5pc210: return uart clock frequency */
-static unsigned long s5pc210_get_uart_clk(int dev_index)
+/* exynos4: return uart clock frequency */
+static unsigned long exynos4_get_uart_clk(int dev_index)
{
- struct s5pc210_clock *clk =
- (struct s5pc210_clock *)samsung_get_base_clock();
+ struct exynos4_clock *clk =
+ (struct exynos4_clock *)samsung_get_base_clock();
unsigned long uclk, sclk;
unsigned int sel;
unsigned int ratio;
@@ -205,11 +205,11 @@ static unsigned long s5pc210_get_uart_clk(int dev_index)
return uclk;
}
-/* s5pc210: set the mmc clock */
-static void s5pc210_set_mmc_clk(int dev_index, unsigned int div)
+/* exynos4: set the mmc clock */
+static void exynos4_set_mmc_clk(int dev_index, unsigned int div)
{
- struct s5pc210_clock *clk =
- (struct s5pc210_clock *)samsung_get_base_clock();
+ struct exynos4_clock *clk =
+ (struct exynos4_clock *)samsung_get_base_clock();
unsigned int addr;
unsigned int val;
@@ -234,25 +234,25 @@ static void s5pc210_set_mmc_clk(int dev_index, unsigned int div)
unsigned long get_pll_clk(int pllreg)
{
- return s5pc210_get_pll_clk(pllreg);
+ return exynos4_get_pll_clk(pllreg);
}
unsigned long get_arm_clk(void)
{
- return s5pc210_get_arm_clk();
+ return exynos4_get_arm_clk();
}
unsigned long get_pwm_clk(void)
{
- return s5pc210_get_pwm_clk();
+ return exynos4_get_pwm_clk();
}
unsigned long get_uart_clk(int dev_index)
{
- return s5pc210_get_uart_clk(dev_index);
+ return exynos4_get_uart_clk(dev_index);
}
void set_mmc_clk(int dev_index, unsigned int div)
{
- s5pc210_set_mmc_clk(dev_index, div);
+ exynos4_set_mmc_clk(dev_index, div);
}
diff --git a/arch/arm/cpu/armv7/s5pc2xx/soc.c b/arch/arm/cpu/armv7/exynos/soc.c
index dcfcec2..dcfcec2 100644
--- a/arch/arm/cpu/armv7/s5pc2xx/soc.c
+++ b/arch/arm/cpu/armv7/exynos/soc.c