imx: imx6: perform gpr_init only on suitable cpu types
authorChristoph Niedermaier <cniedermaier@dh-electronics.de>
Fri, 19 Oct 2018 15:40:54 +0000 (17:40 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Nov 2018 13:35:40 +0000 (14:35 +0100)
commit19bbd098254fefd94199001e721f92f167f7ed9e
tree49203dd0de3a505bf66f6f54d45da86d18ba42dc
parentc5bbfaf05dc8592b479a44df6abaadbab54fec2b
imx: imx6: perform gpr_init only on suitable cpu types

If the function gpr_init is used in a common MX6 spl
implementation we have to ensure that it is only called for
suitable cpu types, otherwise it breaks hardware parts like
enet1, can1, can2, etc.

Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.de>
arch/arm/mach-imx/mx6/soc.c