|
20 | 20 | #include "omap_hwmod_33xx_43xx_common_data.h" |
21 | 21 | #include "prcm43xx.h" |
22 | 22 | #include "omap_hwmod_common_data.h" |
| 23 | +#include "hdq1w.h" |
23 | 24 |
|
24 | 25 |
|
25 | 26 | /* IP blocks */ |
@@ -516,6 +517,33 @@ static struct omap_hwmod am43xx_dss_rfbi_hwmod = { |
516 | 517 | .parent_hwmod = &am43xx_dss_core_hwmod, |
517 | 518 | }; |
518 | 519 |
|
| 520 | +/* HDQ1W */ |
| 521 | +static struct omap_hwmod_class_sysconfig am43xx_hdq1w_sysc = { |
| 522 | + .rev_offs = 0x0000, |
| 523 | + .sysc_offs = 0x0014, |
| 524 | + .syss_offs = 0x0018, |
| 525 | + .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), |
| 526 | + .sysc_fields = &omap_hwmod_sysc_type1, |
| 527 | +}; |
| 528 | + |
| 529 | +static struct omap_hwmod_class am43xx_hdq1w_hwmod_class = { |
| 530 | + .name = "hdq1w", |
| 531 | + .sysc = &am43xx_hdq1w_sysc, |
| 532 | + .reset = &omap_hdq1w_reset, |
| 533 | +}; |
| 534 | + |
| 535 | +static struct omap_hwmod am43xx_hdq1w_hwmod = { |
| 536 | + .name = "hdq1w", |
| 537 | + .class = &am43xx_hdq1w_hwmod_class, |
| 538 | + .clkdm_name = "l4ls_clkdm", |
| 539 | + .prcm = { |
| 540 | + .omap4 = { |
| 541 | + .clkctrl_offs = AM43XX_CM_PER_HDQ1W_CLKCTRL_OFFSET, |
| 542 | + .modulemode = MODULEMODE_SWCTRL, |
| 543 | + }, |
| 544 | + }, |
| 545 | +}; |
| 546 | + |
519 | 547 | /* Interfaces */ |
520 | 548 | static struct omap_hwmod_ocp_if am43xx_l3_main__l4_hs = { |
521 | 549 | .master = &am33xx_l3_main_hwmod, |
@@ -790,6 +818,13 @@ static struct omap_hwmod_ocp_if am43xx_l4_ls__dss_rfbi = { |
790 | 818 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
791 | 819 | }; |
792 | 820 |
|
| 821 | +static struct omap_hwmod_ocp_if am43xx_l4_ls__hdq1w = { |
| 822 | + .master = &am33xx_l4_ls_hwmod, |
| 823 | + .slave = &am43xx_hdq1w_hwmod, |
| 824 | + .clk = "l4ls_gclk", |
| 825 | + .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 826 | +}; |
| 827 | + |
793 | 828 | static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = { |
794 | 829 | &am33xx_l4_wkup__synctimer, |
795 | 830 | &am43xx_l4_ls__timer8, |
@@ -889,6 +924,7 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = { |
889 | 924 | &am43xx_l4_ls__dss, |
890 | 925 | &am43xx_l4_ls__dss_dispc, |
891 | 926 | &am43xx_l4_ls__dss_rfbi, |
| 927 | + &am43xx_l4_ls__hdq1w, |
892 | 928 | NULL, |
893 | 929 | }; |
894 | 930 |
|
|
0 commit comments