OMAP2+: hwmod: Do not write the enawakeup bit if SYSC_HAS_ENAWAKEUP is not set
authorBenoit Cousson <b-cousson@ti.com>
Fri, 1 Jul 2011 20:54:03 +0000 (22:54 +0200)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Jul 2011 01:13:36 +0000 (19:13 -0600)
commit1fe741139be5acfe3758b53cdbf0b5e3d26db3fe
tree2bb01d2a56a64b2c7b8ce20b4b38a7aaa3418354
parent6481c73c22613660a5b791d2b4d0faf60508d731
OMAP2+: hwmod: Do not write the enawakeup bit if SYSC_HAS_ENAWAKEUP is not set

The Type 2 type of IPs will not have any enawakeup bit in their sysconfig.
Writing to that bit will instead trigger a softreset.
Check the flag to write this bit only if the module supports it.

Reported-by: Miguel Vadillo <vadillo@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c