1 From 0fec0136456ce214ea4df6b8ff3b3728befc816a Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <florian@openwrt.org>
3 Date: Tue, 31 Jan 2012 15:12:22 +0100
4 Subject: [PATCH 3/6] MIPS: BCM63XX: add support for "ipsec" clock
6 This module is only available on BCM6368 so far and does not require
9 Signed-off-by: Florian Fainelli <florian@openwrt.org>
10 Cc: linux-mips@linux-mips.org
12 Cc: herbert@gondor.apana.org.au
13 Patchwork: https://patchwork.linux-mips.org/patch/3324/
14 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 arch/mips/bcm63xx/clk.c | 14 ++++++++++++++
17 1 files changed, 14 insertions(+), 0 deletions(-)
19 --- a/arch/mips/bcm63xx/clk.c
20 +++ b/arch/mips/bcm63xx/clk.c
21 @@ -224,6 +224,18 @@ static struct clk clk_xtm = {
27 +static void ipsec_set(struct clk *clk, int enable)
29 + bcm_hwclock_set(CKCTL_6368_IPSEC_EN, enable);
32 +static struct clk clk_ipsec = {
37 * Internal peripheral clock
39 static struct clk clk_periph = {
40 @@ -280,6 +292,8 @@ struct clk *clk_get(struct device *dev,
42 if (BCMCPU_IS_6358() && !strcmp(id, "pcm"))
44 + if (BCMCPU_IS_6368() && !strcmp(id, "ipsec"))
46 return ERR_PTR(-ENOENT);