public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Lokesh Vutla <lokeshvutla-l0cyMroinI0@public.gmane.org>
To: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>,
	Linux OMAP Mailing List
	<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: Tero Kristo <t-kristo-l0cyMroinI0@public.gmane.org>,
	Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org>,
	Device Tree Mailing List
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Vignesh R <vigneshr-l0cyMroinI0@public.gmane.org>,
	Keerthy <j-keerthy-l0cyMroinI0@public.gmane.org>,
	Praneeth Bajjuri <praneeth-l0cyMroinI0@public.gmane.org>,
	Lokesh Vutla <lokeshvutla-l0cyMroinI0@public.gmane.org>
Subject: [PATCH 3/8] ARM: dra7: hwmod: Register dra76x specific hwmod
Date: Wed, 19 Jul 2017 01:24:58 +0530	[thread overview]
Message-ID: <20170718195503.1700-4-lokeshvutla@ti.com> (raw)
In-Reply-To: <20170718195503.1700-1-lokeshvutla-l0cyMroinI0@public.gmane.org>

Certain IPs are available on dra76 which are not present
either in dra74 or dra72. So register dra76 specific IPs
separately.

Signed-off-by: Lokesh Vutla <lokeshvutla-l0cyMroinI0@public.gmane.org>
---
 arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
index b3abb8d8b2f6..f040244c57e7 100644
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -4070,6 +4070,11 @@ static struct omap_hwmod_ocp_if *dra7xx_gp_hwmod_ocp_ifs[] __initdata = {
 };
 
 /* SoC variant specific hwmod links */
+static struct omap_hwmod_ocp_if *dra76x_hwmod_ocp_ifs[] __initdata = {
+	&dra7xx_l4_per3__usb_otg_ss4,
+	NULL,
+};
+
 static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
 	&dra7xx_l4_per3__usb_otg_ss4,
 	NULL,
@@ -4095,12 +4100,14 @@ int __init dra7xx_hwmod_init(void)
 		ret = omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
 	else if (!ret && soc_is_dra72x())
 		ret = omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
+	else if (!ret && soc_is_dra76x())
+		ret = omap_hwmod_register_links(dra76x_hwmod_ocp_ifs);
 
 	if (!ret && omap_type() == OMAP2_DEVICE_TYPE_GP)
 		ret = omap_hwmod_register_links(dra7xx_gp_hwmod_ocp_ifs);
 
-	/* now for the IPs *NOT* in dra71 */
-	if (!ret && !of_machine_is_compatible("ti,dra718"))
+	/* now for the IPs available only in dra74 and dra72 */
+	if (!ret && !of_machine_is_compatible("ti,dra718") && !soc_is_dra76x())
 		ret = omap_hwmod_register_links(dra74x_dra72x_hwmod_ocp_ifs);
 
 	return ret;
-- 
2.13.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-07-18 19:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-18 19:54 [PATCH 0/8] ARM: dra7: Add support for dra76-evm Lokesh Vutla
     [not found] ` <20170718195503.1700-1-lokeshvutla-l0cyMroinI0@public.gmane.org>
2017-07-18 19:54   ` [PATCH 1/8] ARM: OMAP2+: board-generic: add support for dra76x family Lokesh Vutla
     [not found]     ` <20170718195503.1700-2-lokeshvutla-l0cyMroinI0@public.gmane.org>
2017-07-24 19:02       ` Rob Herring
2017-07-25  6:40         ` Lokesh Vutla
     [not found]           ` <5fcdf90c-4630-0834-ff09-46339dce90f6-l0cyMroinI0@public.gmane.org>
2017-07-30 11:19             ` Lokesh Vutla
     [not found]               ` <f0d5b151-c699-c683-97ce-d6689135e3ac-l0cyMroinI0@public.gmane.org>
2017-08-11 15:42                 ` Tony Lindgren
2017-07-18 19:54   ` [PATCH 2/8] ARM: dra76: Add support for device identification Lokesh Vutla
2017-07-18 19:54   ` Lokesh Vutla [this message]
2017-07-18 19:54   ` [PATCH 4/8] ARM: dra76: Enable SMP for dra76 Lokesh Vutla
2017-07-18 19:55   ` [PATCH 5/8] ARM: OMAP: dra7: powerdomain data: Register SoC specific powerdomains Lokesh Vutla
2017-07-18 19:55   ` [PATCH 6/8] ARM: omap2plus_defconfig: Enable LP87565 Lokesh Vutla
2017-07-18 19:55   ` [PATCH 7/8] ARM: dts: Add support for dra76x family of devices Lokesh Vutla
2017-07-18 19:55   ` [PATCH 8/8] ARM: dts: Add support for dra76-evm Lokesh Vutla
     [not found]     ` <20170718195503.1700-9-lokeshvutla-l0cyMroinI0@public.gmane.org>
2017-07-24 10:30       ` Lokesh Vutla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170718195503.1700-4-lokeshvutla@ti.com \
    --to=lokeshvutla-l0cymroini0@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=j-keerthy-l0cyMroinI0@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=nsekhar-l0cyMroinI0@public.gmane.org \
    --cc=praneeth-l0cyMroinI0@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=t-kristo-l0cyMroinI0@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
    --cc=vigneshr-l0cyMroinI0@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox