blob: d2cbcd761dceee6d459c0a34aefd7afb83b1d299 [file] [log] [blame]
Nobuhiro Iwamatsubd0550f2013-11-21 17:07:45 +09001/*
2 * arch/arm/include/asm/arch-rmobile/r8a7791.h
Nobuhiro Iwamatsubd0550f2013-11-21 17:07:45 +09003 *
Nobuhiro Iwamatsu5723e242014-03-27 16:11:17 +09004 * Copyright (C) 2013,2014 Renesas Electronics Corporation
Nobuhiro Iwamatsubd0550f2013-11-21 17:07:45 +09005 *
6 * SPDX-License-Identifier: GPL-2.0
Nobuhiro Iwamatsu5723e242014-03-27 16:11:17 +09007*/
Nobuhiro Iwamatsubd0550f2013-11-21 17:07:45 +09008
9#ifndef __ASM_ARCH_R8A7791_H
10#define __ASM_ARCH_R8A7791_H
11
Nobuhiro Iwamatsu5723e242014-03-27 16:11:17 +090012#include "rcar-base.h"
Nobuhiro Iwamatsubd0550f2013-11-21 17:07:45 +090013/*
Nobuhiro Iwamatsu5723e242014-03-27 16:11:17 +090014 * R-Car (R8A7791) I/O Addresses
Nobuhiro Iwamatsubd0550f2013-11-21 17:07:45 +090015 */
Nobuhiro Iwamatsua75d7f02014-11-06 16:03:47 +090016
17/* SH-I2C */
18#define CONFIG_SYS_I2C_SH_BASE2 0xE60B0000
19
Nobuhiro Iwamatsu1251e492013-11-21 17:07:46 +090020#define DBSC3_1_QOS_R0_BASE 0xE67A1000
21#define DBSC3_1_QOS_R1_BASE 0xE67A1100
22#define DBSC3_1_QOS_R2_BASE 0xE67A1200
23#define DBSC3_1_QOS_R3_BASE 0xE67A1300
24#define DBSC3_1_QOS_R4_BASE 0xE67A1400
25#define DBSC3_1_QOS_R5_BASE 0xE67A1500
26#define DBSC3_1_QOS_R6_BASE 0xE67A1600
27#define DBSC3_1_QOS_R7_BASE 0xE67A1700
28#define DBSC3_1_QOS_R8_BASE 0xE67A1800
29#define DBSC3_1_QOS_R9_BASE 0xE67A1900
30#define DBSC3_1_QOS_R10_BASE 0xE67A1A00
31#define DBSC3_1_QOS_R11_BASE 0xE67A1B00
32#define DBSC3_1_QOS_R12_BASE 0xE67A1C00
33#define DBSC3_1_QOS_R13_BASE 0xE67A1D00
34#define DBSC3_1_QOS_R14_BASE 0xE67A1E00
35#define DBSC3_1_QOS_R15_BASE 0xE67A1F00
36#define DBSC3_1_QOS_W0_BASE 0xE67A2000
37#define DBSC3_1_QOS_W1_BASE 0xE67A2100
38#define DBSC3_1_QOS_W2_BASE 0xE67A2200
39#define DBSC3_1_QOS_W3_BASE 0xE67A2300
40#define DBSC3_1_QOS_W4_BASE 0xE67A2400
41#define DBSC3_1_QOS_W5_BASE 0xE67A2500
42#define DBSC3_1_QOS_W6_BASE 0xE67A2600
43#define DBSC3_1_QOS_W7_BASE 0xE67A2700
44#define DBSC3_1_QOS_W8_BASE 0xE67A2800
45#define DBSC3_1_QOS_W9_BASE 0xE67A2900
46#define DBSC3_1_QOS_W10_BASE 0xE67A2A00
47#define DBSC3_1_QOS_W11_BASE 0xE67A2B00
48#define DBSC3_1_QOS_W12_BASE 0xE67A2C00
49#define DBSC3_1_QOS_W13_BASE 0xE67A2D00
50#define DBSC3_1_QOS_W14_BASE 0xE67A2E00
51#define DBSC3_1_QOS_W15_BASE 0xE67A2F00
Nobuhiro Iwamatsudbfd1152014-05-19 12:23:35 +090052#define DBSC3_1_DBADJ2 0xE67A00C8
Nobuhiro Iwamatsu1251e492013-11-21 17:07:46 +090053
Nobuhiro Iwamatsuc72dd8e2014-12-02 16:52:22 +090054/* Module stop control/status register bits */
55#define MSTP0_BITS 0x00640801
56#define MSTP1_BITS 0x9B6C9B5A
57#define MSTP2_BITS 0x100D21FC
58#define MSTP3_BITS 0xF08CD810
59#define MSTP4_BITS 0x800001C4
60#define MSTP5_BITS 0x44C00046
61#define MSTP7_BITS 0x05BFE618
62#define MSTP8_BITS 0x40C0FE85
63#define MSTP9_BITS 0xFF979FFF
64#define MSTP10_BITS 0xFFFEFFE0
65#define MSTP11_BITS 0x000001C0
66
Nobuhiro Iwamatsufb3af512014-03-28 13:43:40 +090067#define R8A7791_CUT_ES2X 2
68#define IS_R8A7791_ES2() \
69 (rmobile_get_cpu_rev_integer() == R8A7791_CUT_ES2X)
70
Nobuhiro Iwamatsubd0550f2013-11-21 17:07:45 +090071#endif /* __ASM_ARCH_R8A7791_H */