iwinfo: don't use the txpower value from debugfs for now, it does not match the value...
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 005-MIPS-BCM63XX-add-BCM6368-SPI-clock-mask.patch
1 From 9b990ee00f70bdd6a731dbe264d5acb453a6c5e2 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <florian@openwrt.org>
3 Date: Wed, 25 Jan 2012 17:39:57 +0100
4 Subject: [PATCH 07/63] MIPS: BCM63XX: add BCM6368 SPI clock mask
5
6 Signed-off-by: Florian Fainelli <florian@openwrt.org>
7 ---
8 arch/mips/bcm63xx/clk.c | 6 ++++--
9 1 files changed, 4 insertions(+), 2 deletions(-)
10
11 --- a/arch/mips/bcm63xx/clk.c
12 +++ b/arch/mips/bcm63xx/clk.c
13 @@ -181,9 +181,11 @@ static void spi_set(struct clk *clk, int
14 mask = CKCTL_6338_SPI_EN;
15 else if (BCMCPU_IS_6348())
16 mask = CKCTL_6348_SPI_EN;
17 - else
18 - /* BCMCPU_IS_6358 */
19 + else if (BCMCPU_IS_6358())
20 mask = CKCTL_6358_SPI_EN;
21 + else
22 + /* BCMCPU_IS_6368 */
23 + mask = CKCTL_6368_SPI_EN;
24 bcm_hwclock_set(mask, enable);
25 }
26