From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Ss7uh-0005cv-9l for barebox@lists.infradead.org; Fri, 20 Jul 2012 07:46:18 +0000 Date: Fri, 20 Jul 2012 09:46:11 +0200 From: Sascha Hauer Message-ID: <20120720074611.GL30009@pengutronix.de> References: <1342711817-866-1-git-send-email-shc_work@mail.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1342711817-866-1-git-send-email-shc_work@mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/6] mc13xxx: Define maximum SPI clock frequency global to driver To: Alexander Shiyan Cc: barebox@lists.infradead.org Hi Alexander, Applied these except 1/6 and 3/6 which have open comments. Sascha On Thu, Jul 19, 2012 at 07:30:12PM +0400, Alexander Shiyan wrote: > This patch provide setup for SPI clk frequency global to driver. > For MC13783 maximum clock frequency is 20 MHz, > for MC13892 maximum clock frequency is 26 MHz, > so we define 20 MHz as a maximum SPI clk. > > Signed-off-by: Alexander Shiyan > --- > arch/arm/boards/ccxmx51/ccxmx51.c | 1 - > arch/arm/boards/freescale-mx51-pdk/board.c | 1 - > arch/arm/boards/pcm038/pcm038.c | 1 - > drivers/mfd/mc13xxx.c | 1 + > 4 files changed, 1 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c > index f494174..f309e0c 100644 > --- a/arch/arm/boards/ccxmx51/ccxmx51.c > +++ b/arch/arm/boards/ccxmx51/ccxmx51.c > @@ -191,7 +191,6 @@ static struct spi_imx_master ecspi_0_data = { > static const struct spi_board_info ccxmx51_spi_board_info[] = { > { > .name = "mc13xxx-spi", > - .max_speed_hz = 6000000, > .bus_num = 0, > .chip_select = 0, > }, > diff --git a/arch/arm/boards/freescale-mx51-pdk/board.c b/arch/arm/boards/freescale-mx51-pdk/board.c > index 3a568d0..7c2c8fe 100644 > --- a/arch/arm/boards/freescale-mx51-pdk/board.c > +++ b/arch/arm/boards/freescale-mx51-pdk/board.c > @@ -117,7 +117,6 @@ static struct spi_imx_master spi_0_data = { > static const struct spi_board_info mx51_babbage_spi_board_info[] = { > { > .name = "mc13xxx-spi", > - .max_speed_hz = 300000, > .bus_num = 0, > .chip_select = 0, > }, > diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c > index badc978..fa82b02 100644 > --- a/arch/arm/boards/pcm038/pcm038.c > +++ b/arch/arm/boards/pcm038/pcm038.c > @@ -59,7 +59,6 @@ static struct spi_imx_master pcm038_spi_0_data = { > static struct spi_board_info pcm038_spi_board_info[] = { > { > .name = "mc13xxx-spi", > - .max_speed_hz = 3000000, > .bus_num = 0, > .chip_select = 0, > } > diff --git a/drivers/mfd/mc13xxx.c b/drivers/mfd/mc13xxx.c > index 2934e9d..8bb0d00 100644 > --- a/drivers/mfd/mc13xxx.c > +++ b/drivers/mfd/mc13xxx.c > @@ -297,6 +297,7 @@ static int mc_probe(struct device_d *dev, enum mc13xxx_mode mode) > mc_dev->spi = dev->type_data; > mc_dev->spi->mode = SPI_MODE_0 | SPI_CS_HIGH; > mc_dev->spi->bits_per_word = 32; > + mc_dev->spi->max_speed_hz = 20000000; > } > mc_dev->cdev.size = 256; > mc_dev->cdev.dev = dev; > -- > 1.7.3.4 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox