diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_43xx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c index fea01aa3ef42..5c6c8410160e 100644 --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c | |||
@@ -417,6 +417,37 @@ static struct omap_hwmod am43xx_qspi_hwmod = { | |||
417 | }, | 417 | }, |
418 | }; | 418 | }; |
419 | 419 | ||
420 | /* | ||
421 | * 'adc/tsc' class | ||
422 | * TouchScreen Controller (Analog-To-Digital Converter) | ||
423 | */ | ||
424 | static struct omap_hwmod_class_sysconfig am43xx_adc_tsc_sysc = { | ||
425 | .rev_offs = 0x00, | ||
426 | .sysc_offs = 0x10, | ||
427 | .sysc_flags = SYSC_HAS_SIDLEMODE, | ||
428 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | | ||
429 | SIDLE_SMART_WKUP), | ||
430 | .sysc_fields = &omap_hwmod_sysc_type2, | ||
431 | }; | ||
432 | |||
433 | static struct omap_hwmod_class am43xx_adc_tsc_hwmod_class = { | ||
434 | .name = "adc_tsc", | ||
435 | .sysc = &am43xx_adc_tsc_sysc, | ||
436 | }; | ||
437 | |||
438 | static struct omap_hwmod am43xx_adc_tsc_hwmod = { | ||
439 | .name = "adc_tsc", | ||
440 | .class = &am43xx_adc_tsc_hwmod_class, | ||
441 | .clkdm_name = "l3s_tsc_clkdm", | ||
442 | .main_clk = "adc_tsc_fck", | ||
443 | .prcm = { | ||
444 | .omap4 = { | ||
445 | .clkctrl_offs = AM43XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET, | ||
446 | .modulemode = MODULEMODE_SWCTRL, | ||
447 | }, | ||
448 | }, | ||
449 | }; | ||
450 | |||
420 | /* dss */ | 451 | /* dss */ |
421 | 452 | ||
422 | static struct omap_hwmod am43xx_dss_core_hwmod = { | 453 | static struct omap_hwmod am43xx_dss_core_hwmod = { |
@@ -547,6 +578,13 @@ static struct omap_hwmod_ocp_if am43xx_l4_wkup__gpio0 = { | |||
547 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 578 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
548 | }; | 579 | }; |
549 | 580 | ||
581 | static struct omap_hwmod_ocp_if am43xx_l4_wkup__adc_tsc = { | ||
582 | .master = &am33xx_l4_wkup_hwmod, | ||
583 | .slave = &am43xx_adc_tsc_hwmod, | ||
584 | .clk = "dpll_core_m4_div2_ck", | ||
585 | .user = OCP_USER_MPU, | ||
586 | }; | ||
587 | |||
550 | static struct omap_hwmod_ocp_if am43xx_l4_hs__cpgmac0 = { | 588 | static struct omap_hwmod_ocp_if am43xx_l4_hs__cpgmac0 = { |
551 | .master = &am43xx_l4_hs_hwmod, | 589 | .master = &am43xx_l4_hs_hwmod, |
552 | .slave = &am33xx_cpgmac0_hwmod, | 590 | .slave = &am33xx_cpgmac0_hwmod, |
@@ -789,6 +827,7 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = { | |||
789 | &am43xx_l4_wkup__i2c1, | 827 | &am43xx_l4_wkup__i2c1, |
790 | &am43xx_l4_wkup__gpio0, | 828 | &am43xx_l4_wkup__gpio0, |
791 | &am43xx_l4_wkup__wd_timer1, | 829 | &am43xx_l4_wkup__wd_timer1, |
830 | &am43xx_l4_wkup__adc_tsc, | ||
792 | &am43xx_l3_s__qspi, | 831 | &am43xx_l3_s__qspi, |
793 | &am33xx_l4_per__dcan0, | 832 | &am33xx_l4_per__dcan0, |
794 | &am33xx_l4_per__dcan1, | 833 | &am33xx_l4_per__dcan1, |