linux/drivers/soc
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
..
actions soc: actions: sps: Add S900 power domains 2018-09-30 16:48:10 +02:00
amlogic soc: amlogic: gx-socinfo: Add mask for each SoC packages 2019-03-18 09:07:31 -07:00
atmel ARM: at91: add support in soc driver for new SAM9X60 2018-12-12 11:55:20 +01:00
bcm soc: bcm: bcm2835-pm: Make local symbol static 2019-01-31 21:05:58 -08:00
dove soc: Convert to using %pOFn instead of device_node.name 2018-10-04 14:16:01 -05:00
fsl ARM: SoC driver updates for 5.1 2019-03-06 09:41:12 -08:00
gemini soc: Add SoC driver for Gemini 2018-01-04 17:01:53 +01:00
imx soc: imx: Break dependency on SOC_IMX8MQ for GPCv2 2019-01-14 09:42:22 +08:00
lantiq MIPS: lantiq: Remove separate GPHY Firmware loader 2019-02-25 14:17:10 -08:00
mediatek soc: mediatek: Add Mediatek CMDQ helper 2018-12-02 20:46:10 +01:00
qcom soc: qcom: llcc-slice: Fix typos 2019-02-15 16:30:34 -06:00
renesas soc: renesas: r8a774c0-sysc: Fix initialization order of 3DG-{A,B} 2019-01-07 14:51:51 +01:00
rockchip soc: rockchip: power-domain: add rk3066 powerdomains 2018-11-06 14:13:32 +01:00
samsung soc: samsung: pm_domains: Deprecate support for clocks 2018-04-17 17:25:42 +02:00
sunxi soc: sunxi: sram: Add support for the H5 SoC system control 2018-12-05 11:55:36 +01:00
tegra ARM: SoC driver updates for 5.1 2019-03-06 09:41:12 -08:00
ti soc: ti: knav_dma: Use proper enum in pktdma_init_chan 2019-01-30 10:22:17 -08:00
ux500 ARM: ux500: move soc_id driver to drivers/soc 2016-07-12 11:24:09 +02:00
versatile soc: versatile: remove unnecessary static in realview_soc_probe() 2017-08-16 22:28:27 +02:00
xilinx drivers: soc: xilinx: Add ZynqMP power domain driver 2019-02-12 13:38:16 +01:00
zte soc: zte: Restrict SOC_ZTE to ARCH_ZX or COMPILE_TEST 2017-07-27 13:12:34 +02:00
Kconfig soc: xilinx: Create folder structure for soc specific drivers 2018-01-08 13:42:39 +01:00
Makefile drivers: soc: Allow building the amlogic drivers without ARCH_MESON 2018-11-15 12:25:20 -08:00