soc: ti: pruss: Refactor the CFG sub-module init
authorSuman Anna <s-anna@ti.com>
Mon, 1 Feb 2021 04:53:43 +0000 (20:53 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 1 Feb 2021 04:53:43 +0000 (20:53 -0800)
commitea797f699440d85489dc839b28845434e350c917
tree83b1e1049ded88141e24f286e41fb40e14a7a5b3
parent822be879980d8a2ddcb7268c77c682c0cdd3c086
soc: ti: pruss: Refactor the CFG sub-module init

The CFG sub-module is not present on some earlier SoCs like the
DA850/OMAPL-138 in the TI Davinci family. Refactor out the CFG
sub-module parse and initialization logic into a separate function
to make it easier to add logic for the PRUSS IP on the above legacy
SoC families.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/pruss.c