소스 검색

ARM: ux500: add a U8520 detection macro

In line with the other macros this detects the DB8520
ASIC variant.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Linus Walleij 13 년 전
부모
커밋
a4d9b33be0
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      arch/arm/mach-ux500/include/mach/id.h

+ 5 - 0
arch/arm/mach-ux500/include/mach/id.h

@@ -41,6 +41,11 @@ static inline bool __attribute_const__ cpu_is_u8500(void)
 	return dbx500_partnumber() == 0x8500;
 }
 
+static inline bool __attribute_const__ cpu_is_u8520(void)
+{
+	return dbx500_partnumber() == 0x8520;
+}
+
 static inline bool __attribute_const__ cpu_is_u9540(void)
 {
 	return dbx500_partnumber() == 0x9540;