From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?ISO-8859-1?Q?Miguel_=C1ngel_=C1lvarez?=" Subject: Re: MMC/SD, SPI and IXP4XX Date: Fri, 8 Aug 2008 17:20:42 +0200 Message-ID: References: <55147.216.207.242.34.1218196029.squirrel@www.texascellnet.com> <6927.216.207.242.34.1218202757.squirrel@www.texascellnet.com> <16987.216.207.242.34.1218206865.squirrel@www.texascellnet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1241235554==" To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: <16987.216.207.242.34.1218206865.squirrel-9hn5j+WQJqK63hpG0/mJ51aTQe2KTcn/@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org --===============1241235554== Content-Type: multipart/alternative; boundary="----=_Part_29682_26421943.1218208842191" ------=_Part_29682_26421943.1218208842191 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Oooppps... It seems that I have been replying to Kbb instead of the list. Let me send this mail with previous ones attached so that it can be useful to anyone in my situation. Hi Kbb Perhaps I am not explaining myself correctly due to my English. My default platform setup (which is arc/arm/mach-ixp4xx/ixdp425-setup.c), does not see= m to register a platform driver for SSP (not even in 2.6.26). That is why I suppose that: - No one has ever work in Linux with an IXP4XX and SSP. - The work has not been submitted to the kernel. As it seems there is not a platform driver for SSP in IXP4XX, I am trying t= o figure how to build one (and of course, connect it to mmc_spi as you have suggested me). I could have tried to build it from scratch, but I found tha= t pxa2xx_spi was quite similar to what I tried to do, and that is why I am asking this mailing list if this is the correct way to do this. Thanks again for your answer and time. Miguel =C1ngel On Fri, Aug 8, 2008 at 4:47 PM, wrote: > No I am not familiar with the ixp465. Look in the init file discussed > earlier and look for the platform driver with SSP use. Verify the resour= ce > addresses. > > open the mmc_spi and make sure it can connect to the last step. and then > go from there. > > Good luck. > > Kbb > > > > Hi > > > > I see... Ok... I will have to figure if I can backport mmc_spi to > 2.6.18. > > So > > mmc_spi is somekind of "protocol driver"? > > > > Thanks for your answers... Are you familiar with ixp4xx? I cannot see a= n > > driver for the host SPI so I am trying to port the one of pxa2xx. Do yo= u > > know if this is the best alternative? > > > > Things start to be more clear (or more dark, because it seems there is > > quite > > a lot of code to rewrite...) > > > > Miguel =C1ngel > > > > > > On Fri, Aug 8, 2008 at 3:39 PM, wrote: > > > >> You are right it does not support direct MMC. > >> > >> First enable the mmc_spi choice and the spi in the config file. > >> > >> I then had to go into the init file "/arch/arm/mach-???/????" that you= r > >> system is using and fix the platform driver so that it recognizes the > >> hardware attached. This then should give you the use of the mmc_spi > >> driver. > >> > >> Kbb > >> > >> > >> > Hi Kbb > >> > > >> > Thanks for your answer. > >> > > >> > As far as I know, IXP465 has not an MMC/SD port. That is why I think= I > >> > must > >> > use the SPI port. > >> > > >> > Am I wrong? > >> > > >> > Miguel =C1ngel > >> > > >> > On Fri, Aug 8, 2008 at 1:47 PM, wrote: > >> > > >> >> How is your hardware attached? Is it only through the MMC/SD port? > >> >> > >> >> If so then you do not really need the MMC over SPI, just the pxamci > >> >> driver. > >> >> > >> >> Kbb > >> >> > >> >> > >> >> > >> >> > Hi. > >> >> > > >> >> > Some days ago I have sent a mail about using an SD card through S= PI > >> in > >> >> an > >> >> > IXP4XX system. > >> >> > > >> >> > Let me ask again for some help. > >> >> > - I have seen pxa2xx_spi driver, and as it seems quite interestin= g > >> for > >> >> me, > >> >> > I > >> >> > have beginned to port it to my platform. I attach the preliminary > >> >> patch, > >> >> > just in case it is useful for somebody... It is not tested yet, > >> >> however. > >> >> > - To test it I am trying to read information about using an SD > >> card, > >> >> but > >> >> I > >> >> > am quite confussed by now... It seems there is some kind of mmc_s= pi > >> >> driver > >> >> > in latest kernels, but I do not know how all the pieces oz the > >> puzzle > >> >> mach > >> >> > together. Any help would be appreciated. > >> >> > > >> >> > In my case I am using kernel 2.6.18 (trying to migrate to newer > >> >> releases, > >> >> > but not quite successfull yet), but if the help comes "explaining > >> the > >> >> > concept" in 2.6.24 or other kernels, it will also be quite useful= . > >> >> > > >> >> > Thanks a lot. > >> >> > > >> >> > Miguel =C1ngel =C1lvarez > >> >> > > >> > ------------------------------------------------------------------------- > >> >> > This SF.Net email is sponsored by the Moblin Your Move Developer'= s > >> >> > challenge > >> >> > Build the coolest Linux based applications with Moblin SDK & win > >> great > >> >> > prizes > >> >> > Grand prize is a trip for two to an Open Source event anywhere in > >> the > >> >> > world > >> >> > > >> >> > >> > http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D/___________= ____________________________________ > >> >> > spi-devel-general mailing list > >> >> > spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > >> >> > https://lists.sourceforge.net/lists/listinfo/spi-devel-general > >> >> > > >> > > >> > > > ------=_Part_29682_26421943.1218208842191 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Oooppps... It seems that I have been replying to Kbb inste= ad of the list. Let me send this mail with previous ones attached so that i= t can be useful to anyone in my situation.

