OSDN Git Service

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)
commit3ae9af7c90f8113365cf2600797115ee35e42d0d
treeeac31e2ce235c84e8da9dae4e3f119553562f331
parentf0a6e654d8db2dfa3eb8b99380ad449d5e092c33
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