Skip to content

Commit 81a51eb

Browse files
Sam Protsenkokrzk
authored andcommitted
soc: samsung: exynos-chipid: Add Exynos850 support
Add chip-id support for Exynos850 SoC. Despite its "E3830" ID, the actual SoC name is Exynos850 (Exynos3830 name is internal and outdated). Format of Product_ID register in Exynos850 (offset 0x0): [31:0] Product ID (identification) Format of CHIPID_REV register in Exynos850 (offset 0x10): [23:20] Main revision [19:16] Sub revision Signed-off-by: Sam Protsenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 0a01240 commit 81a51eb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/soc/samsung/exynos-chipid.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static const struct exynos_soc_id {
5555
{ "EXYNOS5440", 0xE5440000 },
5656
{ "EXYNOS5800", 0xE5422000 },
5757
{ "EXYNOS7420", 0xE7420000 },
58+
{ "EXYNOS850", 0xE3830000 },
5859
};
5960

6061
static const char *product_id_to_soc_id(unsigned int product_id)
@@ -169,10 +170,19 @@ static const struct exynos_chipid_variant exynos4210_chipid_drv_data = {
169170
.sub_rev_shift = 0,
170171
};
171172

173+
static const struct exynos_chipid_variant exynos850_chipid_drv_data = {
174+
.rev_reg = 0x10,
175+
.main_rev_shift = 20,
176+
.sub_rev_shift = 16,
177+
};
178+
172179
static const struct of_device_id exynos_chipid_of_device_ids[] = {
173180
{
174181
.compatible = "samsung,exynos4210-chipid",
175182
.data = &exynos4210_chipid_drv_data,
183+
}, {
184+
.compatible = "samsung,exynos850-chipid",
185+
.data = &exynos850_chipid_drv_data,
176186
},
177187
{ }
178188
};

0 commit comments

Comments
 (0)