1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
4 * (C) Copyright 2012 Renesas Solutions Corp.
9 u32 rmobile_get_cpu_type(void)
13 struct sh73a0_hpb *hpb = (struct sh73a0_hpb *)HPB_BASE;
15 id = readl(&hpb->cccr);
16 type = (id >> 8) & 0xFF;
21 u32 rmobile_get_cpu_rev_integer(void)
25 struct sh73a0_hpb *hpb = (struct sh73a0_hpb *)HPB_BASE;
27 id = readl(&hpb->cccr);
28 rev = ((id >> 4) & 0xF) + 1;
33 u32 rmobile_get_cpu_rev_fraction(void)
37 struct sh73a0_hpb *hpb = (struct sh73a0_hpb *)HPB_BASE;
39 id = readl(&hpb->cccr);