Lines Matching +full:r9a09g057 +full:- +full:sys
1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2014-2016 Glider bvba
21 .name = "R-Car Gen1",
26 .name = "R-Car Gen2",
31 .name = "R-Car Gen3",
36 .name = "R-Car Gen4",
40 .name = "R-Mobile",
91 .name = "SH-Mobile",
420 { .compatible = "renesas,r9a09g057", .data = &soc_rz_v2h },
464 { .compatible = "renesas,r9a07g043-sysc", .data = &id_rzg2l },
465 { .compatible = "renesas,r9a07g044-sysc", .data = &id_rzg2l },
466 { .compatible = "renesas,r9a07g054-sysc", .data = &id_rzg2l },
467 { .compatible = "renesas,r9a08g045-sysc", .data = &id_rzg2l },
468 { .compatible = "renesas,r9a09g011-sys", .data = &id_rzv2m },
469 { .compatible = "renesas,r9a09g057-sys", .data = &id_rzv2h },
491 return -ENODEV; in renesas_soc_init()
493 soc_id = strchr(match->compatible, ',') + 1; in renesas_soc_init()
494 soc = match->data; in renesas_soc_init()
495 family = soc->family; in renesas_soc_init()
499 id = match->data; in renesas_soc_init()
502 } else if (soc->id && family->reg) { in renesas_soc_init()
505 chipid = ioremap(family->reg, 4); in renesas_soc_init()
512 return -ENOMEM; in renesas_soc_init()
515 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init()
516 soc_dev_attr->soc_id = kstrdup_const(soc_id, GFP_KERNEL); in renesas_soc_init()
519 product = readl(chipid + id->offset); in renesas_soc_init()
523 /* R-Car M3-W ES1.1 incorrectly identifies as ES2.0 */ in renesas_soc_init()
526 /* R-Car M3-W ES1.3 incorrectly identifies as ES2.1 */ in renesas_soc_init()
532 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", in renesas_soc_init()
536 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u", in renesas_soc_init()
542 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u.%u", in renesas_soc_init()
546 if (soc->id && in renesas_soc_init()
547 ((product & id->mask) >> __ffs(id->mask)) != soc->id) { in renesas_soc_init()
549 ret = -ENODEV; in renesas_soc_init()
554 pr_info("Detected Renesas %s %s %s%s\n", soc_dev_attr->family, in renesas_soc_init()
555 soc_dev_attr->soc_id, rev_prefix, soc_dev_attr->revision ?: ""); in renesas_soc_init()
566 kfree(soc_dev_attr->revision); in renesas_soc_init()
567 kfree_const(soc_dev_attr->soc_id); in renesas_soc_init()
568 kfree_const(soc_dev_attr->family); in renesas_soc_init()