aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>2012-11-30 18:45:43 +0000
committerJon Medhurst <tixy@linaro.org>2013-04-29 09:43:13 +0100
commitb05df044469bcd93b133f5144d7dda811e917cd6 (patch)
tree386782ee62b41ab2a821d02e568640e081cbb516 /drivers/misc
parent1e12456d6a9d57662f7cbdaa0d6397ff93cc39c1 (diff)
downloadvexpress-lsk-b05df044469bcd93b133f5144d7dda811e917cd6.tar.gz
misc: vexpress/spc: organize the offsets in proper order
The SCC/SPC offsets defined in spc driver are scattered a bit. Just reordering them for better readability. Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/vexpress/arm-spc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/misc/vexpress/arm-spc.c b/drivers/misc/vexpress/arm-spc.c
index 2bc1be3d21b..d9bebe7f1fb 100644
--- a/drivers/misc/vexpress/arm-spc.c
+++ b/drivers/misc/vexpress/arm-spc.c
@@ -31,8 +31,12 @@
#include <asm/memory.h>
#include <asm/outercache.h>
+#define SCC_CFGREG6 0x018
+#define A15_CONF 0x400
#define SNOOP_CTL_A15 0x404
+#define A7_CONF 0x500
#define SNOOP_CTL_A7 0x504
+#define SYS_INFO 0x700
#define PERF_LVL_A15 0xB00
#define PERF_REQ_A15 0xB04
#define PERF_LVL_A7 0xB08
@@ -58,10 +62,8 @@
#define A7_RESET_HOLD 0xB5c
#define A15_RESET_STAT 0xB60
#define A7_RESET_STAT 0xB64
-#define A15_CONF 0x400
-#define A7_CONF 0x500
-#define SYS_INFO 0x700
-#define SCC_CFGREG6 0x018
+#define A15_BX_ADDR0 0xB68
+#define A7_BX_ADDR0 0xB78
#define A15_STANDBYWFIL2_MSK (1 << 2)
#define A7_STANDBYWFIL2_MSK (1 << 6)
@@ -70,9 +72,6 @@
#define A15_PART_NO 0xF
#define A7_PART_NO 0x7
-#define A15_BX_ADDR0 0xB68
-#define A7_BX_ADDR0 0xB78
-
#define DRIVER_NAME "SPC"
#define TIME_OUT_US 3000