Re: [PATCH 05/10] mmc: spi: Pull out the SSP clock configuration function
Good morning Marek, On Tue, 17 Jul 2012 23:48:34 +0200 Marek Vasut wrote: > > There is a EXPORT_SYMBOL_GPL(mxs_ssp_set_clk_rate); missing here. > > What for? To be able to compile mxs-mmc as a module Attila Kinali -- Why does it take years to find the answers to the questions one should have asked long ago? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
-50% sur Toute la Collection ? 3eme Demarque des SOLDES jusqu?au 31 juillet 2012
CHEVIGNON > Version en ligne : http://p5trc.emv2.com/HM?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhY_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEU > Lire sur mobile : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhYfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEa Chevignon : -50% sur Toute la Collection ? 3ème Démarque des SOLDES jusqu'au 31 juillet 2012 : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhZvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEb Homme : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhZ_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEY | Femme : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhZPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEZ | Cuirs : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhZfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEe | Blousons : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhevcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEf | T-shirts : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhe_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEc | Polos : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhePcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEd | Pantalons : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhefcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEi | Bermudas : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhfvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEj | Maillots de Bain : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhf_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEg http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhfPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEh http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhffcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEm http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhcvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEn http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhc_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEk http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhcPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEl http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhcfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEq SUIVI DE COMMANDE LIVRAISON GRATUITE ECHANGE EN MAGASIN SATISFAIT OU REMBOURSE PAIEMENT SECURISE Cuir : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhdvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEr | Blousons : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhd_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEo | Pulls : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhdPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEp | Polos : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhdfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEu | T-shirts : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhCvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEv | Chemises : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhC_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEs | Pantalons : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhCPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEt | Chaussures : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhCfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEy | Accessoires : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhDvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEz | Femme : http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhD_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEw http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhDPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlEx http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhDfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE2 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhAvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE3 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhA_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE0 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhAPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE1 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhAfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE6 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhBvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE7 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhB_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE4 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhBPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE5 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhBfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE- http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhGvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE_ http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhG_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE8 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhGPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlE9 http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhGfcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlFC http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhHvcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlFD http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhH_cStGb5lw8W0bBhOG5mpqVsje_HhdA5HlFA http://p5trc.emv2.com/HS?a=ENX7CqmVXCyi8SA9MKJE8bDnGHxKLHfhHPcStGb5lw8W0bBhOG5mpqVsje_HhdA5HlFB
Votre devis alarme est disponible
Pour voir le message, veuillez utiliser un lecteur de mail compatible HTML Lien miroir : http://m10-fr.com/mc10_m/YT0xMyZiPTE2MDU0JmM9NDgzNjEyJmQ9MjAxMi0wNy0xOCAwNjozMDowMSZlPTEmaD0xNjA1MyZmPTE2MDU0Jmc9MTYwNTQ= Lien de désinscription : http://m10-fr.com/mc10_unsub/YT0xMyZiPTE2MDU0JmM9NDgzNjEyJmQ9MjAxMi0wNy0xOCAwNjozMDowMSZlPTEmaD0xNjA1MyZmPTE2MDU0Jmc9MTYwNTQ= -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
-80% sur des bagages de grandes marques
Pour voir le message, veuillez utiliser un lecteur de mail compatible HTML Lien miroir : http://m10-fr.com/mc10_m/YT0xMyZiPTE2MDIwJmM9NDgzNjEyJmQ9MjAxMi0wNy0xNyAyMTo0MDowMSZlPTEmaD0xNjAxOSZmPTE2MDIwJmc9MTYwMjA= Lien de désinscription : http://m10-fr.com/mc10_unsub/YT0xMyZiPTE2MDIwJmM9NDgzNjEyJmQ9MjAxMi0wNy0xNyAyMTo0MDowMSZlPTEmaD0xNjAxOSZmPTE2MDIwJmc9MTYwMjA= -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: [PATCH] spi/mpc8xxx:Fix the wrong pointer of getting the platform data
Hi all, I'm sorry, this patch is invalid, please ignore it, I will resend a new patch base on the last tree. Thanks. -- Best Regards, Jiucheng On Tue, 2012-06-26 at 10:32 +0800, Xu Jiucheng wrote: > In the spi_alloc_device(), the parent pointer of spi deivce has > been changed from master->dev.parent to &master->dev for device > unregistration, so the pointer of getting the platform data as > this 'spi->dev.parent->platform_data' is wrong. > > Signed-off-by: Xu Jiucheng > --- > drivers/spi/spi_fsl_spi.c |5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/spi/spi_fsl_spi.c b/drivers/spi/spi_fsl_spi.c > index 7963c9b..7d164d3 100644 > --- a/drivers/spi/spi_fsl_spi.c > +++ b/drivers/spi/spi_fsl_spi.c > @@ -139,7 +139,7 @@ static void fsl_spi_change_mode(struct spi_device *spi) > static void fsl_spi_chipselect(struct spi_device *spi, int value) > { > struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); > - struct fsl_spi_platform_data *pdata = spi->dev.parent->platform_data; > + struct fsl_spi_platform_data *pdata = mpc8xxx_spi->dev->platform_data; > bool pol = spi->mode & SPI_CS_HIGH; > struct spi_mpc8xxx_cs *cs = spi->controller_state; > > @@ -934,7 +934,8 @@ err: > > static void fsl_spi_cs_control(struct spi_device *spi, bool on) > { > - struct device *dev = spi->dev.parent; > + struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); > + struct device *dev = mpc8xxx_spi->dev; > struct mpc8xxx_spi_probe_info *pinfo = to_of_pinfo(dev->platform_data); > u16 cs = spi->chip_select; > int gpio = pinfo->gpios[cs]; -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: [PATCH] spi/mpc8xxx:Fix the wrong pointer of getting the platform data
Hi All, I'm sorry, please ignore this patch. -- Best Regards, Jiucheng On Tue, 2012-06-26 at 10:32 +0800, Xu Jiucheng wrote: > In the spi_alloc_device(), the parent pointer of spi deivce has > been changed from master->dev.parent to &master->dev for device > unregistration, so the pointer of getting the platform data as > this 'spi->dev.parent->platform_data' is wrong. > > Signed-off-by: Xu Jiucheng > --- > drivers/spi/spi_fsl_spi.c |5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/spi/spi_fsl_spi.c b/drivers/spi/spi_fsl_spi.c > index 7963c9b..7d164d3 100644 > --- a/drivers/spi/spi_fsl_spi.c > +++ b/drivers/spi/spi_fsl_spi.c > @@ -139,7 +139,7 @@ static void fsl_spi_change_mode(struct spi_device *spi) > static void fsl_spi_chipselect(struct spi_device *spi, int value) > { > struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); > - struct fsl_spi_platform_data *pdata = spi->dev.parent->platform_data; > + struct fsl_spi_platform_data *pdata = mpc8xxx_spi->dev->platform_data; > bool pol = spi->mode & SPI_CS_HIGH; > struct spi_mpc8xxx_cs *cs = spi->controller_state; > > @@ -934,7 +934,8 @@ err: > > static void fsl_spi_cs_control(struct spi_device *spi, bool on) > { > - struct device *dev = spi->dev.parent; > + struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); > + struct device *dev = mpc8xxx_spi->dev; > struct mpc8xxx_spi_probe_info *pinfo = to_of_pinfo(dev->platform_data); > u16 cs = spi->chip_select; > int gpio = pinfo->gpios[cs]; -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: [PATCH 00/10] MXS SPI driver
Dear Mark Brown, > On Mon, Jul 16, 2012 at 02:09:47PM +0200, Marek Vasut wrote: > > This patchset adds SPI master support for Freescale i.MX233/i.MX28. > > This is rebased on top of next-20120713. Please consider applying, > > bugs shall now be squashed during the previous two review rounds. > > Always CC maintainers, and in this case me as well (I'm collecting SPI > patches for this release since Grant's mostly offline). Ah, I wasn't aware you're the SPI maintainer now. Sorry about that. Will do if there's a rework requested. Best regards, Marek Vasut -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: [PATCH 05/10] mmc: spi: Pull out the SSP clock configuration function
Dear Attila Kinali, > On Mon, 16 Jul 2012 14:09:52 +0200 > > Marek Vasut wrote: > > Pull out the MMC clock configuration function and make it > > into SSP clock configuration function, so it can be used by > > the SPI driver too. > > > > diff --git a/drivers/clk/mxs/clk-ssp.c b/drivers/clk/mxs/clk-ssp.c > > new file mode 100644 > > index 000..b3c1e16 > > --- /dev/null > > +++ b/drivers/clk/mxs/clk-ssp.c > > @@ -0,0 +1,61 @@ > > +/* > > + * Copyright 2012 DENX Software Engineering, GmbH > > + * > > + * Pulled from code: > > + * Portions copyright (C) 2003 Russell King, PXA MMCI Driver > > + * Portions copyright (C) 2004-2005 Pierre Ossman, W83L51xD SD/MMC > > driver + * > > + * Copyright 2008 Embedded Alley Solutions, Inc. > > + * Copyright 2009-2011 Freescale Semiconductor, Inc. > > + * > > + * The code contained herein is licensed under the GNU General Public > > + * License. You may obtain a copy of the GNU General Public License > > + * Version 2 or later at the following locations: > > + * > > + * http://www.opensource.org/licenses/gpl-license.html > > + * http://www.gnu.org/copyleft/gpl.html > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate) > > +{ > > + unsigned int ssp_clk, ssp_sck; > > + u32 clock_divide, clock_rate; > > + u32 val; > > + > > + ssp_clk = clk_get_rate(ssp->clk); > > + > > + for (clock_divide = 2; clock_divide <= 254; clock_divide += 2) { > > + clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide); > > + clock_rate = (clock_rate > 0) ? clock_rate - 1 : 0; > > + if (clock_rate <= 255) > > + break; > > + } > > + > > + if (clock_divide > 254) { > > + dev_err(ssp->dev, > > + "%s: cannot set clock to %d\n", __func__, rate); > > + return; > > + } > > + > > + ssp_sck = ssp_clk / clock_divide / (1 + clock_rate); > > + > > + val = readl(ssp->base + HW_SSP_TIMING(ssp)); > > + val &= ~(BM_SSP_TIMING_CLOCK_DIVIDE | BM_SSP_TIMING_CLOCK_RATE); > > + val |= BF_SSP(clock_divide, TIMING_CLOCK_DIVIDE); > > + val |= BF_SSP(clock_rate, TIMING_CLOCK_RATE); > > + writel(val, ssp->base + HW_SSP_TIMING(ssp)); > > + > > + ssp->clk_rate = ssp_sck; > > + > > + dev_dbg(ssp->dev, > > + "%s: clock_divide %d, clock_rate %d, ssp_clk %d, rate_actual %d, > > rate_requested %d\n", + __func__, clock_divide, clock_rate, ssp_clk, > > ssp_sck, rate); > > +} > > There is a EXPORT_SYMBOL_GPL(mxs_ssp_set_clk_rate); missing here. What for? Best regards, Marek Vasut -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: [PATCH 00/10] MXS SPI driver
On Mon, Jul 16, 2012 at 02:09:47PM +0200, Marek Vasut wrote: > This patchset adds SPI master support for Freescale i.MX233/i.MX28. > This is rebased on top of next-20120713. Please consider applying, > bugs shall now be squashed during the previous two review rounds. Always CC maintainers, and in this case me as well (I'm collecting SPI patches for this release since Grant's mostly offline). -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: [PATCH 05/10] mmc: spi: Pull out the SSP clock configuration function
On Mon, 16 Jul 2012 14:09:52 +0200 Marek Vasut wrote: > Pull out the MMC clock configuration function and make it > into SSP clock configuration function, so it can be used by > the SPI driver too. > diff --git a/drivers/clk/mxs/clk-ssp.c b/drivers/clk/mxs/clk-ssp.c > new file mode 100644 > index 000..b3c1e16 > --- /dev/null > +++ b/drivers/clk/mxs/clk-ssp.c > @@ -0,0 +1,61 @@ > +/* > + * Copyright 2012 DENX Software Engineering, GmbH > + * > + * Pulled from code: > + * Portions copyright (C) 2003 Russell King, PXA MMCI Driver > + * Portions copyright (C) 2004-2005 Pierre Ossman, W83L51xD SD/MMC driver > + * > + * Copyright 2008 Embedded Alley Solutions, Inc. > + * Copyright 2009-2011 Freescale Semiconductor, Inc. > + * > + * The code contained herein is licensed under the GNU General Public > + * License. You may obtain a copy of the GNU General Public License > + * Version 2 or later at the following locations: > + * > + * http://www.opensource.org/licenses/gpl-license.html > + * http://www.gnu.org/copyleft/gpl.html > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate) > +{ > + unsigned int ssp_clk, ssp_sck; > + u32 clock_divide, clock_rate; > + u32 val; > + > + ssp_clk = clk_get_rate(ssp->clk); > + > + for (clock_divide = 2; clock_divide <= 254; clock_divide += 2) { > + clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide); > + clock_rate = (clock_rate > 0) ? clock_rate - 1 : 0; > + if (clock_rate <= 255) > + break; > + } > + > + if (clock_divide > 254) { > + dev_err(ssp->dev, > + "%s: cannot set clock to %d\n", __func__, rate); > + return; > + } > + > + ssp_sck = ssp_clk / clock_divide / (1 + clock_rate); > + > + val = readl(ssp->base + HW_SSP_TIMING(ssp)); > + val &= ~(BM_SSP_TIMING_CLOCK_DIVIDE | BM_SSP_TIMING_CLOCK_RATE); > + val |= BF_SSP(clock_divide, TIMING_CLOCK_DIVIDE); > + val |= BF_SSP(clock_rate, TIMING_CLOCK_RATE); > + writel(val, ssp->base + HW_SSP_TIMING(ssp)); > + > + ssp->clk_rate = ssp_sck; > + > + dev_dbg(ssp->dev, > + "%s: clock_divide %d, clock_rate %d, ssp_clk %d, rate_actual > %d, rate_requested %d\n", > + __func__, clock_divide, clock_rate, ssp_clk, ssp_sck, rate); > +} There is a EXPORT_SYMBOL_GPL(mxs_ssp_set_clk_rate); missing here. Attila Kinali -- The trouble with you, Shev, is you don't say anything until you've saved up a whole truckload of damned heavy brick arguments and then you dump them all out and never look at the bleeding body mangled beneath the heap -- Tirin, The Dispossessed, U. Le Guin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
[SPAM] Bolsas Michael Kors e Gucci 179 | Relogio Rolex 269
Seu cliente de e-mail não pode ler este e-mail. Para visualizá-lo on-line, por favor, clique aqui: http://www.painelmobydick.info/display.php?M=640797&C=c0b33cf50ad8574b1917f00d93b61989&S=175&L=7&N=6 Para parar de receber nossos Emails:http://www.painelmobydick.info/unsubscribe.php?M=640797&C=c0b33cf50ad8574b1917f00d93b61989&L=7&N=175 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: Linux SPI slave support
On Tue, Jul 17, 2012 at 2:22 PM, Marek Vasut wrote: > Dear Shubhrajyoti Datta, > >> On Mon, Jul 16, 2012 at 5:56 AM, Marek Vasut wrote: >> > Dear Shubhrajyoti Datta, [..] >> The other option is to have something like a gpio for synchronization. > > Synchronisation of what exactly? With my hardware (that doesn't exist yet I > guess), the idea is to simply cross-connect the MISO/MOSI pins and connect the > CLK signal. Is that possible btw? IIUC , the clock is to be driven by master. The slave gets the clock. Master knows when to start and stop the transaction. However for the slave the options are to 1) Keep listening always. 2) Use something to syncronize( I may have used the word loosely) master and slave. So that it doesnt have to listen always. Btw it is just a suggestion. I am not opposed to any other implementation. Thanks and Regards, > > Thanks! > -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: Linux SPI slave support
Dear Shubhrajyoti Datta, > On Mon, Jul 16, 2012 at 5:56 AM, Marek Vasut wrote: > > Dear Shubhrajyoti Datta, > > > >> Hello, > >> > >> On Sat, Jun 30, 2012 at 8:45 AM, Marek Vasut wrote: > >> > Hello, > >> > > >> > is there currently any ongoing effort to support SPI slave mode in > >> > Linux? > >> > > >> > If there is none, could you please share any hints that might help me > >> > better choose and go in the direction of implementing the SPI slave > >> > support? > >> > >> May be you may want to check the archives. > >> You may want to see below before designing. > >> > >> http://permalink.gmane.org/gmane.linux.kernel.spi.devel/7495 > > > > [...] > > > > So, idea V2: > > > > 1) Separate out common parts from struct spi_master > > 2) Create struct spi_slave > > 2a) Implement spi_slave_send_message for spi_slave > > 2b) Implement netlink interface to push and pull messages to/from > > userland ? > > > > The protocol won't be done in kernel, but completely in userland. > > > > Is this good approach to take? Or maybe 2b can be replaced by blocking > > read on character device? I think netlink interface might actually be > > suited quite well for this task. > > The other option is to have something like a gpio for synchronization. Synchronisation of what exactly? With my hardware (that doesn't exist yet I guess), the idea is to simply cross-connect the MISO/MOSI pins and connect the CLK signal. Is that possible btw? Thanks! > > Best regards, > > Marek Vasut Best regards, Marek Vasut -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
[SPAM] Japanese used cars and foreign cars
Dear Sir/Madam We are an american used car export company selling Japanese used cars and foreign cars. We export Japanese used cars to various countries in the world. We have extensive stocks of Japanese used cars and american cars which satisfy your needs. We guarantee Good condition, Good price, Quick service. Right now we are giving discount prices on Toyota Land cruisers, Prado and Double Cabin Toyota Hilux pick- up We have only 97 units in stocks and you could be lucky to get 1 unit for yourself We are giving discount prices because it is our marketing strategy to attract more customers in Africa and in the world at large.We want you to take an advantage of this opportunity. Sincerely yours, Tom Bruce, Sales Team/General Manager Address: 43-40 Northern Blvd Long island city queens Ny 11101 USA TEL:+ 1 212 359 1616 FAX:1 647 7237352 Email: mwo...@mail2world.com Website: www.majorworld.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general
Re: Linux SPI slave support
On Mon, Jul 16, 2012 at 5:56 AM, Marek Vasut wrote: > Dear Shubhrajyoti Datta, > >> Hello, >> >> On Sat, Jun 30, 2012 at 8:45 AM, Marek Vasut wrote: >> > Hello, >> > >> > is there currently any ongoing effort to support SPI slave mode in Linux? >> > >> > If there is none, could you please share any hints that might help me >> > better choose and go in the direction of implementing the SPI slave >> > support? >> >> May be you may want to check the archives. >> You may want to see below before designing. >> >> http://permalink.gmane.org/gmane.linux.kernel.spi.devel/7495 > [...] > > So, idea V2: > > 1) Separate out common parts from struct spi_master > 2) Create struct spi_slave > 2a) Implement spi_slave_send_message for spi_slave > 2b) Implement netlink interface to push and pull messages to/from > userland ? > > The protocol won't be done in kernel, but completely in userland. > > Is this good approach to take? Or maybe 2b can be replaced by blocking read on > character device? I think netlink interface might actually be suited quite > well > for this task. The other option is to have something like a gpio for synchronization. > > Best regards, > Marek Vasut -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general