Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 337c1db6 authored by Haojian Zhuang's avatar Haojian Zhuang Committed by Eric Miao
Browse files

[ARM] pxa: update cpu_is_xsc3() to include Marvell CPUID



CPU id is changed in Marvell chip. So update the code in cpu_is_xsc3().

Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
parent 9db95cb6
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -73,7 +73,10 @@ static inline unsigned int __attribute_const__ read_cpuid_cachetype(void)
#else
#else
static inline int cpu_is_xsc3(void)
static inline int cpu_is_xsc3(void)
{
{
	if ((read_cpuid_id() & 0xffffe000) == 0x69056000)
	unsigned int id;
	id = read_cpuid_id() & 0xffffe000;
	/* It covers both Intel ID and Marvell ID */
	if ((id == 0x69056000) || (id == 0x56056000))
		return 1;
		return 1;


	return 0;
	return 0;