summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0014-DSS2-Add-function-to-get-DSS-logic-clock-rate.patch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0014-DSS2-Add-function-to-get-DSS-logic-clock-rate.patch
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0014-DSS2-Add-function-to-get-DSS-logic-clock-rate.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0014-DSS2-Add-function-to-get-DSS-logic-clock-rate.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0014-DSS2-Add-function-to-get-DSS-logic-clock-rate.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0014-DSS2-Add-function-to-get-DSS-logic-clock-rate.patch
new file mode 100644
index 0000000000..3b3fd77a9a
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/dss2/0014-DSS2-Add-function-to-get-DSS-logic-clock-rate.patch
@@ -0,0 +1,51 @@
1From 832b763db235da8e62f7b6ab02bcb8ad6bcb7a01 Mon Sep 17 00:00:00 2001
2From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
3Date: Thu, 2 Apr 2009 16:48:41 +0300
4Subject: [PATCH] DSS2: Add function to get DSS logic clock rate
5
6---
7 drivers/video/omap2/dss/dispc.c | 15 +++++++++++++++
8 drivers/video/omap2/dss/dss.h | 1 +
9 2 files changed, 16 insertions(+), 0 deletions(-)
10
11diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
12index 2480a03..1bc23f7 100644
13--- a/drivers/video/omap2/dss/dispc.c
14+++ b/drivers/video/omap2/dss/dispc.c
15@@ -1850,6 +1850,21 @@ unsigned long dispc_fclk_rate(void)
16 return r;
17 }
18
19+unsigned long dispc_lclk_rate(void)
20+{
21+ int lcd;
22+ unsigned long r;
23+ u32 l;
24+
25+ l = dispc_read_reg(DISPC_DIVISOR);
26+
27+ lcd = FLD_GET(l, 23, 16);
28+
29+ r = dispc_fclk_rate();
30+
31+ return r / lcd;
32+}
33+
34 unsigned long dispc_pclk_rate(void)
35 {
36 int lcd, pcd;
37diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h
38index bac5ece..0be42b6 100644
39--- a/drivers/video/omap2/dss/dss.h
40+++ b/drivers/video/omap2/dss/dss.h
41@@ -294,6 +294,7 @@ bool dispc_trans_key_enabled(enum omap_channel ch);
42
43 void dispc_set_lcd_timings(struct omap_video_timings *timings);
44 unsigned long dispc_fclk_rate(void);
45+unsigned long dispc_lclk_rate(void);
46 unsigned long dispc_pclk_rate(void);
47 void dispc_set_pol_freq(struct omap_panel *panel);
48 void find_lck_pck_divs(bool is_tft, unsigned long req_pck, unsigned long fck,
49--
501.5.6.5
51