mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

Now that we have SoC detection in the RZ SYSC driver, move the RZ/G3S SoC detection to it. The SYSC provides SoC ID in its own registers. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com> Link: https://lore.kernel.org/20250128031342.52675-3-john.madieu.xa@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
24 lines
551 B
C
24 lines
551 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* RZ/G3S System controller driver
|
|
*
|
|
* Copyright (C) 2024 Renesas Electronics Corp.
|
|
*/
|
|
|
|
#include <linux/bits.h>
|
|
#include <linux/init.h>
|
|
|
|
#include "rz-sysc.h"
|
|
|
|
static const struct rz_sysc_soc_id_init_data rzg3s_sysc_soc_id_init_data __initconst = {
|
|
.family = "RZ/G3S",
|
|
.id = 0x85e0447,
|
|
.devid_offset = 0xa04,
|
|
.revision_mask = GENMASK(31, 28),
|
|
.specific_id_mask = GENMASK(27, 0),
|
|
};
|
|
|
|
const struct rz_sysc_init_data rzg3s_sysc_init_data __initconst = {
|
|
.soc_id_init_data = &rzg3s_sysc_soc_id_init_data,
|
|
};
|