diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2014-07-09 05:02:47 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-07-22 16:35:05 -0400 |
commit | 8dd3eb711ecfe639306ccbe47a12bb2f2f64f4e2 (patch) | |
tree | 9971170fbd832582b138bf94be04a779c24fc6c1 | |
parent | 70c18ef7f1aed9f4eb9013412190081c9836d7ec (diff) |
arm: dra7xx: Add hwmod data for pcie1 and pcie2 subsystems
Added hwmod data for pcie1 and pcie2 subsystem present in DRA7xx SOC.
Cc: Tony Lindgren <tony@atomide.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Tested-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index b21647d7532c..559bbcbe6e06 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | |||
@@ -1231,6 +1231,43 @@ static struct omap_hwmod dra7xx_ocp2scp3_hwmod = { | |||
1231 | }; | 1231 | }; |
1232 | 1232 | ||
1233 | /* | 1233 | /* |
1234 | * 'PCIE' class | ||
1235 | * | ||
1236 | */ | ||
1237 | |||
1238 | static struct omap_hwmod_class dra7xx_pcie_hwmod_class = { | ||
1239 | .name = "pcie", | ||
1240 | }; | ||
1241 | |||
1242 | /* pcie1 */ | ||
1243 | static struct omap_hwmod dra7xx_pcie1_hwmod = { | ||
1244 | .name = "pcie1", | ||
1245 | .class = &dra7xx_pcie_hwmod_class, | ||
1246 | .clkdm_name = "pcie_clkdm", | ||
1247 | .main_clk = "l4_root_clk_div", | ||
1248 | .prcm = { | ||
1249 | .omap4 = { | ||
1250 | .clkctrl_offs = DRA7XX_CM_PCIE_CLKSTCTRL_OFFSET, | ||
1251 | .modulemode = MODULEMODE_SWCTRL, | ||
1252 | }, | ||
1253 | }, | ||
1254 | }; | ||
1255 | |||
1256 | /* pcie2 */ | ||
1257 | static struct omap_hwmod dra7xx_pcie2_hwmod = { | ||
1258 | .name = "pcie2", | ||
1259 | .class = &dra7xx_pcie_hwmod_class, | ||
1260 | .clkdm_name = "pcie_clkdm", | ||
1261 | .main_clk = "l4_root_clk_div", | ||
1262 | .prcm = { | ||
1263 | .omap4 = { | ||
1264 | .clkctrl_offs = DRA7XX_CM_PCIE_CLKSTCTRL_OFFSET, | ||
1265 | .modulemode = MODULEMODE_SWCTRL, | ||
1266 | }, | ||
1267 | }, | ||
1268 | }; | ||
1269 | |||
1270 | /* | ||
1234 | * 'PCIE PHY' class | 1271 | * 'PCIE PHY' class |
1235 | * | 1272 | * |
1236 | */ | 1273 | */ |
@@ -2388,6 +2425,38 @@ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = { | |||
2388 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 2425 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
2389 | }; | 2426 | }; |
2390 | 2427 | ||
2428 | /* l3_main_1 -> pcie1 */ | ||
2429 | static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pcie1 = { | ||
2430 | .master = &dra7xx_l3_main_1_hwmod, | ||
2431 | .slave = &dra7xx_pcie1_hwmod, | ||
2432 | .clk = "l3_iclk_div", | ||
2433 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2434 | }; | ||
2435 | |||
2436 | /* l4_cfg -> pcie1 */ | ||
2437 | static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie1 = { | ||
2438 | .master = &dra7xx_l4_cfg_hwmod, | ||
2439 | .slave = &dra7xx_pcie1_hwmod, | ||
2440 | .clk = "l4_root_clk_div", | ||
2441 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2442 | }; | ||
2443 | |||
2444 | /* l3_main_1 -> pcie2 */ | ||
2445 | static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pcie2 = { | ||
2446 | .master = &dra7xx_l3_main_1_hwmod, | ||
2447 | .slave = &dra7xx_pcie2_hwmod, | ||
2448 | .clk = "l3_iclk_div", | ||
2449 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2450 | }; | ||
2451 | |||
2452 | /* l4_cfg -> pcie2 */ | ||
2453 | static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie2 = { | ||
2454 | .master = &dra7xx_l4_cfg_hwmod, | ||
2455 | .slave = &dra7xx_pcie2_hwmod, | ||
2456 | .clk = "l4_root_clk_div", | ||
2457 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2458 | }; | ||
2459 | |||
2391 | /* l4_cfg -> pcie1 phy */ | 2460 | /* l4_cfg -> pcie1 phy */ |
2392 | static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie1_phy = { | 2461 | static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pcie1_phy = { |
2393 | .master = &dra7xx_l4_cfg_hwmod, | 2462 | .master = &dra7xx_l4_cfg_hwmod, |
@@ -2751,6 +2820,10 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { | |||
2751 | &dra7xx_l4_cfg__mpu, | 2820 | &dra7xx_l4_cfg__mpu, |
2752 | &dra7xx_l4_cfg__ocp2scp1, | 2821 | &dra7xx_l4_cfg__ocp2scp1, |
2753 | &dra7xx_l4_cfg__ocp2scp3, | 2822 | &dra7xx_l4_cfg__ocp2scp3, |
2823 | &dra7xx_l3_main_1__pcie1, | ||
2824 | &dra7xx_l4_cfg__pcie1, | ||
2825 | &dra7xx_l3_main_1__pcie2, | ||
2826 | &dra7xx_l4_cfg__pcie2, | ||
2754 | &dra7xx_l4_cfg__pcie1_phy, | 2827 | &dra7xx_l4_cfg__pcie1_phy, |
2755 | &dra7xx_l4_cfg__pcie2_phy, | 2828 | &dra7xx_l4_cfg__pcie2_phy, |
2756 | &dra7xx_l3_main_1__qspi, | 2829 | &dra7xx_l3_main_1__qspi, |