|
@@ -1230,6 +1230,45 @@ static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
+/*
|
|
|
+ * 'PCIE PHY' class
|
|
|
+ *
|
|
|
+ */
|
|
|
+
|
|
|
+static struct omap_hwmod_class dra7xx_pcie_phy_hwmod_class = {
|
|
|
+ .name = "pcie-phy",
|
|
|
+};
|
|
|
+
|
|
|
+/* pcie1 phy */
|
|
|
+static struct omap_hwmod dra7xx_pcie1_phy_hwmod = {
|
|
|
+ .name = "pcie1-phy",
|
|
|
+ .class = &dra7xx_pcie_phy_hwmod_class,
|
|
|
+ .clkdm_name = "l3init_clkdm",
|
|
|
+ .main_clk = "l4_root_clk_div",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
|
|
|
+ .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* pcie2 phy */
|
|
|
+static struct omap_hwmod dra7xx_pcie2_phy_hwmod = {
|
|
|
+ .name = "pcie2-phy",
|
|
|
+ .class = &dra7xx_pcie_phy_hwmod_class,
|
|
|
+ .clkdm_name = "l3init_clkdm",
|
|
|
+ .main_clk = "l4_root_clk_div",
|
|
|
+ .prcm = {
|
|
|
+ .omap4 = {
|
|
|
+ .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
|
|
|
+ .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
|
|
|
+ .modulemode = MODULEMODE_SWCTRL,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
/*
|
|
|
* 'qspi' class
|
|
|
*
|
|
@@ -2349,6 +2388,22 @@ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
|
|
|
.user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
};
|
|
|
|
|
|
+/* l4_cfg -> pcie1 phy */
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie1_phy = {
|
|
|
+ .master = &dra7xx_l4_cfg_hwmod,
|
|
|
+ .slave = &dra7xx_pcie1_phy_hwmod,
|
|
|
+ .clk = "l4_root_clk_div",
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
+/* l4_cfg -> pcie2 phy */
|
|
|
+static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie2_phy = {
|
|
|
+ .master = &dra7xx_l4_cfg_hwmod,
|
|
|
+ .slave = &dra7xx_pcie2_phy_hwmod,
|
|
|
+ .clk = "l4_root_clk_div",
|
|
|
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
|
|
|
+};
|
|
|
+
|
|
|
static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = {
|
|
|
{
|
|
|
.pa_start = 0x4b300000,
|
|
@@ -2696,6 +2751,8 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
|
|
|
&dra7xx_l4_cfg__mpu,
|
|
|
&dra7xx_l4_cfg__ocp2scp1,
|
|
|
&dra7xx_l4_cfg__ocp2scp3,
|
|
|
+ &dra7xx_l4_cfg__pcie1_phy,
|
|
|
+ &dra7xx_l4_cfg__pcie2_phy,
|
|
|
&dra7xx_l3_main_1__qspi,
|
|
|
&dra7xx_l4_cfg__sata,
|
|
|
&dra7xx_l4_cfg__smartreflex_core,
|