#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/mod_devicetable.h>
#include <linux/of_platform.h>
#include <linux/of_device.h>
#include <linux/of_address.h>
#include "fsl_ddr_edac.h"
#define EDAC_MOD_STR "fsl_ddr_edac"
static u32 orig_ddr_err_disable;
static u32 orig_ddr_err_sbe;
static bool little_endian;
static inline u32 ddr_in32(void __iomem *addr)
return little_endian ? ioread32(addr) : ioread32be(addr);
static inline void ddr_out32(void __iomem *addr, u32 value)
iowrite32be(value, addr);
#define to_mci(k) container_of(k, struct mem_ctl_info, dev)
static ssize_t fsl_mc_inject_data_hi_show(struct device *dev,
struct device_attribute *mattr,
struct mem_ctl_info *mci = to_mci(dev);