Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: bcm: brcmstb: biuctrl: Update layout for A72 on 7211

The BIUCTRL layout is a little different on 7211 which is equipped with
a Cortex-A72, account for those register offset differences. We will
match 7211 specifically in a subsequent commit.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

+8
+8
drivers/soc/bcm/brcmstb/biuctrl.c
··· 76 76 [CPU_WRITEBACK_CTRL_REG] = 0x22c, 77 77 }; 78 78 79 + static const int a72_cpubiuctrl_regs[] = { 80 + [CPU_CREDIT_REG] = 0x18, 81 + [CPU_MCP_FLOW_REG] = 0x1c, 82 + [CPU_WRITEBACK_CTRL_REG] = 0x20, 83 + }; 84 + 79 85 #define NUM_CPU_BIUCTRL_REGS 3 80 86 81 87 static int __init mcp_write_pairing_set(void) ··· 189 183 cpubiuctrl_regs = b15_cpubiuctrl_regs; 190 184 else if (of_device_is_compatible(cpu_dn, "brcm,brahma-b53")) 191 185 cpubiuctrl_regs = b53_cpubiuctrl_regs; 186 + else if (of_device_is_compatible(cpu_dn, "arm,cortex-a72")) 187 + cpubiuctrl_regs = a72_cpubiuctrl_regs; 192 188 else { 193 189 pr_err("unsupported CPU\n"); 194 190 ret = -EINVAL;