]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: hwmod: rt address space index for DT
authorAfzal Mohammed <afzal@ti.com>
Fri, 5 Jul 2013 15:13:00 +0000 (20:43 +0530)
committerPaul Walmsley <paul@pwsan.com>
Tue, 30 Jul 2013 11:13:37 +0000 (05:13 -0600)
commit77edc8a69948175c26b975fcf5e8a6af10c48b90
tree543b3e4b5f2203a9550441a714ebfb11672fe098
parent7c3053f9453b892af580a803d700846a5ef9b217
ARM: OMAP2+: hwmod: rt address space index for DT

Address space is being removed from hwmod database and DT information
in <reg> property is being used. Currently the 0th index of device
address space is used to map for register target address. This is not
always true, eg. cpgmac has it's sysconfig in second address space.

Handle it by specifying index of device address space to be used for
register target. As default value of this field would be zero with
static initialization, existing behaviour of using first address space
for register target while using DT would be kept as such.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Tested-by: Mugunthan V N <mugunthanvnm@ti.com>
[paul@pwsan.com: use u8 rather than int to save memory]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h