diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti-staging-4.1/0003-arm-dra7xx-Add-gpu-hwmod-data.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti-staging-4.1/0003-arm-dra7xx-Add-gpu-hwmod-data.patch | 85 |
1 files changed, 0 insertions, 85 deletions
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 deleted file mode 100644 index 7c74b243..00000000 --- a/recipes-kernel/linux/linux-ti-staging-4.1/0003-arm-dra7xx-Add-gpu-hwmod-data.patch +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
1 | From 7d96508055ba60029f6fc7a3f8603f2f2630a667 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hemant Hariyani <hemanthariyani@ti.com> | ||
3 | Date: Wed, 26 Aug 2015 09:34:51 +0000 | ||
4 | Subject: [PATCH 3/8] arm:dra7xx: Add gpu hwmod data | ||
5 | |||
6 | GPU hwmod data for DRA7xx | ||
7 | |||
8 | Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com> | ||
9 | Signed-off-by: Gowtham Tammana <g-tammana@ti.com> | ||
10 | Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com> | ||
11 | --- | ||
12 | arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 43 +++++++++++++++++++++++++++++++ | ||
13 | 1 file changed, 43 insertions(+) | ||
14 | |||
15 | diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | ||
16 | index 0641f03..03982b7 100644 | ||
17 | --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | ||
18 | +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | ||
19 | @@ -1318,6 +1318,40 @@ static struct omap_hwmod dra7xx_gpmc_hwmod = { | ||
20 | }; | ||
21 | |||
22 | /* | ||
23 | + * 'gpu' class | ||
24 | + * 3d graphics accelerator | ||
25 | + */ | ||
26 | + | ||
27 | +static struct omap_hwmod_class_sysconfig dra7xx_gpu_sysc = { | ||
28 | + .rev_offs = 0x0000, | ||
29 | + .sysc_offs = 0x0010, | ||
30 | + .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE), | ||
31 | + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | | ||
32 | + SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | | ||
33 | + MSTANDBY_SMART | MSTANDBY_SMART_WKUP), | ||
34 | + .sysc_fields = &omap_hwmod_sysc_type2, | ||
35 | +}; | ||
36 | + | ||
37 | +static struct omap_hwmod_class dra7xx_gpu_hwmod_class = { | ||
38 | + .name = "gpu", | ||
39 | + .sysc = &dra7xx_gpu_sysc, | ||
40 | +}; | ||
41 | + | ||
42 | +static struct omap_hwmod dra7xx_gpu_hwmod = { | ||
43 | + .name = "gpu", | ||
44 | + .class = &dra7xx_gpu_hwmod_class, | ||
45 | + .clkdm_name = "gpu_clkdm", | ||
46 | + .main_clk = "gpu_core_gclk_mux", | ||
47 | + .prcm = { | ||
48 | + .omap4 = { | ||
49 | + .clkctrl_offs = DRA7XX_CM_GPU_GPU_CLKCTRL_OFFSET, | ||
50 | + .context_offs = DRA7XX_RM_GPU_GPU_CONTEXT_OFFSET, | ||
51 | + .modulemode = MODULEMODE_SWCTRL, | ||
52 | + }, | ||
53 | + }, | ||
54 | +}; | ||
55 | + | ||
56 | +/* | ||
57 | * 'hdq1w' class | ||
58 | * | ||
59 | */ | ||
60 | @@ -3686,6 +3720,14 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = { | ||
61 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
62 | }; | ||
63 | |||
64 | +/* l3_main_1 -> gpu */ | ||
65 | +static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpu = { | ||
66 | + .master = &dra7xx_l3_main_1_hwmod, | ||
67 | + .slave = &dra7xx_gpu_hwmod, | ||
68 | + .clk = "l3_iclk_div", | ||
69 | + .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
70 | +}; | ||
71 | + | ||
72 | static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = { | ||
73 | { | ||
74 | .pa_start = 0x480b2000, | ||
75 | @@ -4461,6 +4503,7 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { | ||
76 | &dra7xx_l4_per1__gpio7, | ||
77 | &dra7xx_l4_per1__gpio8, | ||
78 | &dra7xx_l3_main_1__gpmc, | ||
79 | + &dra7xx_l3_main_1__gpu, | ||
80 | &dra7xx_l4_per1__hdq1w, | ||
81 | &dra7xx_l4_per1__i2c1, | ||
82 | &dra7xx_l4_per1__i2c2, | ||
83 | -- | ||
84 | 2.2.0 | ||
85 | |||