linux-stable/drivers/soc/amlogic
Neil Armstrong dce47aed20 soc: amlogic: gx-socinfo: Add mask for each SoC packages
When updated IDs on f842c41adc ("amlogic: meson-gx-socinfo: Update soc ids")
we introduced packages ids using the full 8bit value, but in the function
socinfo_to_package_id() the id was filtered with the 0xf0 mask.

While the 0xf0 mask is valid for most board, it filters out the lower
4 bits which encodes some characteristics of the chip.

This patch moves the mask into the meson_gx_package_id table to be applied
on each package name independently and add the correct mask for some
specific entries.

An example is the S905, in the vendor code the S905 is package_id
different from 0x20, and S905M is exactly 0x20.

Another example are the The Wetek Hub & Play2 boards using a S905-H
variant, which is the S905 SoC with some licence bits enabled.
These licence bits are encoded in the lower 4bits, so to detect
the -H variant, we must detect the id == 0x3 with the 0xf mask.

Fixes: f842c41adc ("amlogic: meson-gx-socinfo: Update soc ids")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2019-03-18 09:07:31 -07:00
..
Kconfig soc: amlogic: meson-clk-measure: Add missing REGMAP_MMIO dependency 2018-12-10 12:16:22 -08:00
Makefile soc: amlogic: Add Meson Clock Measure driver 2018-11-28 16:55:35 -08:00
meson-canvas.c soc: amlogic: canvas: Fix meson_canvas_get when probe failed 2019-02-07 16:31:30 -08:00
meson-clk-measure.c soc: amlogic: clk-measure: add axg and g12a support 2019-02-07 16:50:36 -08:00
meson-gx-pwrc-vpu.c soc: amlogic: meson-gx-pwrc-vpu: fix error on shutdown when domain is powered off 2018-02-12 14:15:46 -08:00
meson-gx-socinfo.c soc: amlogic: gx-socinfo: Add mask for each SoC packages 2019-03-18 09:07:31 -07:00
meson-mx-socinfo.c meson-mx-socinfo: Make local function meson_mx_socinfo_init() static 2018-02-12 14:15:47 -08:00