diff options
author | Paul Burton <paul.burton@imgtec.com> | 2017-08-12 19:49:25 -0700 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-08-29 15:21:57 +0200 |
commit | abe852ea3ad1c9ada6d053ae8f9eedb9722d0e90 (patch) | |
tree | bf2ebcb86cdff08f806a558d7c0f5333e0ae4ee4 /arch/mips/include/asm/mips-cm.h | |
parent | 454854ace22f5a9fdd369a4e428493159a02f029 (diff) | |
download | lwn-abe852ea3ad1c9ada6d053ae8f9eedb9722d0e90.tar.gz lwn-abe852ea3ad1c9ada6d053ae8f9eedb9722d0e90.zip |
MIPS: CM: Rename mips_cm_base to mips_gcr_base
We currently have a mips_cm_base variable which holds the base address
of the Coherence Manager (CM) Global Configuration Registers (GCRs), and
accessor functions which use the GCR in their names. This works fine,
but gets in the way of sharing the code to generate the accessor
functions with other blocks (ie. CPC & GIC) because that code would then
need to separately handle the name of the base address variable & the
name used in the accessor functions.
In order to prepare for sharing the accessor generation code between CM,
CPC & GIC code this patch renames mips_cm_base to mips_gcr_base such
that the "gcr" portion is common to both the base address variable & the
accessor function names.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16999/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mips-cm.h')
-rw-r--r-- | arch/mips/include/asm/mips-cm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/include/asm/mips-cm.h b/arch/mips/include/asm/mips-cm.h index cfdbab015769..a13d721669e6 100644 --- a/arch/mips/include/asm/mips-cm.h +++ b/arch/mips/include/asm/mips-cm.h @@ -17,7 +17,7 @@ #include <linux/types.h> /* The base address of the CM GCR block */ -extern void __iomem *mips_cm_base; +extern void __iomem *mips_gcr_base; /* The base address of the CM L2-only sync region */ extern void __iomem *mips_cm_l2sync_base; @@ -80,7 +80,7 @@ static inline int mips_cm_probe(void) static inline bool mips_cm_present(void) { #ifdef CONFIG_MIPS_CM - return mips_cm_base != NULL; + return mips_gcr_base != NULL; #else return false; #endif @@ -116,7 +116,7 @@ static inline bool mips_cm_has_l2sync(void) #define BUILD_CM_R_(name, off) \ static inline unsigned long __iomem *addr_gcr_##name(void) \ { \ - return (unsigned long __iomem *)(mips_cm_base + (off)); \ + return (unsigned long __iomem *)(mips_gcr_base + (off));\ } \ \ static inline u32 read32_gcr_##name(void) \ |