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

soc: bcm: brcmstb: biuctrl: Update programming for 7211

Add a matching entry for 7211 which can be programmed with the same
BIUCTRL settings as other Brahma-B53 based SoCs. While at it, rename the
function to include a72 in the name to reflect this applies to both
types of 64-bit capable CPUs that we support (Brahma-B53 and
Cortex-A72).

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

+7 -6
+7 -6
drivers/soc/bcm/brcmstb/biuctrl.c
··· 107 107 return 0; 108 108 } 109 109 110 - static const u32 b53_mach_compat[] = { 110 + static const u32 a72_b53_mach_compat[] = { 111 + 0x7211, 111 112 0x7216, 112 113 0x7255, 113 114 0x7260, ··· 117 116 0x7278, 118 117 }; 119 118 120 - static void __init mcp_b53_set(void) 119 + static void __init mcp_a72_b53_set(void) 121 120 { 122 121 unsigned int i; 123 122 u32 reg; 124 123 125 124 reg = brcmstb_get_family_id(); 126 125 127 - for (i = 0; i < ARRAY_SIZE(b53_mach_compat); i++) { 128 - if (BRCM_ID(reg) == b53_mach_compat[i]) 126 + for (i = 0; i < ARRAY_SIZE(a72_b53_mach_compat); i++) { 127 + if (BRCM_ID(reg) == a72_b53_mach_compat[i]) 129 128 break; 130 129 } 131 130 132 - if (i == ARRAY_SIZE(b53_mach_compat)) 131 + if (i == ARRAY_SIZE(a72_b53_mach_compat)) 133 132 return; 134 133 135 134 /* Set all 3 MCP interfaces to 8 credits */ ··· 262 261 return ret; 263 262 } 264 263 265 - mcp_b53_set(); 264 + mcp_a72_b53_set(); 266 265 #ifdef CONFIG_PM_SLEEP 267 266 register_syscore_ops(&brcmstb_cpu_credit_syscore_ops); 268 267 #endif