Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751879AbbGLKyq (ORCPT ); Sun, 12 Jul 2015 06:54:46 -0400 Received: from ms1.cdi.cz ([93.90.167.38]:43087 "EHLO ms1.cdi.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbbGLKyn (ORCPT ); Sun, 12 Jul 2015 06:54:43 -0400 Message-Id: From: Martin Devera Date: Sun, 12 Jul 2015 11:25:37 +0200 Subject: [PATCH 2/2] Add clock support for NXP LPC32XX SPI X-CDI-Malware-Check: OK X-Spam-Score: -1.4 (-) To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1734 Lines: 51 Clock support for SPIs on LPC32XX SoC. --- arch/arm/mach-lpc32xx/clock.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c index dd5d6f5..672c9b3 100644 --- a/arch/arm/mach-lpc32xx/clock.c +++ b/arch/arm/mach-lpc32xx/clock.c @@ -683,6 +683,24 @@ static struct clk clk_i2c2 = { .get_rate = local_return_parent_rate, }; +static struct clk clk_spi1 = { + .parent = &clk_hclk, + .enable = local_onoff_enable, + .enable_reg = LPC32XX_CLKPWR_SPI_CLK_CTRL, + .enable_mask = LPC32XX_CLKPWR_SPICLK_SPI1CLK_EN| + LPC32XX_CLKPWR_SPICLK_USE_SPI1, + .get_rate = local_return_parent_rate, +}; + +static struct clk clk_spi2 = { + .parent = &clk_hclk, + .enable = local_onoff_enable, + .enable_reg = LPC32XX_CLKPWR_SPI_CLK_CTRL, + .enable_mask = LPC32XX_CLKPWR_SPICLK_SPI2CLK_EN| + LPC32XX_CLKPWR_SPICLK_USE_SPI2, + .get_rate = local_return_parent_rate, +}; + static struct clk clk_ssp0 = { .parent = &clk_hclk, .enable = local_onoff_enable, @@ -1217,6 +1235,8 @@ static struct clk_lookup lookups[] = { CLKDEV_INIT("400a0000.i2c", NULL, &clk_i2c0), CLKDEV_INIT("400a8000.i2c", NULL, &clk_i2c1), CLKDEV_INIT("31020300.i2c", NULL, &clk_i2c2), + CLKDEV_INIT("20088000.spi", NULL, &clk_spi1), + CLKDEV_INIT("20090000.spi", NULL, &clk_spi2), CLKDEV_INIT("dev:ssp0", NULL, &clk_ssp0), CLKDEV_INIT("dev:ssp1", NULL, &clk_ssp1), CLKDEV_INIT("40050000.key", NULL, &clk_kscan), -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/