Hi Kbb

Perhaps I am not explaining myself correctly due to my English. My defa= ult platform setup (which is arc/arm/mach-ixp4xx/ixdp425-setup.c), does not= seem to register a platform driver for SSP (not even in 2.6.26). That is w= hy I suppose that:

- No one has ever work in Linux with an IXP4XX and SSP.
- The work h= as not been submitted to the kernel.

As it seems there is not a plat= form driver for SSP in IXP4XX, I am trying to figure how to build one (and = of course, connect it to mmc_spi as you have suggested me). I could have tr= ied to build it from scratch, but I found that pxa2xx_spi was quite similar= to what I tried to do, and that is why I am asking this mailing list if th= is is the correct way to do this.

Thanks again for your answer and time.

Miguel =C1ngel


On Fri, Aug 8, 200= 8 at 4:47 PM, <kbb-DU79CLUmun8xNU+NZBVoVw@public.gmane.org> wrote:
No I am not familiar with the ixp465.  Look in the init file discussed earlier and look for the platform driver with SSP use.  Verify the resource addresses.

open the mmc_spi and make sure it can connect to the last step.  and then go from there.

Good = luck.

Kbb


> Hi
&g= t;
> I see... Ok... I will have to figure if I can backport mmc_spi to 2.6.18.
> So
> mmc_spi is= somekind of "protocol driver"?
>
> Thanks for your = answers... Are you familiar with ixp4xx? I cannot see an
> driver for the host SPI so I am trying to port the one of pxa2xx. Do you
> know if this is the best alternative?
>
> Things start to be more clear (or more dark, because it seems there is
> quite
> a lot of code to rewrite...)
>
> Miguel =C1ngel
>
>
> On Fri, Aug 8, 2008 at 3:39 PM, <kbb-DU79CLUmun8xNU+NZBVoVw@public.gmane.org> wrote:
>
>> You are right it does not support direct MMC.
>>
>> First enable the mmc_spi choice and the spi in the config file.
>>
>> I then had to go into the init file "/arch/arm/mach-???/????" that your
>> system is using and fix the platform driver so that it recognizes the
&g= t;> hardware attached. This then should give you the use of the mmc_spi
>> driver.
>>
>> Kbb
>>
>= >
>> > Hi Kbb
>> >
>> > Thanks for y= our answer.
>> >
>> > As far as I know, IXP465 has not an MMC/SD port. That is why I think I
>> > must
>> > use the SPI port.
>> >=
>> > Am I wrong?
>> >
>> > Miguel =C1n= gel
>> >
>> > On Fri, Aug 8, 2008 at 1:47 PM, <kbb-DU79CLUmun8xNU+NZBVoVw@public.gmane.org> wrote:
>> >
= >> >> How is your hardware attached? Is it only through the MMC/SD port?
>> >>
>> >> If so then you do not really need the MMC over SPI, just the pxamci
>> >> driver.
>> >>
>> >> Kbb
>> >>
>> >>
>> >>
>> >> > Hi.
>> >> >
>>= ; >> > Some days ago I have sent a mail about using an SD card through SPI
>> in
>> >> an
>> >= > > IXP4XX system.
>> >> >
>> >> >= ; Let me ask again for some help.
>> >> > - I have seen pxa2xx_spi driver, and as it seems quite interesting
>> for
>> >> me,
>> >> > I
>> >> > have beginned to port it to my platform. I attach the preliminary
>> >> patch,
>> = >> > just in case it is useful for somebody... It is not tested yet,
>> >> however.
>> >> > - To test it I am trying to read information about using an SD
>= > card,
>> >> but
>> >> I
>> >= > > am quite confussed by now... It seems there is some kind of mmc_spi
>> >> driver
>> >> > in latest kernels, but I do not know how all the pieces oz the
>= > puzzle
>> >> mach
>> >> > together. Any help would be appreciated.
>> >> >
>&= gt; >> > In my case I am using kernel 2.6.18 (trying to migrate to newer
>> >> releases,
>> >> > but not quite successfull yet), but if the help comes "explaining
>> the
>> >> > concept" in 2.6.24 or other kernels, it will also be quite useful.
= >> >> >
>> >> > Thanks a lot.
>> = >> >
>> >> > Miguel =C1ngel =C1lvarez
>> >> >
>> ------------------------------------------------------------------------->> >> > This SF.Net email is sponsored by the Moblin Your Move Developer's
>> >> > challenge
>> >> > Build the coolest Linux based applications with Moblin SDK & win
>> great
>> >> > prizes
>> &g= t;> > Grand prize is a trip for two to an Open Source event anywhere in
>> the
>> >> > world
>&g= t; >> >
>> >>
>> http= ://moblin-contest.org/redirect.php?banner_id=3D100&url=3D/_____________= __________________________________
>> >> > spi-devel-general mailing list
>> >> > spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> >> > https://lists.sourceforge.net/lists/listinfo/spi-devel-ge= neral
>> >> >
>> >
>>
>

------=_Part_29682_26421943.1218208842191-- --===============1241235554== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ --===============1241235554== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/spi-devel-general --===============1241235554==--