ARM: OMAP3: Fix crypto support for HS devices
authorPali Rohár <pali.rohar@gmail.com>
Thu, 26 Feb 2015 13:49:52 +0000 (14:49 +0100)
committerPaul Walmsley <paul@pwsan.com>
Tue, 2 Jun 2015 01:23:04 +0000 (19:23 -0600)
commita55a744582e0dc106537ba5e508c340c39cfe454
tree4565cbc6f6e8b5c4055540ff52d846e01a489e25
parent6da233589f26ebd891d507a5a134ab43267006f2
ARM: OMAP3: Fix crypto support for HS devices

Register crypto hwmod links only if they are not disabled in DT.
If DT information is missing, enable them only for GP devices.

Before this patch crypto hwmod links were always disabled for all HS
devices and it was not possible to use omap-aes and omap-sham linux
drivers.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
[paul@pwsan.com: move the complex IP-block presence heuristics into their
 own function to simplify the code; fix some checkpatch warnings]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c