#define pr_fmt(fmt) …
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/of_address.h>
#include <linux/syscore_ops.h>
#include <linux/soc/brcmstb/brcmstb.h>
#define RACENPREF_MASK …
#define RACPREFINST_SHIFT …
#define RACENINST_SHIFT …
#define RACPREFDATA_SHIFT …
#define RACENDATA_SHIFT …
#define RAC_CPU_SHIFT …
#define RACCFG_MASK …
#define DPREF_LINE_2_SHIFT …
#define DPREF_LINE_2_MASK …
#define RAC_DATA_INST_EN_MASK …
#define CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK …
#define CPU_CREDIT_REG_MCPx_READ_CRED_MASK …
#define CPU_CREDIT_REG_MCPx_WRITE_CRED_MASK …
#define CPU_CREDIT_REG_MCPx_READ_CRED_SHIFT(x) …
#define CPU_CREDIT_REG_MCPx_WRITE_CRED_SHIFT(x) …
#define CPU_MCP_FLOW_REG_MCPx_RDBUFF_CRED_SHIFT(x) …
#define CPU_MCP_FLOW_REG_MCPx_RDBUFF_CRED_MASK …
#define CPU_WRITEBACK_CTRL_REG_WB_THROTTLE_THRESHOLD_MASK …
#define CPU_WRITEBACK_CTRL_REG_WB_THROTTLE_TIMEOUT_MASK …
#define CPU_WRITEBACK_CTRL_REG_WB_THROTTLE_TIMEOUT_SHIFT …
#define CPU_WRITEBACK_CTRL_REG_WB_THROTTLE_ENABLE …
static void __iomem *cpubiuctrl_base;
static bool mcp_wr_pairing_en;
static const int *cpubiuctrl_regs;
enum cpubiuctrl_regs { … };
static inline u32 cbc_readl(int reg)
{ … }
static inline void cbc_writel(u32 val, int reg)
{ … }
static const int b15_cpubiuctrl_regs[] = …;
static const int b53_cpubiuctrl_no_wb_regs[] = …;
static const int b53_cpubiuctrl_regs[] = …;
static const int a72_cpubiuctrl_regs[] = …;
static int __init mcp_write_pairing_set(void)
{ … }
static const u32 a72_b53_mach_compat[] = …;
static void __init a72_b53_rac_enable_all(struct device_node *np)
{ … }
static void __init mcp_a72_b53_set(void)
{ … }
static int __init setup_hifcpubiuctrl_regs(struct device_node *np)
{ … }
#ifdef CONFIG_PM_SLEEP
static u32 cpubiuctrl_reg_save[NUM_CPU_BIUCTRL_REGS];
static int brcmstb_cpu_credit_reg_suspend(void)
{ … }
static void brcmstb_cpu_credit_reg_resume(void)
{ … }
static struct syscore_ops brcmstb_cpu_credit_syscore_ops = …;
#endif
static int __init brcmstb_biuctrl_init(void)
{ … }
early_initcall(brcmstb_biuctrl_init);