]> git.sur5r.net Git - u-boot/commitdiff
arm: rmobile: r8a7791: Add support ES2 revision
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 28 Mar 2014 04:43:40 +0000 (13:43 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Sun, 27 Apr 2014 19:35:12 +0000 (04:35 +0900)
There is ES2 is a new revision to R8A7791.
This adds support this revision.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/arm/include/asm/arch-rmobile/r8a7791.h
arch/arm/include/asm/arch-rmobile/rcar-base.h

index 7c8f19cd43166d0ff943174948ca32a91ceef6f1..479182571e797195d191dad4f161d28741c99cee 100644 (file)
@@ -46,4 +46,8 @@
 #define DBSC3_1_QOS_W14_BASE   0xE67A2E00
 #define DBSC3_1_QOS_W15_BASE   0xE67A2F00
 
+#define R8A7791_CUT_ES2X       2
+#define IS_R8A7791_ES2()       \
+       (rmobile_get_cpu_rev_integer() == R8A7791_CUT_ES2X)
+
 #endif /* __ASM_ARCH_R8A7791_H */
index 67f227b39cc032783b168b99beeaca9d588a7395..371f0ed6247292fab73f6d1c57a75d51baab8f4f 100644 (file)
@@ -552,7 +552,7 @@ struct rcar_s3c {
        u32 s3cexclidmsk;
        u32 s3cadsplcr;
        u32 s3cmaar;
-       u32 s3carcr11;  /* R8a7790 only */
+       u32 s3carcr11;
        u32 s3crorr;
        u32 s3cworr;
        u32 s3carcr22;