]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/cpu/armv7/rmobile/cpu_info-sh73a0.c
2 * (C) Copyright 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
3 * (C) Copyright 2012 Renesas Solutions Corp.
5 * SPDX-License-Identifier: GPL-2.0+
10 u32
rmobile_get_cpu_type(void)
14 struct sh73a0_hpb
*hpb
= (struct sh73a0_hpb
*)HPB_BASE
;
16 id
= readl(&hpb
->cccr
);
17 type
= (id
>> 8) & 0xFF;
22 u32
rmobile_get_cpu_rev_integer(void)
26 struct sh73a0_hpb
*hpb
= (struct sh73a0_hpb
*)HPB_BASE
;
28 id
= readl(&hpb
->cccr
);
29 rev
= ((id
>> 4) & 0xF) + 1;
34 u32
rmobile_get_cpu_rev_fraction(void)
38 struct sh73a0_hpb
*hpb
= (struct sh73a0_hpb
*)HPB_BASE
;
40 id
= readl(&hpb
->cccr
);