diff options
author | Denys Dmytriyenko <denys@ti.com> | 2015-08-29 03:25:07 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2015-08-28 20:03:44 -0400 |
commit | 71d8398e9168c6c943c7b914fbd17f38ce50f83c (patch) | |
tree | 648504b7d739bfff67c6448c209d12262a158860 /recipes-kernel | |
parent | 0101a0942c2b1721dd1a56f760e19118e56a0007 (diff) | |
download | meta-ti-71d8398e9168c6c943c7b914fbd17f38ce50f83c.tar.gz |
linux-ti-staging: bump rev, update GFX patches w/ AM3/AM4 support
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel')
9 files changed, 408 insertions, 19 deletions
diff --git a/recipes-kernel/linux/linux-ti-staging-4.1/0001-DT-gpu-add-binding-for-TI-SGX-driver.patch b/recipes-kernel/linux/linux-ti-staging-4.1/0001-DT-gpu-add-binding-for-TI-SGX-driver.patch index e7cf88f6..00628a6c 100644 --- a/recipes-kernel/linux/linux-ti-staging-4.1/0001-DT-gpu-add-binding-for-TI-SGX-driver.patch +++ b/recipes-kernel/linux/linux-ti-staging-4.1/0001-DT-gpu-add-binding-for-TI-SGX-driver.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 4b4e3b2f13798a581171abb09b400c033ece9211 Mon Sep 17 00:00:00 2001 | 1 | From 4b375ae644830ea38d8bfc1c78da6d83628527ea Mon Sep 17 00:00:00 2001 |
2 | From: Anand Balagopalakrishnan <anandb@ti.com> | 2 | From: Anand Balagopalakrishnan <anandb@ti.com> |
3 | Date: Wed, 26 Aug 2015 09:34:49 +0000 | 3 | Date: Wed, 26 Aug 2015 09:34:49 +0000 |
4 | Subject: [PATCH 1/4] DT: gpu: add binding for TI SGX driver | 4 | Subject: [PATCH 1/8] DT: gpu: add binding for TI SGX driver |
5 | 5 | ||
6 | This patch adds the devicetree binding for TI SGX device driver. | 6 | This patch adds the devicetree binding for TI SGX device driver. |
7 | 7 | ||
diff --git a/recipes-kernel/linux/linux-ti-staging-4.1/0002-ARM-dts-DRA7xx-add-device-tree-entry-for-SGX.patch b/recipes-kernel/linux/linux-ti-staging-4.1/0002-ARM-dts-DRA7xx-add-device-tree-entry-for-SGX.patch index ac168c79..ca84e279 100644 --- a/recipes-kernel/linux/linux-ti-staging-4.1/0002-ARM-dts-DRA7xx-add-device-tree-entry-for-SGX.patch +++ b/recipes-kernel/linux/linux-ti-staging-4.1/0002-ARM-dts-DRA7xx-add-device-tree-entry-for-SGX.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 20d10ea071c2b9eebb740f94f1fd0a7e4c9f7c03 Mon Sep 17 00:00:00 2001 | 1 | From f3a4651fef3c51a0ec30f321352dc26273eb56d4 Mon Sep 17 00:00:00 2001 |
2 | From: Anand Balagopalakrishnan <anandb@ti.com> | 2 | From: Anand Balagopalakrishnan <anandb@ti.com> |
3 | Date: Wed, 26 Aug 2015 09:34:50 +0000 | 3 | Date: Wed, 26 Aug 2015 09:34:50 +0000 |
4 | Subject: [PATCH 2/4] ARM: dts: DRA7xx: add device tree entry for SGX | 4 | Subject: [PATCH 2/8] ARM: dts: DRA7xx: add device tree entry for SGX |
5 | 5 | ||
6 | Addition of SGX to DRA7xx DTS to enable graphics support. | 6 | Addition of SGX to DRA7xx DTS to enable graphics support. |
7 | 7 | ||
diff --git a/recipes-kernel/linux/linux-ti-staging-4.1/0003-arm-dra7xx-Add-gpu-hwmod-data.patch b/recipes-kernel/linux/linux-ti-staging-4.1/0003-arm-dra7xx-Add-gpu-hwmod-data.patch index 57ee2689..7c74b243 100644 --- a/recipes-kernel/linux/linux-ti-staging-4.1/0003-arm-dra7xx-Add-gpu-hwmod-data.patch +++ b/recipes-kernel/linux/linux-ti-staging-4.1/0003-arm-dra7xx-Add-gpu-hwmod-data.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From cbfdfed432347a3c52cf1c62cba5141b540d8d09 Mon Sep 17 00:00:00 2001 | 1 | From 7d96508055ba60029f6fc7a3f8603f2f2630a667 Mon Sep 17 00:00:00 2001 |
2 | From: Hemant Hariyani <hemanthariyani@ti.com> | 2 | From: Hemant Hariyani <hemanthariyani@ti.com> |
3 | Date: Wed, 26 Aug 2015 09:34:51 +0000 | 3 | Date: Wed, 26 Aug 2015 09:34:51 +0000 |
4 | Subject: [PATCH 3/4] arm:dra7xx: Add gpu hwmod data | 4 | Subject: [PATCH 3/8] arm:dra7xx: Add gpu hwmod data |
5 | 5 | ||
6 | GPU hwmod data for DRA7xx | 6 | GPU hwmod data for DRA7xx |
7 | 7 | ||
diff --git a/recipes-kernel/linux/linux-ti-staging-4.1/0004-drm-omap-Add-omapdrm-plugin-API.patch b/recipes-kernel/linux/linux-ti-staging-4.1/0004-drm-omap-Add-omapdrm-plugin-API.patch index c89a49dd..e09325ab 100644 --- a/recipes-kernel/linux/linux-ti-staging-4.1/0004-drm-omap-Add-omapdrm-plugin-API.patch +++ b/recipes-kernel/linux/linux-ti-staging-4.1/0004-drm-omap-Add-omapdrm-plugin-API.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From a5ddaecfdf950bd47560ac0a9b1ca9e57afc0c2e Mon Sep 17 00:00:00 2001 | 1 | From 931f19bb07833a342e1d87785e989f4609825927 Mon Sep 17 00:00:00 2001 |
2 | From: Rob Clark <rob@ti.com> | 2 | From: Rob Clark <rob@ti.com> |
3 | Date: Wed, 26 Aug 2015 09:34:52 +0000 | 3 | Date: Wed, 26 Aug 2015 09:34:52 +0000 |
4 | Subject: [PATCH 4/4] drm/omap: Add omapdrm plugin API | 4 | Subject: [PATCH 4/8] drm/omap: Add omapdrm plugin API |
5 | 5 | ||
6 | This patch enables SGX driver to be added as a plugin to omapdrm. | 6 | This patch enables SGX driver to be added as a plugin to omapdrm. |
7 | 7 | ||
diff --git a/recipes-kernel/linux/linux-ti-staging-4.1/0005-arm-Export-cache-flush-management-symbols-when-MULTI.patch b/recipes-kernel/linux/linux-ti-staging-4.1/0005-arm-Export-cache-flush-management-symbols-when-MULTI.patch new file mode 100644 index 00000000..12dd52fd --- /dev/null +++ b/recipes-kernel/linux/linux-ti-staging-4.1/0005-arm-Export-cache-flush-management-symbols-when-MULTI.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From ea8c16f49b043f4f096909e0d7bc0b9d248aafce Mon Sep 17 00:00:00 2001 | ||
2 | From: Pantelis Antoniou <panto@antoniou-consulting.com> | ||
3 | Date: Fri, 28 Aug 2015 06:17:59 +0000 | ||
4 | Subject: [PATCH 5/8] arm: Export cache flush management symbols when | ||
5 | !MULTI_CACHE | ||
6 | |||
7 | When compiling a kernel without CONFIG_MULTI_CACHE enabled the | ||
8 | dma access functions end up not being exported. Fix it. | ||
9 | |||
10 | Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com> | ||
11 | Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> | ||
12 | Signed-off-by: Eric Ruei <e-ruei1@ti.com> | ||
13 | --- | ||
14 | arch/arm/kernel/setup.c | 9 +++++++++ | ||
15 | 1 file changed, 9 insertions(+) | ||
16 | |||
17 | diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c | ||
18 | index 979c1c5..063165d 100644 | ||
19 | --- a/arch/arm/kernel/setup.c | ||
20 | +++ b/arch/arm/kernel/setup.c | ||
21 | @@ -1137,3 +1137,12 @@ const struct seq_operations cpuinfo_op = { | ||
22 | .stop = c_stop, | ||
23 | .show = c_show | ||
24 | }; | ||
25 | + | ||
26 | +/* export the cache management functions */ | ||
27 | +#ifndef MULTI_CACHE | ||
28 | + | ||
29 | +EXPORT_SYMBOL(__glue(_CACHE,_dma_map_area)); | ||
30 | +EXPORT_SYMBOL(__glue(_CACHE,_dma_unmap_area)); | ||
31 | +EXPORT_SYMBOL(__glue(_CACHE,_dma_flush_range)); | ||
32 | + | ||
33 | +#endif | ||
34 | -- | ||
35 | 2.2.0 | ||
36 | |||
diff --git a/recipes-kernel/linux/linux-ti-staging-4.1/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch b/recipes-kernel/linux/linux-ti-staging-4.1/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch new file mode 100644 index 00000000..03dc2878 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-staging-4.1/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch | |||
@@ -0,0 +1,150 @@ | |||
1 | From 29ce4cbb157611004fb1908b949ac54ca396ca5d Mon Sep 17 00:00:00 2001 | ||
2 | From: Darren Etheridge <detheridge@ti.com> | ||
3 | Date: Fri, 28 Aug 2015 06:18:00 +0000 | ||
4 | Subject: [PATCH 6/8] ARM: dts: am33xx: add DT node for gpu | ||
5 | |||
6 | Add the node into the am33xx.dtsi file for the SGX GPU. | ||
7 | |||
8 | Signed-off-by: Darren Etheridge <detheridge@ti.com> | ||
9 | Signed-off-by: Eric Ruei <e-ruei1@ti.com> | ||
10 | --- | ||
11 | arch/arm/boot/dts/am335x-bone.dts | 4 ++++ | ||
12 | arch/arm/boot/dts/am335x-boneblack.dts | 4 ++++ | ||
13 | arch/arm/boot/dts/am335x-evm.dts | 5 +++++ | ||
14 | arch/arm/boot/dts/am335x-evmsk.dts | 4 ++++ | ||
15 | arch/arm/boot/dts/am335x-lxm.dts | 3 +++ | ||
16 | arch/arm/boot/dts/am335x-nano.dts | 4 ++++ | ||
17 | arch/arm/boot/dts/am335x-pepper.dts | 4 ++++ | ||
18 | arch/arm/boot/dts/am33xx.dtsi | 8 ++++++++ | ||
19 | 8 files changed, 36 insertions(+) | ||
20 | mode change 100644 => 100755 arch/arm/boot/dts/am335x-bone.dts | ||
21 | mode change 100644 => 100755 arch/arm/boot/dts/am335x-evm.dts | ||
22 | mode change 100644 => 100755 arch/arm/boot/dts/am335x-evmsk.dts | ||
23 | mode change 100644 => 100755 arch/arm/boot/dts/am335x-lxm.dts | ||
24 | mode change 100644 => 100755 arch/arm/boot/dts/am335x-nano.dts | ||
25 | mode change 100644 => 100755 arch/arm/boot/dts/am335x-pepper.dts | ||
26 | mode change 100644 => 100755 arch/arm/boot/dts/am33xx.dtsi | ||
27 | |||
28 | diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts | ||
29 | old mode 100644 | ||
30 | new mode 100755 | ||
31 | index 6b849372..ce1b68a | ||
32 | --- a/arch/arm/boot/dts/am335x-bone.dts | ||
33 | +++ b/arch/arm/boot/dts/am335x-bone.dts | ||
34 | @@ -24,3 +24,7 @@ | ||
35 | &mmc1 { | ||
36 | vmmc-supply = <&ldo3_reg>; | ||
37 | }; | ||
38 | + | ||
39 | +&sgx { | ||
40 | + status = "okay"; | ||
41 | +}; | ||
42 | diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts | ||
43 | index 34c9928..369f34d 100644 | ||
44 | --- a/arch/arm/boot/dts/am335x-boneblack.dts | ||
45 | +++ b/arch/arm/boot/dts/am335x-boneblack.dts | ||
46 | @@ -33,6 +33,10 @@ | ||
47 | status = "okay"; | ||
48 | }; | ||
49 | |||
50 | +&sgx { | ||
51 | + status = "okay"; | ||
52 | +}; | ||
53 | + | ||
54 | &am33xx_pinmux { | ||
55 | nxp_hdmi_bonelt_pins: nxp_hdmi_bonelt_pins { | ||
56 | pinctrl-single,pins = < | ||
57 | diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts | ||
58 | old mode 100644 | ||
59 | new mode 100755 | ||
60 | index 8704195..2414437 | ||
61 | --- a/arch/arm/boot/dts/am335x-evm.dts | ||
62 | +++ b/arch/arm/boot/dts/am335x-evm.dts | ||
63 | @@ -905,3 +905,8 @@ | ||
64 | &rtc { | ||
65 | system-power-controller; | ||
66 | }; | ||
67 | + | ||
68 | +&sgx { | ||
69 | + status = "okay"; | ||
70 | +}; | ||
71 | + | ||
72 | diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts | ||
73 | old mode 100644 | ||
74 | new mode 100755 | ||
75 | index 3c54b90..74d1943 | ||
76 | --- a/arch/arm/boot/dts/am335x-evmsk.dts | ||
77 | +++ b/arch/arm/boot/dts/am335x-evmsk.dts | ||
78 | @@ -729,3 +729,7 @@ | ||
79 | &lcdc { | ||
80 | status = "okay"; | ||
81 | }; | ||
82 | + | ||
83 | +&sgx { | ||
84 | + status = "okay"; | ||
85 | +}; | ||
86 | diff --git a/arch/arm/boot/dts/am335x-lxm.dts b/arch/arm/boot/dts/am335x-lxm.dts | ||
87 | old mode 100644 | ||
88 | new mode 100755 | ||
89 | index 5c5667a..c7c51b4 | ||
90 | --- a/arch/arm/boot/dts/am335x-lxm.dts | ||
91 | +++ b/arch/arm/boot/dts/am335x-lxm.dts | ||
92 | @@ -364,3 +364,6 @@ | ||
93 | status = "okay"; | ||
94 | }; | ||
95 | |||
96 | +&sgx { | ||
97 | + status = "okay"; | ||
98 | +}; | ||
99 | diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts | ||
100 | old mode 100644 | ||
101 | new mode 100755 | ||
102 | index 5ed4ca6..7dc4b13 | ||
103 | --- a/arch/arm/boot/dts/am335x-nano.dts | ||
104 | +++ b/arch/arm/boot/dts/am335x-nano.dts | ||
105 | @@ -438,3 +438,7 @@ | ||
106 | }; | ||
107 | }; | ||
108 | }; | ||
109 | + | ||
110 | +&sgx { | ||
111 | + status = "okay"; | ||
112 | +}; | ||
113 | diff --git a/arch/arm/boot/dts/am335x-pepper.dts b/arch/arm/boot/dts/am335x-pepper.dts | ||
114 | old mode 100644 | ||
115 | new mode 100755 | ||
116 | index 0d35ab6..67e032d9 | ||
117 | --- a/arch/arm/boot/dts/am335x-pepper.dts | ||
118 | +++ b/arch/arm/boot/dts/am335x-pepper.dts | ||
119 | @@ -651,3 +651,7 @@ | ||
120 | >; | ||
121 | }; | ||
122 | }; | ||
123 | + | ||
124 | +&sgx { | ||
125 | + status = "okay"; | ||
126 | +}; | ||
127 | diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi | ||
128 | old mode 100644 | ||
129 | new mode 100755 | ||
130 | index 308ec9a..86631ba | ||
131 | --- a/arch/arm/boot/dts/am33xx.dtsi | ||
132 | +++ b/arch/arm/boot/dts/am33xx.dtsi | ||
133 | @@ -880,6 +880,14 @@ | ||
134 | reg = <0x48310000 0x2000>; | ||
135 | interrupts = <111>; | ||
136 | }; | ||
137 | + | ||
138 | + sgx: sgx@0x56000000 { | ||
139 | + compatible = "ti,am335x-sgx530", "img,sgx530"; | ||
140 | + ti,hwmods = "gfx"; | ||
141 | + reg = <0x56000000 0x1000000>; | ||
142 | + interrupts = <37>; | ||
143 | + status = "disabled"; | ||
144 | + }; | ||
145 | }; | ||
146 | }; | ||
147 | |||
148 | -- | ||
149 | 2.2.0 | ||
150 | |||
diff --git a/recipes-kernel/linux/linux-ti-staging-4.1/0007-ARM-dts-am437x-add-DT-node-for-gpu.patch b/recipes-kernel/linux/linux-ti-staging-4.1/0007-ARM-dts-am437x-add-DT-node-for-gpu.patch new file mode 100644 index 00000000..540f5ccb --- /dev/null +++ b/recipes-kernel/linux/linux-ti-staging-4.1/0007-ARM-dts-am437x-add-DT-node-for-gpu.patch | |||
@@ -0,0 +1,102 @@ | |||
1 | From 975c3e8be136fc459688c5d5e9daf272e6092af0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Darren Etheridge <detheridge@ti.com> | ||
3 | Date: Fri, 28 Aug 2015 06:18:01 +0000 | ||
4 | Subject: [PATCH 7/8] ARM: dts: am437x: add DT node for gpu | ||
5 | |||
6 | Add dt node to enable SGX PowerVR driver in AM437x base dtsi file. | ||
7 | |||
8 | Signed-off-by: Darren Etheridge <detheridge@ti.com> | ||
9 | Signed-off-by: Eric Ruei <e-ruei1@ti.com> | ||
10 | --- | ||
11 | arch/arm/boot/dts/am4372.dtsi | 8 ++++++++ | ||
12 | arch/arm/boot/dts/am437x-gp-evm.dts | 4 ++++ | ||
13 | arch/arm/boot/dts/am437x-idk-evm.dts | 4 ++++ | ||
14 | arch/arm/boot/dts/am437x-sk-evm.dts | 4 ++++ | ||
15 | arch/arm/boot/dts/am43x-epos-evm.dts | 4 ++++ | ||
16 | 5 files changed, 24 insertions(+) | ||
17 | mode change 100644 => 100755 arch/arm/boot/dts/am4372.dtsi | ||
18 | mode change 100644 => 100755 arch/arm/boot/dts/am437x-gp-evm.dts | ||
19 | mode change 100644 => 100755 arch/arm/boot/dts/am437x-idk-evm.dts | ||
20 | mode change 100644 => 100755 arch/arm/boot/dts/am437x-sk-evm.dts | ||
21 | mode change 100644 => 100755 arch/arm/boot/dts/am43x-epos-evm.dts | ||
22 | |||
23 | diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi | ||
24 | old mode 100644 | ||
25 | new mode 100755 | ||
26 | index 72009c2..4fc40b2 | ||
27 | --- a/arch/arm/boot/dts/am4372.dtsi | ||
28 | +++ b/arch/arm/boot/dts/am4372.dtsi | ||
29 | @@ -789,6 +789,14 @@ | ||
30 | dma-names = "tx", "rx"; | ||
31 | }; | ||
32 | |||
33 | + sgx: sgx@0x56000000 { | ||
34 | + compatible = "ti,am437x-sgx530", "img,sgx530"; | ||
35 | + ti,hwmods = "gfx"; | ||
36 | + reg = <0x56000000 0x1000000>; | ||
37 | + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; | ||
38 | + status = "disabled"; | ||
39 | + }; | ||
40 | + | ||
41 | rng: rng@48310000 { | ||
42 | compatible = "ti,omap4-rng"; | ||
43 | ti,hwmods = "rng"; | ||
44 | diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts | ||
45 | old mode 100644 | ||
46 | new mode 100755 | ||
47 | index 5a26668..bbd3f84 | ||
48 | --- a/arch/arm/boot/dts/am437x-gp-evm.dts | ||
49 | +++ b/arch/arm/boot/dts/am437x-gp-evm.dts | ||
50 | @@ -1241,3 +1241,7 @@ | ||
51 | status = "okay"; | ||
52 | ext-clk-src; | ||
53 | }; | ||
54 | + | ||
55 | +&sgx { | ||
56 | + status = "okay"; | ||
57 | +}; | ||
58 | diff --git a/arch/arm/boot/dts/am437x-idk-evm.dts b/arch/arm/boot/dts/am437x-idk-evm.dts | ||
59 | old mode 100644 | ||
60 | new mode 100755 | ||
61 | index f7d8656..ea017df | ||
62 | --- a/arch/arm/boot/dts/am437x-idk-evm.dts | ||
63 | +++ b/arch/arm/boot/dts/am437x-idk-evm.dts | ||
64 | @@ -405,3 +405,7 @@ | ||
65 | &cpu { | ||
66 | cpu0-supply = <&tps>; | ||
67 | }; | ||
68 | + | ||
69 | +&sgx { | ||
70 | + status = "okay"; | ||
71 | +}; | ||
72 | diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts b/arch/arm/boot/dts/am437x-sk-evm.dts | ||
73 | old mode 100644 | ||
74 | new mode 100755 | ||
75 | index 5506e91..55a1263 | ||
76 | --- a/arch/arm/boot/dts/am437x-sk-evm.dts | ||
77 | +++ b/arch/arm/boot/dts/am437x-sk-evm.dts | ||
78 | @@ -758,3 +758,7 @@ | ||
79 | &wkup_m3_ipc { | ||
80 | ti,scale-data-fw = "am43x-evm-scale-data.bin"; | ||
81 | }; | ||
82 | + | ||
83 | +&sgx { | ||
84 | + status = "okay"; | ||
85 | +}; | ||
86 | diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts | ||
87 | old mode 100644 | ||
88 | new mode 100755 | ||
89 | index 92515b3..c9e3dbb | ||
90 | --- a/arch/arm/boot/dts/am43x-epos-evm.dts | ||
91 | +++ b/arch/arm/boot/dts/am43x-epos-evm.dts | ||
92 | @@ -869,3 +869,7 @@ | ||
93 | &cpu { | ||
94 | cpu0-supply = <&dcdc2>; | ||
95 | }; | ||
96 | + | ||
97 | +&sgx { | ||
98 | + status = "okay"; | ||
99 | +}; | ||
100 | -- | ||
101 | 2.2.0 | ||
102 | |||
diff --git a/recipes-kernel/linux/linux-ti-staging-4.1/0008-ARM-OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch b/recipes-kernel/linux/linux-ti-staging-4.1/0008-ARM-OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch new file mode 100644 index 00000000..a3168497 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-staging-4.1/0008-ARM-OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch | |||
@@ -0,0 +1,96 @@ | |||
1 | From 306abd812cbb86a4bffe3d1aee14eb77cc6b1458 Mon Sep 17 00:00:00 2001 | ||
2 | From: Darren Etheridge <detheridge@ti.com> | ||
3 | Date: Fri, 28 Aug 2015 06:18:02 +0000 | ||
4 | Subject: [PATCH 8/8] ARM: OMAP2+: Use pdata-quirks for sgx deassert_hardreset | ||
5 | |||
6 | Use pdata_quirks to provide platform data to the sgx driver. This is used | ||
7 | to provide a function pointer for the sgx driver to access | ||
8 | omap_device_deassert_hardreset along with the reset name as defined in the | ||
9 | corresponding hwmod entry. | ||
10 | |||
11 | This platform data will not be required when a seperate reset driver is | ||
12 | available allowing decoupling from omap_hwmod and omap_device. | ||
13 | |||
14 | Signed-off-by: Darren Etheridge <detheridge@ti.com> | ||
15 | Signed-off-by: Eric Ruei <e-ruei1@ti.com> | ||
16 | --- | ||
17 | arch/arm/mach-omap2/pdata-quirks.c | 16 +++++++++++++++- | ||
18 | include/linux/platform_data/sgx-omap.h | 22 ++++++++++++++++++++++ | ||
19 | 2 files changed, 37 insertions(+), 1 deletion(-) | ||
20 | mode change 100644 => 100755 arch/arm/mach-omap2/pdata-quirks.c | ||
21 | create mode 100755 include/linux/platform_data/sgx-omap.h | ||
22 | |||
23 | diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c | ||
24 | old mode 100644 | ||
25 | new mode 100755 | ||
26 | index 1377979..f62ad71 | ||
27 | --- a/arch/arm/mach-omap2/pdata-quirks.c | ||
28 | +++ b/arch/arm/mach-omap2/pdata-quirks.c | ||
29 | @@ -19,6 +19,7 @@ | ||
30 | #include <linux/platform_data/iommu-omap.h> | ||
31 | #include <linux/platform_data/remoteproc-omap.h> | ||
32 | #include <linux/platform_data/wkup_m3.h> | ||
33 | +#include <linux/platform_data/sgx-omap.h> | ||
34 | #include <linux/platform_data/pci-dra7xx.h> | ||
35 | |||
36 | #include "common.h" | ||
37 | @@ -37,7 +38,12 @@ struct pdata_init { | ||
38 | |||
39 | struct of_dev_auxdata omap_auxdata_lookup[]; | ||
40 | static struct twl4030_gpio_platform_data twl_gpio_auxdata; | ||
41 | - | ||
42 | +#if defined(CONFIG_SOC_AM33XX) || defined(CONFIG_SOC_AM43XX) | ||
43 | +static struct gfx_sgx_platform_data sgx_pdata = { | ||
44 | + .reset_name = "gfx", | ||
45 | + .deassert_reset = omap_device_deassert_hardreset, | ||
46 | +}; | ||
47 | +#endif | ||
48 | #if IS_ENABLED(CONFIG_OMAP_IOMMU) | ||
49 | int omap_iommu_set_pwrdm_constraint(struct platform_device *pdev, bool request, | ||
50 | u8 *pwrst); | ||
51 | @@ -377,6 +383,14 @@ struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { | ||
52 | OF_DEV_AUXDATA("ti,am3352-wkup-m3", 0x44d00000, "44d00000.wkup_m3", | ||
53 | &wkup_m3_data), | ||
54 | #endif | ||
55 | +#if defined(CONFIG_SOC_AM33XX) | ||
56 | + OF_DEV_AUXDATA("ti,am335x-sgx530", 0x56000000, "56000000.sgx", | ||
57 | + &sgx_pdata), | ||
58 | +#endif | ||
59 | +#if defined(CONFIG_SOC_AM43XX) | ||
60 | + OF_DEV_AUXDATA("ti,am437x-sgx530", 0x56000000, "56000000.sgx", | ||
61 | + &sgx_pdata), | ||
62 | +#endif | ||
63 | #ifdef CONFIG_ARCH_OMAP4 | ||
64 | OF_DEV_AUXDATA("ti,omap4-padconf", 0x4a100040, "4a100040.pinmux", &pcs_pdata), | ||
65 | OF_DEV_AUXDATA("ti,omap4-padconf", 0x4a31e040, "4a31e040.pinmux", &pcs_pdata), | ||
66 | diff --git a/include/linux/platform_data/sgx-omap.h b/include/linux/platform_data/sgx-omap.h | ||
67 | new file mode 100755 | ||
68 | index 0000000..aa59b2c | ||
69 | --- /dev/null | ||
70 | +++ b/include/linux/platform_data/sgx-omap.h | ||
71 | @@ -0,0 +1,22 @@ | ||
72 | +/* | ||
73 | + * SGX Graphics Driver Platform Data | ||
74 | + * | ||
75 | + * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ | ||
76 | + * Darren Etheridge <detheridge@ti.com> | ||
77 | + * | ||
78 | + * This program is free software; you can redistribute it and/or modify | ||
79 | + * it under the terms of the GNU General Public License version 2 as | ||
80 | + * published by the Free Software Foundation. | ||
81 | + * | ||
82 | + * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
83 | + * kind, whether express or implied; without even the implied warranty | ||
84 | + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
85 | + * GNU General Public License for more details. | ||
86 | + */ | ||
87 | +#include <linux/platform_device.h> | ||
88 | + | ||
89 | +struct gfx_sgx_platform_data { | ||
90 | + const char *reset_name; | ||
91 | + | ||
92 | + int (*deassert_reset)(struct platform_device *pdev, const char *name); | ||
93 | +}; | ||
94 | -- | ||
95 | 2.2.0 | ||
96 | |||
diff --git a/recipes-kernel/linux/linux-ti-staging_4.1.bb b/recipes-kernel/linux/linux-ti-staging_4.1.bb index dff9867f..e67cc158 100644 --- a/recipes-kernel/linux/linux-ti-staging_4.1.bb +++ b/recipes-kernel/linux/linux-ti-staging_4.1.bb | |||
@@ -50,11 +50,11 @@ S = "${WORKDIR}/git" | |||
50 | 50 | ||
51 | BRANCH = "ti-lsk-linux-4.1.y" | 51 | BRANCH = "ti-lsk-linux-4.1.y" |
52 | 52 | ||
53 | SRCREV = "4d8b97ba78fe68be2ce19008a6968a2aea0af8bb" | 53 | SRCREV = "20d5e1664b054e8775f4023d65f16b2a1efc8dda" |
54 | PV = "4.1.6+git${SRCPV}" | 54 | PV = "4.1.6+git${SRCPV}" |
55 | 55 | ||
56 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | 56 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild |
57 | MACHINE_KERNEL_PR_append = "d" | 57 | MACHINE_KERNEL_PR_append = "e" |
58 | PR = "${MACHINE_KERNEL_PR}" | 58 | PR = "${MACHINE_KERNEL_PR}" |
59 | 59 | ||
60 | KERNEL_CONFIG_DIR = "${S}/ti_config_fragments" | 60 | KERNEL_CONFIG_DIR = "${S}/ti_config_fragments" |
@@ -68,12 +68,17 @@ MULTI_CONFIG_BASE_SUFFIX = "" | |||
68 | KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git" | 68 | KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git" |
69 | KERNEL_GIT_PROTOCOL = "git" | 69 | KERNEL_GIT_PROTOCOL = "git" |
70 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | 70 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ |
71 | file://defconfig \ | 71 | file://defconfig" |
72 | " | 72 | |
73 | 73 | GFX_PATCHES = "file://0001-DT-gpu-add-binding-for-TI-SGX-driver.patch \ | |
74 | GFX_PATCHES = "file://0001-DT-gpu-add-binding-for-TI-SGX-driver.patch \ | 74 | file://0002-ARM-dts-DRA7xx-add-device-tree-entry-for-SGX.patch \ |
75 | file://0002-ARM-dts-DRA7xx-add-device-tree-entry-for-SGX.patch \ | 75 | file://0003-arm-dra7xx-Add-gpu-hwmod-data.patch \ |
76 | file://0003-arm-dra7xx-Add-gpu-hwmod-data.patch \ | 76 | file://0004-drm-omap-Add-omapdrm-plugin-API.patch \ |
77 | file://0004-drm-omap-Add-omapdrm-plugin-API.patch" | 77 | file://0005-arm-Export-cache-flush-management-symbols-when-MULTI.patch \ |
78 | 78 | file://0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch \ | |
79 | SRC_URI_append_dra7xx = " ${GFX_PATCHES}" | 79 | file://0007-ARM-dts-am437x-add-DT-node-for-gpu.patch \ |
80 | file://0008-ARM-OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch" | ||
81 | |||
82 | SRC_URI_append_omap-a15 = " ${GFX_PATCHES}" | ||
83 | SRC_URI_append_ti33x = " ${GFX_PATCHES}" | ||
84 | SRC_URI_append_ti43x = " ${GFX_PATCHES}" | ||