twx-linux/include/linux/soc
Sam Protsenko c072c4ef7e soc: samsung: exynos-chipid: Pass revision reg offsets
Old Exynos SoCs have both Product ID and Revision ID in one single
register, while new SoCs tend to have two separate registers for those
IDs. Implement handling of both cases by passing Revision ID register
offsets in driver data.

Previously existing macros for Exynos4210 (removed in this patch) were
incorrect:

    #define EXYNOS_SUBREV_MASK         (0xf << 4)
    #define EXYNOS_MAINREV_MASK        (0xf << 0)

Actual format of PRO_ID register in Exynos4210 (offset 0x0):

    [31:12] Product ID
      [9:8] Package information
      [7:4] Main Revision Number
      [3:0] Sub Revision Number

This patch doesn't change the behavior on existing platforms, so
'/sys/devices/soc0/revision' will show the same string as before.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Henrik Grimler <henrik@grimler.se>
Link: https://lore.kernel.org/r/20211014133508.1210-1-semen.protsenko@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
2021-10-15 09:48:40 +02:00
..
actions
amlogic
brcmstb soc: bcm: brcmstb: add stubs for getting platform IDs 2021-01-20 12:07:23 -08:00
cirrus
dove
ixp4xx soc: ixp4xx: move cpu detection to linux/soc/ixp4xx/cpu.h 2021-06-17 15:30:54 +02:00
marvell/octeontx2 octeontx2-pf: cn10K: Reserve LMTST lines per core 2021-09-01 11:42:16 +01:00
mediatek drm pull for 5.12-rc1 2021-02-21 14:44:44 -08:00
mmp
nxp
qcom clk: qcom: smd: Add support for SM6125 rpm clocks 2021-08-05 18:27:56 -07:00
renesas
samsung soc: samsung: exynos-chipid: Pass revision reg offsets 2021-10-15 09:48:40 +02:00
sunxi
ti