diff options
author | Jonas Gorski <jogo@openwrt.org> | 2012-07-03 21:42:07 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2012-07-03 21:42:07 +0000 |
commit | 297078e82c005275159c5b9c768ad3d2b03a6073 (patch) | |
tree | d1dd3b8f4e5289e213cdfe3344f74d72aaf01212 /target/linux/brcm63xx/patches-3.3/018-MIPS-BCM63XX-add-support-for-ipsec-clock.patch | |
parent | e6d44db12bccb96777c5b3acbe3bf7deedf31dbb (diff) | |
download | master-187ad058-297078e82c005275159c5b9c768ad3d2b03a6073.tar.gz master-187ad058-297078e82c005275159c5b9c768ad3d2b03a6073.tar.bz2 master-187ad058-297078e82c005275159c5b9c768ad3d2b03a6073.zip |
bcm63xx: update patches to latest upstream versions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32591 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-3.3/018-MIPS-BCM63XX-add-support-for-ipsec-clock.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.3/018-MIPS-BCM63XX-add-support-for-ipsec-clock.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-3.3/018-MIPS-BCM63XX-add-support-for-ipsec-clock.patch b/target/linux/brcm63xx/patches-3.3/018-MIPS-BCM63XX-add-support-for-ipsec-clock.patch new file mode 100644 index 0000000000..6fffc1925e --- /dev/null +++ b/target/linux/brcm63xx/patches-3.3/018-MIPS-BCM63XX-add-support-for-ipsec-clock.patch @@ -0,0 +1,48 @@ +From 0fec0136456ce214ea4df6b8ff3b3728befc816a Mon Sep 17 00:00:00 2001 +From: Florian Fainelli <florian@openwrt.org> +Date: Tue, 31 Jan 2012 15:12:22 +0100 +Subject: [PATCH 3/6] 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> +--- + arch/mips/bcm63xx/clk.c | 14 ++++++++++++++ + 1 files changed, 14 insertions(+), 0 deletions(-) + +--- a/arch/mips/bcm63xx/clk.c ++++ b/arch/mips/bcm63xx/clk.c +@@ -224,6 +224,18 @@ static struct clk clk_xtm = { + }; + + /* ++ * IPsec clock ++ */ ++static void ipsec_set(struct clk *clk, int enable) ++{ ++ bcm_hwclock_set(CKCTL_6368_IPSEC_EN, enable); ++} ++ ++static struct clk clk_ipsec = { ++ .set = ipsec_set, ++}; ++ ++/* + * Internal peripheral clock + */ + static struct clk clk_periph = { +@@ -280,6 +292,8 @@ struct clk *clk_get(struct device *dev, + return &clk_periph; + if (BCMCPU_IS_6358() && !strcmp(id, "pcm")) + return &clk_pcm; ++ if (BCMCPU_IS_6368() && !strcmp(id, "ipsec")) ++ return &clk_ipsec; + return ERR_PTR(-ENOENT); + } + |