]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Add debugfs file to print the segmentation control registers
authorSteven J. Hill <Steven.Hill@imgtec.com>
Thu, 14 Nov 2013 16:12:32 +0000 (16:12 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 11:48:29 +0000 (12:48 +0100)
commitb00967ab469cb1d00519335ea00bf688b3f930c1
treee17e4f1ae03ef784ef4a6444b819323998cc3ad8
parentd4f50dd4d8cc8e6b2213f367aabd62d0e10dc315
MIPS: Add debugfs file to print the segmentation control registers

Add a new mips/segments debugfs file to print the 6 segmentation
control registers for supported cores. A sample from a proAptiv core
is given below:

Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6137/
Segment   Virtual    Size   Access Mode   Physical   Caching   EU
-------   -------    ----   -----------   --------   -------   --
   0      e0000000   512M      MK           UND         U       0
   1      c0000000   512M      MSK          UND         U       0
   2      a0000000   512M      UK           000         2       0
   3      80000000   512M      UK           000         3       0
   4      40000000    1G       MUSK         UND         U       1
   5      00000000    1G       MUSK         UND         U       1

Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/kernel/Makefile
arch/mips/kernel/segment.c [new file with mode: 0644]