diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-04-19 15:33:53 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-04-19 15:33:53 -0400 |
commit | 9def390ea3f7a8a61d33c18f3af1783293b5608f (patch) | |
tree | 0015e020420f21718b98032c06217b5a95b63e81 | |
parent | bf30f950ac6b3ba904b90afa0fe12de78f2cf5a1 (diff) |
ARM: OMAP4: hwmod data: add GPU
Add the GPU hwmod and associated interconnect data. The GPU is a
graphics accelerator.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: BenoƮt Cousson <b-cousson@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 70 |
1 files changed, 69 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 476e98ac1706..2f257728a9be 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
@@ -261,7 +261,6 @@ static struct omap_hwmod omap44xx_mpu_private_hwmod = { | |||
261 | * efuse_ctrl_cust | 261 | * efuse_ctrl_cust |
262 | * efuse_ctrl_std | 262 | * efuse_ctrl_std |
263 | * elm | 263 | * elm |
264 | * gpu | ||
265 | * mcasp | 264 | * mcasp |
266 | * mpu_c0 | 265 | * mpu_c0 |
267 | * mpu_c1 | 266 | * mpu_c1 |
@@ -1168,6 +1167,47 @@ static struct omap_hwmod omap44xx_gpmc_hwmod = { | |||
1168 | }; | 1167 | }; |
1169 | 1168 | ||
1170 | /* | 1169 | /* |
1170 | * 'gpu' class | ||
1171 | * 2d/3d graphics accelerator | ||
1172 | */ | ||
1173 | |||
1174 | static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = { | ||
1175 | .rev_offs = 0x1fc00, | ||
1176 | .sysc_offs = 0x1fc10, | ||
1177 | .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE), | ||
1178 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | | ||
1179 | SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | | ||
1180 | MSTANDBY_SMART | MSTANDBY_SMART_WKUP), | ||
1181 | .sysc_fields = &omap_hwmod_sysc_type2, | ||
1182 | }; | ||
1183 | |||
1184 | static struct omap_hwmod_class omap44xx_gpu_hwmod_class = { | ||
1185 | .name = "gpu", | ||
1186 | .sysc = &omap44xx_gpu_sysc, | ||
1187 | }; | ||
1188 | |||
1189 | /* gpu */ | ||
1190 | static struct omap_hwmod_irq_info omap44xx_gpu_irqs[] = { | ||
1191 | { .irq = 21 + OMAP44XX_IRQ_GIC_START }, | ||
1192 | { .irq = -1 } | ||
1193 | }; | ||
1194 | |||
1195 | static struct omap_hwmod omap44xx_gpu_hwmod = { | ||
1196 | .name = "gpu", | ||
1197 | .class = &omap44xx_gpu_hwmod_class, | ||
1198 | .clkdm_name = "l3_gfx_clkdm", | ||
1199 | .mpu_irqs = omap44xx_gpu_irqs, | ||
1200 | .main_clk = "gpu_fck", | ||
1201 | .prcm = { | ||
1202 | .omap4 = { | ||
1203 | .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET, | ||
1204 | .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET, | ||
1205 | .modulemode = MODULEMODE_SWCTRL, | ||
1206 | }, | ||
1207 | }, | ||
1208 | }; | ||
1209 | |||
1210 | /* | ||
1171 | * 'hdq1w' class | 1211 | * 'hdq1w' class |
1172 | * hdq / 1-wire serial interface controller | 1212 | * hdq / 1-wire serial interface controller |
1173 | */ | 1213 | */ |
@@ -3179,6 +3219,14 @@ static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = { | |||
3179 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 3219 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
3180 | }; | 3220 | }; |
3181 | 3221 | ||
3222 | /* gpu -> l3_main_2 */ | ||
3223 | static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = { | ||
3224 | .master = &omap44xx_gpu_hwmod, | ||
3225 | .slave = &omap44xx_l3_main_2_hwmod, | ||
3226 | .clk = "l3_div_ck", | ||
3227 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
3228 | }; | ||
3229 | |||
3182 | /* hsi -> l3_main_2 */ | 3230 | /* hsi -> l3_main_2 */ |
3183 | static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = { | 3231 | static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = { |
3184 | .master = &omap44xx_hsi_hwmod, | 3232 | .master = &omap44xx_hsi_hwmod, |
@@ -3909,6 +3957,24 @@ static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = { | |||
3909 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 3957 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
3910 | }; | 3958 | }; |
3911 | 3959 | ||
3960 | static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = { | ||
3961 | { | ||
3962 | .pa_start = 0x56000000, | ||
3963 | .pa_end = 0x5600ffff, | ||
3964 | .flags = ADDR_TYPE_RT | ||
3965 | }, | ||
3966 | { } | ||
3967 | }; | ||
3968 | |||
3969 | /* l3_main_2 -> gpu */ | ||
3970 | static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = { | ||
3971 | .master = &omap44xx_l3_main_2_hwmod, | ||
3972 | .slave = &omap44xx_gpu_hwmod, | ||
3973 | .clk = "l3_div_ck", | ||
3974 | .addr = omap44xx_gpu_addrs, | ||
3975 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
3976 | }; | ||
3977 | |||
3912 | static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = { | 3978 | static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = { |
3913 | { | 3979 | { |
3914 | .pa_start = 0x480b2000, | 3980 | .pa_start = 0x480b2000, |
@@ -4977,6 +5043,7 @@ static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = { | |||
4977 | &omap44xx_mpu__l3_main_1, | 5043 | &omap44xx_mpu__l3_main_1, |
4978 | &omap44xx_dma_system__l3_main_2, | 5044 | &omap44xx_dma_system__l3_main_2, |
4979 | &omap44xx_fdif__l3_main_2, | 5045 | &omap44xx_fdif__l3_main_2, |
5046 | &omap44xx_gpu__l3_main_2, | ||
4980 | &omap44xx_hsi__l3_main_2, | 5047 | &omap44xx_hsi__l3_main_2, |
4981 | &omap44xx_ipu__l3_main_2, | 5048 | &omap44xx_ipu__l3_main_2, |
4982 | &omap44xx_iss__l3_main_2, | 5049 | &omap44xx_iss__l3_main_2, |
@@ -5028,6 +5095,7 @@ static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = { | |||
5028 | &omap44xx_l4_per__gpio5, | 5095 | &omap44xx_l4_per__gpio5, |
5029 | &omap44xx_l4_per__gpio6, | 5096 | &omap44xx_l4_per__gpio6, |
5030 | &omap44xx_l3_main_2__gpmc, | 5097 | &omap44xx_l3_main_2__gpmc, |
5098 | &omap44xx_l3_main_2__gpu, | ||
5031 | &omap44xx_l4_per__hdq1w, | 5099 | &omap44xx_l4_per__hdq1w, |
5032 | &omap44xx_l4_cfg__hsi, | 5100 | &omap44xx_l4_cfg__hsi, |
5033 | &omap44xx_l4_per__i2c1, | 5101 | &omap44xx_l4_per__i2c1, |