[PATCH 07/19] commands: move CMD_ARM_MMUINFO to commands/Kconfig

Holger Schurig holgerschurig at gmail.com
Tue May 13 01:28:47 PDT 2014


* this places the command into the "Information commands"
  section of Kconfig
* while at it, imprive Kconfig documention

Signed-off-by: Holger Schurig <holgerschurig at gmail.com>
---
 arch/arm/Kconfig |    8 --------
 commands/Kconfig |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 8 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f8f3da0..73c7382 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -256,14 +256,6 @@ endmenu
 
 menu "Arm specific settings"
 
-config CMD_ARM_MMUINFO
-	bool "mmuinfo command"
-	depends on CPU_V7
-	default n
-	help
-	  Say yes here to get a mmuinfo command to show some
-	  MMU and cache information using the cp15 registers
-
 config CPU_V7_DCACHE_SKIP
 	bool "Skip DCache Invalidate"
 	depends on CPU_V7
diff --git a/commands/Kconfig b/commands/Kconfig
index 8b5110c..9789af4 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -91,6 +91,40 @@ config CMD_MEMINFO
 	  system bytes     =     282616
 	  in use bytes     =     274752
 
+config CMD_ARM_MMUINFO
+	bool "mmuinfo command"
+	depends on CPU_V7
+	default n
+	help
+	  Say yes here to get a mmuinfo command to show some
+	  MMU and cache information using the cp15 registers.
+
+	  Example:
+
+	  PAR result for 0x00110000:
+ 	  privileged read: 0x00110090
+  	  Physical Address [31:12]: 0x00110000
+  	  Reserved [11]:            0x0
+  	  Not Outer Shareable [10]: 0x0
+  	  Non-Secure [9]:           0x0
+  	  Impl. def. [8]:           0x0
+  	  Shareable [7]:            0x1
+  	  Inner mem. attr. [6:4]:   0x1 (0b001 Strongly-ordered)
+  	  Outer mem. attr. [3:2]:   0x0 (0b00 Non-cacheable)
+  	  SuperSection [1]:         0x0
+  	  Failure [0]:              0x0
+ 	  privileged write: 0x00110090
+  	  Physical Address [31:12]: 0x00110000
+  	  Reserved [11]:            0x0
+  	  Not Outer Shareable [10]: 0x0
+  	  Non-Secure [9]:           0x0
+  	  Impl. def. [8]:           0x0
+  	  Shareable [7]:            0x1
+  	  Inner mem. attr. [6:4]:   0x1 (0b001 Strongly-ordered)
+  	  Outer mem. attr. [3:2]:   0x0 (0b00 Non-cacheable)
+  	  SuperSection [1]:         0x0
+  	  Failure [0]:              0x0
+
 config CMD_REGINFO
 	depends on HAS_REGINFO
 	select REGINFO
-- 
1.7.10.4




More information about the barebox mailing list