linux-mips
[Top] [All Lists]

[PATCH 3/9] MIPS: BCM63XX: add BCM6368 SPI clock mask

To: ralf@linux-mips.org
Subject: [PATCH 3/9] MIPS: BCM63XX: add BCM6368 SPI clock mask
From: Florian Fainelli <florian@openwrt.org>
Date: Mon, 21 Nov 2011 10:14:15 +0100
Cc: linux-mips@linux-mips.org, Florian Fainelli <florian@openwrt.org>
In-reply-to: <1321866861-14340-1-git-send-email-florian@openwrt.org>
References: <1321866861-14340-1-git-send-email-florian@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
 arch/mips/bcm63xx/clk.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/mips/bcm63xx/clk.c b/arch/mips/bcm63xx/clk.c
index 9d57c71..9b548f8 100644
--- a/arch/mips/bcm63xx/clk.c
+++ b/arch/mips/bcm63xx/clk.c
@@ -181,9 +181,11 @@ static void spi_set(struct clk *clk, int enable)
                mask = CKCTL_6338_SPI_EN;
        else if (BCMCPU_IS_6348())
                mask = CKCTL_6348_SPI_EN;
-       else
-               /* BCMCPU_IS_6358 */
+       else if (BCMCPU_IS_6358())
                mask = CKCTL_6358_SPI_EN;
+       else
+               /* BCMCPU_IS_6368 */
+               mask = CKCTL_6368_SPI_CLK_EN;
        bcm_hwclock_set(mask, enable);
 }
 
-- 
1.7.5.4


<Prev in Thread] Current Thread [Next in Thread>