]> git.baikalelectronics.ru Git - kernel.git/commit
bus: omap_l3_noc: convert target information into a structure
authorNishanth Menon <nm@ti.com>
Fri, 11 Apr 2014 16:38:10 +0000 (11:38 -0500)
committerNishanth Menon <nm@ti.com>
Mon, 5 May 2014 19:33:19 +0000 (14:33 -0500)
commitfe96e14e8b60a9d7425294cc5e5ef6ed28a2dcd3
treeeac31e2ce235c84e8da9dae4e3f119553562f331
parente53d371d5b2ce7e734142881115ba33ae76e72e5
bus: omap_l3_noc: convert target information into a structure

Currently the target instance information is organized indexed by bit
field offset into multiple arrays.

1. We currently have offsets specific to each target associated with each
clock domains are in seperate arrays:

l3_targ_inst_clk1
l3_targ_inst_clk2
l3_targ_inst_clk3

2. Then they are organized per master index in l3_targ.

3. We have names in l3_targ_inst_name as an array to array of strings
corresponding to the above with offsets.

Simplify the same by defining a structure for information containing
both target offset and name. this is then stored in arrays per domain
and organized into an array indexed off domain.

The array is still indexed based on bit field offset.

Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
drivers/bus/omap_l3_noc.c
drivers/bus/omap_l3_noc.h