| .. | .. |
|---|
| 2 | 2 | * Freescale Memory Controller kernel module |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * Support Power-based SoCs including MPC85xx, MPC86xx, MPC83xx and |
|---|
| 5 | | - * ARM-based Layerscape SoCs including LS2xxx. Originally split |
|---|
| 6 | | - * out from mpc85xx_edac EDAC driver. |
|---|
| 5 | + * ARM-based Layerscape SoCs including LS2xxx and LS1021A. Originally |
|---|
| 6 | + * split out from mpc85xx_edac EDAC driver. |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Parts Copyrighted (c) 2013 by Freescale Semiconductor, Inc. |
|---|
| 9 | 9 | * |
|---|
| .. | .. |
|---|
| 51 | 51 | iowrite32be(value, addr); |
|---|
| 52 | 52 | } |
|---|
| 53 | 53 | |
|---|
| 54 | +#ifdef CONFIG_EDAC_DEBUG |
|---|
| 54 | 55 | /************************ MC SYSFS parts ***********************************/ |
|---|
| 55 | 56 | |
|---|
| 56 | 57 | #define to_mci(k) container_of(k, struct mem_ctl_info, dev) |
|---|
| .. | .. |
|---|
| 151 | 152 | fsl_mc_inject_data_lo_show, fsl_mc_inject_data_lo_store); |
|---|
| 152 | 153 | static DEVICE_ATTR(inject_ctrl, S_IRUGO | S_IWUSR, |
|---|
| 153 | 154 | fsl_mc_inject_ctrl_show, fsl_mc_inject_ctrl_store); |
|---|
| 155 | +#endif /* CONFIG_EDAC_DEBUG */ |
|---|
| 154 | 156 | |
|---|
| 155 | 157 | static struct attribute *fsl_ddr_dev_attrs[] = { |
|---|
| 158 | +#ifdef CONFIG_EDAC_DEBUG |
|---|
| 156 | 159 | &dev_attr_inject_data_hi.attr, |
|---|
| 157 | 160 | &dev_attr_inject_data_lo.attr, |
|---|
| 158 | 161 | &dev_attr_inject_ctrl.attr, |
|---|
| 162 | +#endif |
|---|
| 159 | 163 | NULL |
|---|
| 160 | 164 | }; |
|---|
| 161 | 165 | |
|---|