cpu: imx8: reimplement get cpu count
authorPeng Fan <peng.fan@nxp.com>
Sun, 3 May 2020 13:58:51 +0000 (21:58 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 3 May 2020 13:45:49 +0000 (15:45 +0200)
commitadb3bd7654467765ecb271a21953739679638f01
treeea6c621a54d566d28e0563f4c8c6dd65e133f35b
parentf5b66af2cb18b1577b2898413e98df7dcd9bc67f
cpu: imx8: reimplement get cpu count

Return 4 is not correct on i.MX8DX/DXL/8QM and etc. we need to count
available cpu node with device_type "cpu".

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/cpu/imx8_cpu.c