EDAC, fsl_ddr: Rename macros and names
Use FSL-specific prefix for macros, variables and functions. Signed-off-by: York Sun <york.sun@nxp.com> Cc: Johannes Thumshirn <morbidrsa@gmail.com> Cc: linux-edac <linux-edac@vger.kernel.org> Cc: oss@buserror.net Cc: stuart.yoder@nxp.com Link: http://lkml.kernel.org/r/1470779760-16483-5-git-send-email-york.sun@nxp.com Signed-off-by: Borislav Petkov <bp@suse.de>
This commit is contained in:

committed by
Borislav Petkov

parent
ea2eb9a8b6
commit
d43a9fb202
@@ -16,7 +16,7 @@
|
||||
#ifndef _FSL_DDR_EDAC_H_
|
||||
#define _FSL_DDR_EDAC_H_
|
||||
|
||||
#define mpc85xx_mc_printk(mci, level, fmt, arg...) \
|
||||
#define fsl_mc_printk(mci, level, fmt, arg...) \
|
||||
edac_mc_chipset_printk(mci, level, "FSL_DDR", fmt, ##arg)
|
||||
|
||||
/*
|
||||
@@ -24,26 +24,23 @@
|
||||
*/
|
||||
|
||||
/* DDR_SDRAM_CFG */
|
||||
#define MPC85XX_MC_DDR_SDRAM_CFG 0x0110
|
||||
#define MPC85XX_MC_CS_BNDS_0 0x0000
|
||||
#define MPC85XX_MC_CS_BNDS_1 0x0008
|
||||
#define MPC85XX_MC_CS_BNDS_2 0x0010
|
||||
#define MPC85XX_MC_CS_BNDS_3 0x0018
|
||||
#define MPC85XX_MC_CS_BNDS_OFS 0x0008
|
||||
#define FSL_MC_DDR_SDRAM_CFG 0x0110
|
||||
#define FSL_MC_CS_BNDS_0 0x0000
|
||||
#define FSL_MC_CS_BNDS_OFS 0x0008
|
||||
|
||||
#define MPC85XX_MC_DATA_ERR_INJECT_HI 0x0e00
|
||||
#define MPC85XX_MC_DATA_ERR_INJECT_LO 0x0e04
|
||||
#define MPC85XX_MC_ECC_ERR_INJECT 0x0e08
|
||||
#define MPC85XX_MC_CAPTURE_DATA_HI 0x0e20
|
||||
#define MPC85XX_MC_CAPTURE_DATA_LO 0x0e24
|
||||
#define MPC85XX_MC_CAPTURE_ECC 0x0e28
|
||||
#define MPC85XX_MC_ERR_DETECT 0x0e40
|
||||
#define MPC85XX_MC_ERR_DISABLE 0x0e44
|
||||
#define MPC85XX_MC_ERR_INT_EN 0x0e48
|
||||
#define MPC85XX_MC_CAPTURE_ATRIBUTES 0x0e4c
|
||||
#define MPC85XX_MC_CAPTURE_ADDRESS 0x0e50
|
||||
#define MPC85XX_MC_CAPTURE_EXT_ADDRESS 0x0e54
|
||||
#define MPC85XX_MC_ERR_SBE 0x0e58
|
||||
#define FSL_MC_DATA_ERR_INJECT_HI 0x0e00
|
||||
#define FSL_MC_DATA_ERR_INJECT_LO 0x0e04
|
||||
#define FSL_MC_ECC_ERR_INJECT 0x0e08
|
||||
#define FSL_MC_CAPTURE_DATA_HI 0x0e20
|
||||
#define FSL_MC_CAPTURE_DATA_LO 0x0e24
|
||||
#define FSL_MC_CAPTURE_ECC 0x0e28
|
||||
#define FSL_MC_ERR_DETECT 0x0e40
|
||||
#define FSL_MC_ERR_DISABLE 0x0e44
|
||||
#define FSL_MC_ERR_INT_EN 0x0e48
|
||||
#define FSL_MC_CAPTURE_ATRIBUTES 0x0e4c
|
||||
#define FSL_MC_CAPTURE_ADDRESS 0x0e50
|
||||
#define FSL_MC_CAPTURE_EXT_ADDRESS 0x0e54
|
||||
#define FSL_MC_ERR_SBE 0x0e58
|
||||
|
||||
#define DSC_MEM_EN 0x80000000
|
||||
#define DSC_ECC_EN 0x20000000
|
||||
@@ -75,12 +72,12 @@
|
||||
#define DDR_EDI_SBED 0x4 /* single-bit ECC error disable */
|
||||
#define DDR_EDI_MBED 0x8 /* multi-bit ECC error disable */
|
||||
|
||||
struct mpc85xx_mc_pdata {
|
||||
struct fsl_mc_pdata {
|
||||
char *name;
|
||||
int edac_idx;
|
||||
void __iomem *mc_vbase;
|
||||
int irq;
|
||||
};
|
||||
int mpc85xx_mc_err_probe(struct platform_device *op);
|
||||
int mpc85xx_mc_err_remove(struct platform_device *op);
|
||||
int fsl_mc_err_probe(struct platform_device *op);
|
||||
int fsl_mc_err_remove(struct platform_device *op);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user