• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ti-gfx/ti-gfx-0000-newclkapi.patch
Yann E. MORINYann E. MORIN committed 1a52145ac3a26 Feb 2014
Raw file
Source viewDiff to previous
 
1
This patch adjusts the omap3630 portion of the powervr driver to use the new
2
clk kernel api.
3
​
4
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
5
[yann.morin.1998@free.fr: rebased ontop of 5.01.00.01]
6
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
7
diff -durN ti-gfx-5_01_00_01.orig/GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c ti-gfx-5_01_00_01/GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c
8
--- ti-gfx-5_01_00_01.orig/GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c  2013-12-23 15:44:20.000000000 +0100
9
+++ ti-gfx-5_01_00_01/GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c   2014-02-26 19:17:39.829571846 +0100
10
@@ -182,6 +182,49 @@
11
  @Return   PVRSRV_ERROR
12
 
13
 ******************************************************************************/
14
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)
15
+int clk_disable_unprepare(struct clk *clk)
16
+{
17
+   return clk_disable(clk);
18
+}
19
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
20
+int clk_disable_unprepare(struct clk *clk)
21
+{
22
+   res = clk_disable(clk);
23
+   if (res < 0)
24
+       return res;
25
+
26
+   res = clk_unprepare(clk);
27
+   if (ret < 0)
28
+       return res;
29
+
30
+   return 0;
31
+}
32
+#endif
33
+
34
+
35
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)
36
+int clk_prepare_enable(struct clk *clk)
37
+{
38
+   return clk_enable(clk);
39
+}
40
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
41
+int clk_prepare_enable(struct clk *clk)
42
+{
43
+   res = clk_prepare(clk);
44
+   if (ret < 0)
45
+       return res;
46
+
47
+   res = clk_enable(clk);
48
+   if (res < 0) {
49
+       clk_unprepare(clk);
50
+       return res;
51
+   }
52
+
53
+   return 0;
54
+}
55
+#endif
56
+
57
 PVRSRV_ERROR EnableSGXClocks(SYS_DATA *psSysData)
58
 {
59
 #if !defined(NO_HARDWARE)
60
@@ -198,7 +241,7 @@
61
 
62
 #if !defined(PM_RUNTIME_SUPPORT)
63
         PVR_DPF((PVR_DBG_MESSAGE, "EnableSGXClocks: Enabling SGX Clocks"));
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.