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

MIPS: BCM63XX: add support for "ipsec" clock

This module is only available on BCM6368 so far and does not require
resetting the block.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: mpm@selenic.com
Cc: herbert@gondor.apana.org.au
Patchwork: https://patchwork.linux-mips.org/patch/3324/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Florian Fainelli and committed by
Ralf Baechle
0b55561b a03822ea

+14
+14
arch/mips/bcm63xx/clk.c
··· 224 224 }; 225 225 226 226 /* 227 + * IPsec clock 228 + */ 229 + static void ipsec_set(struct clk *clk, int enable) 230 + { 231 + bcm_hwclock_set(CKCTL_6368_IPSEC_EN, enable); 232 + } 233 + 234 + static struct clk clk_ipsec = { 235 + .set = ipsec_set, 236 + }; 237 + 238 + /* 227 239 * Internal peripheral clock 228 240 */ 229 241 static struct clk clk_periph = { ··· 292 280 return &clk_periph; 293 281 if (BCMCPU_IS_6358() && !strcmp(id, "pcm")) 294 282 return &clk_pcm; 283 + if (BCMCPU_IS_6368() && !strcmp(id, "ipsec")) 284 + return &clk_ipsec; 295 285 return ERR_PTR(-ENOENT); 296 286 } 297 287