ARM: OMAP: hwmod: Use sysc_fields->srst_shift and get rid of hardcoded SYSC_TYPE2_SOF...
authorRajendra Nayak <rnayak@ti.com>
Mon, 12 Mar 2012 10:29:58 +0000 (04:29 -0600)
committerPaul Walmsley <paul@pwsan.com>
Mon, 12 Mar 2012 10:29:58 +0000 (04:29 -0600)
commit387ca5bf4fe2297c93869b6f639afa8d849fb877
tree1db68a3fc7a4df95e1400850401c7ab853187d46
parentfde7d9049e55ab85a390be7f415d74c9f62dd0f9
ARM: OMAP: hwmod: Use sysc_fields->srst_shift and get rid of hardcoded SYSC_TYPE2_SOFTRESET_MASK

This is useful when we have broken type2 compliant IPs' where
the softreset shift is not the same as SYSC_TYPE2_SOFTRESET_SHIFT
and hence is overridden using sysc_fields->srst_shift.

We have at least one such instance now with onchip keypad on OMAP5
which has a different softreset shift as compared to other type2
IPs'.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Balaji TK <balajitk@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Acked-by: BenoƮt Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c