diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2017-12-18 01:20:02 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-12-21 10:05:15 -0500 |
commit | 234c91d4a350835df8362f6bc968ccf052c60d58 (patch) | |
tree | 9cfc5556a767a93fa354dd3cdab2c840f6c9b8b8 | |
parent | 987d13f6d7740a616e8905e6a7b35af28c63b5a4 (diff) |
ARM: OMAP2+: dra762: Register package specific hwmod
Register dra762 abz package specific hwmod. Also move registering rtc hwmod
into respective SoC conditional statements instead of doing it separately.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index d05e553d6346..f33afcaec77e 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | |||
@@ -4019,6 +4019,10 @@ static struct omap_hwmod_ocp_if *dra76x_hwmod_ocp_ifs[] __initdata = { | |||
4019 | NULL, | 4019 | NULL, |
4020 | }; | 4020 | }; |
4021 | 4021 | ||
4022 | static struct omap_hwmod_ocp_if *acd_76x_hwmod_ocp_ifs[] __initdata = { | ||
4023 | NULL, | ||
4024 | }; | ||
4025 | |||
4022 | static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = { | 4026 | static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = { |
4023 | &dra7xx_l4_per3__usb_otg_ss4, | 4027 | &dra7xx_l4_per3__usb_otg_ss4, |
4024 | NULL, | 4028 | NULL, |
@@ -4028,7 +4032,7 @@ static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = { | |||
4028 | NULL, | 4032 | NULL, |
4029 | }; | 4033 | }; |
4030 | 4034 | ||
4031 | static struct omap_hwmod_ocp_if *dra74x_dra72x_hwmod_ocp_ifs[] __initdata = { | 4035 | static struct omap_hwmod_ocp_if *rtc_hwmod_ocp_ifs[] __initdata = { |
4032 | &dra7xx_l4_per3__rtcss, | 4036 | &dra7xx_l4_per3__rtcss, |
4033 | NULL, | 4037 | NULL, |
4034 | }; | 4038 | }; |
@@ -4040,19 +4044,26 @@ int __init dra7xx_hwmod_init(void) | |||
4040 | omap_hwmod_init(); | 4044 | omap_hwmod_init(); |
4041 | ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs); | 4045 | ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs); |
4042 | 4046 | ||
4043 | if (!ret && soc_is_dra74x()) | 4047 | if (!ret && soc_is_dra74x()) { |
4044 | ret = omap_hwmod_register_links(dra74x_hwmod_ocp_ifs); | 4048 | ret = omap_hwmod_register_links(dra74x_hwmod_ocp_ifs); |
4045 | else if (!ret && soc_is_dra72x()) | 4049 | if (!ret) |
4050 | ret = omap_hwmod_register_links(rtc_hwmod_ocp_ifs); | ||
4051 | } else if (!ret && soc_is_dra72x()) { | ||
4046 | ret = omap_hwmod_register_links(dra72x_hwmod_ocp_ifs); | 4052 | ret = omap_hwmod_register_links(dra72x_hwmod_ocp_ifs); |
4047 | else if (!ret && soc_is_dra76x()) | 4053 | if (!ret && !of_machine_is_compatible("ti,dra718")) |
4054 | ret = omap_hwmod_register_links(rtc_hwmod_ocp_ifs); | ||
4055 | } else if (!ret && soc_is_dra76x()) { | ||
4048 | ret = omap_hwmod_register_links(dra76x_hwmod_ocp_ifs); | 4056 | ret = omap_hwmod_register_links(dra76x_hwmod_ocp_ifs); |
4049 | 4057 | ||
4058 | if (!ret && soc_is_dra76x_acd()) { | ||
4059 | ret = omap_hwmod_register_links(acd_76x_hwmod_ocp_ifs); | ||
4060 | } else if (!ret && soc_is_dra76x_abz()) { | ||
4061 | ret = omap_hwmod_register_links(rtc_hwmod_ocp_ifs); | ||
4062 | } | ||
4063 | } | ||
4064 | |||
4050 | if (!ret && omap_type() == OMAP2_DEVICE_TYPE_GP) | 4065 | if (!ret && omap_type() == OMAP2_DEVICE_TYPE_GP) |
4051 | ret = omap_hwmod_register_links(dra7xx_gp_hwmod_ocp_ifs); | 4066 | ret = omap_hwmod_register_links(dra7xx_gp_hwmod_ocp_ifs); |
4052 | 4067 | ||
4053 | /* now for the IPs available only in dra74 and dra72 */ | ||
4054 | if (!ret && !of_machine_is_compatible("ti,dra718") && !soc_is_dra76x()) | ||
4055 | ret = omap_hwmod_register_links(dra74x_dra72x_hwmod_ocp_ifs); | ||
4056 | |||
4057 | return ret; | 4068 | return ret; |
4058 | } | 4069 | } |