MLK-22192 imx8mn: Add variant parts support
authorYe Li <ye.li@nxp.com>
Thu, 4 Jul 2019 09:20:23 +0000 (02:20 -0700)
committerYe Li <ye.li@nxp.com>
Tue, 9 Jul 2019 07:22:40 +0000 (00:22 -0700)
commit380370b5460cb3f5284828fe0aabc7cca29c3bcd
tree6dfeeae0fe49929ab0233d63af59987c2878b3e7
parent73b87eecf89936917f93c54905a000725898692e
MLK-22192 imx8mn: Add variant parts support

According to datasheet, there are totally 6 variant parts for imx8mn:
Quad, Dual, Solo with core number changed.
QuadLite, DualLite, SoloLite with core number changed and GPU disabled.

Add the support for these variant parts
1. Recognize the variant parts according to fuse
2. Power down disabled cores
3. Remove the cores node and disable GPU node from kernel DTB before
   entering kernel.
4. Since the mscale dummy id has been used out, increase one more bit
   (bit 8) for cpu id.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 144bd9ce223ead71e1726bea510242a3166f66ce)
arch/arm/include/asm/arch-imx/cpu.h
arch/arm/include/asm/mach-imx/sys_proto.h
arch/arm/mach-imx/cpu.c
arch/arm/mach-imx/imx8m/soc.c