OSDN Git Service

FROMLIST: MIPS: CPC: Map registers using DT in mips_cpc_default_phys_base()
authorPaul Burton <paul.burton@mips.com>
Fri, 19 Jan 2018 15:40:49 +0000 (16:40 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 5 Feb 2018 16:58:37 +0000 (08:58 -0800)
commit5bf8bba0f178a4687035494a3ab995548df2e792
tree7ad6593211e53bea32d3226351ce9d2325bcea64
parent22904b58933d0d2cfe3e9c0014d02a198320a5c9
FROMLIST: MIPS: CPC: Map registers using DT in mips_cpc_default_phys_base()

Reading mips_cpc_base value from the DT allows each platform to
define it according to its needs. This is especially convenient
for MIPS_GENERIC kernel where this kind of information should be
determined in runtime.

Use mti,mips-cpc compatible string with just a reg property to
specify the register location for your platform.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Miodrag Dinic <miodrag.dinic@mips.com>
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@mips.com>
(cherry picked from: https://patchwork.linux-mips.org/patch/18513/)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
arch/mips/kernel/mips-cpc.c