summaryrefslogtreecommitdiffstats
path: root/patches/linux-3.6.10/0085-Add-missing-UART0_CLOCK-from-last-commit.patch
blob: 6f824fac4af2b80af383820ad4541dd1fa3326f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: popcornmix <popcornmix@gmail.com>
Date: Wed, 11 Jul 2012 13:55:11 +0100
Subject: [PATCH] Add missing UART0_CLOCK from last commit

---
 arch/arm/mach-bcm2708/bcm2708.c               | 2 +-
 arch/arm/mach-bcm2708/include/mach/platform.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c
index a466f44..bf9f730 100644
--- a/arch/arm/mach-bcm2708/bcm2708.c
+++ b/arch/arm/mach-bcm2708/bcm2708.c
@@ -183,7 +183,7 @@ unsigned long long sched_clock(void)
  * These are fixed clocks.
  */
 static struct clk ref24_clk = {
-	.rate = 3000000,	/* The UART is clocked at 3MHz via APB_CLK */
+	.rate = UART0_CLOCK,	/* The UART is clocked at 3MHz via APB_CLK */
 };
 
 static struct clk osc_clk = {
diff --git a/arch/arm/mach-bcm2708/include/mach/platform.h b/arch/arm/mach-bcm2708/include/mach/platform.h
index 3085af1..5a797ac 100644
--- a/arch/arm/mach-bcm2708/include/mach/platform.h
+++ b/arch/arm/mach-bcm2708/include/mach/platform.h
@@ -216,7 +216,7 @@
 #define PM_RSTS_HADDRF_SET                                 0x00000002
 #define PM_RSTS_HADDRQ_SET                                 0x00000001
 
-
+#define UART0_CLOCK      3000000
 
 #endif