linux_dsm_epyc7002/drivers/soc/amlogic
Arnaud Patard 044d71bc6c meson-gx-socinfo: Fix package id parsing
I've noticed the following message while booting a S905X based board:

soc soc0: Amlogic Meson GXL (S905D) Revision 21:82 (b:2) Detected

The S905D string is obviously wrong. The vendor code does:
...
        ver = (readl(assist_hw_rev) >> 8) & 0xff;
        meson_cpu_version[MESON_CPU_VERSION_LVL_MINOR] = ver;
        ver =  (readl(assist_hw_rev) >> 16) & 0xff;
        meson_cpu_version[MESON_CPU_VERSION_LVL_PACK] = ver;
...

while the current code does:
...
...

This means that the current mainline code has package id and minor
version reversed.

Fixes: a9daaba296 ("soc: Add Amlogic SoC Information driver")
Signed-off-by: Arnaud Patard <apatard@hupstream.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2017-11-30 15:29:44 -08:00
..
Kconfig soc: amlogic: gx pm domain: add PM and OF dependencies 2017-11-02 23:43:55 +01:00
Makefile soc: amlogic: add Meson GX VPU Domains driver 2017-10-29 07:25:53 -07:00
meson-gx-pwrc-vpu.c soc: amlogic: meson-gx-pwrc-vpu: fix power-off when powered by bootloader 2017-11-09 11:42:17 +01:00
meson-gx-socinfo.c meson-gx-socinfo: Fix package id parsing 2017-11-30 15:29:44 -08:00
meson-mx-socinfo.c soc: amlogic: Add Meson6/Meson8/Meson8b/Meson8m2 SoC Information driver 2017-10-06 15:36:17 -07:00