mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 2/2] PCM038: add support for MMC
@ 2012-03-16 10:52 Alexander Shiyan
  2012-03-17 16:18 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Shiyan @ 2012-03-16 10:52 UTC (permalink / raw)
  To: barebox


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/pcm038/pcm038.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
index 8dd6521..0d925cc 100644
--- a/arch/arm/boards/pcm038/pcm038.c
+++ b/arch/arm/boards/pcm038/pcm038.c
@@ -221,6 +221,13 @@ static int pcm038_devices_init(void)
 		/* I2C2 */
 		PC5_PF_I2C2_SDA,
 		PC6_PF_I2C2_SCL,
+		/* SD1 */
+		PE18_PF_SD1_D0,
+		PE19_PF_SD1_D1,
+		PE20_PF_SD1_D2,
+		PE21_PF_SD1_D3,
+		PE22_PF_SD1_CMD,
+		PE23_PF_SD1_CLK,
 	};
 
 	/* configure 16 bit nor flash on cs0 */
@@ -264,6 +271,8 @@ static int pcm038_devices_init(void)
 	add_generic_usb_ehci_device(-1, IMX_OTG_BASE + 0x400, NULL);
 #endif
 
+	imx27_add_mmc0(NULL);
+
 	/* Register the fec device after the PLL re-initialisation
 	 * as the fec depends on the (now higher) ipg clock
 	 */
-- 
1.7.3.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] PCM038: add support for MMC
  2012-03-16 10:52 [PATCH 2/2] PCM038: add support for MMC Alexander Shiyan
@ 2012-03-17 16:18 ` Sascha Hauer
  2012-03-18  5:16   ` Re[2]: " Alexander Shiyan
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2012-03-17 16:18 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: barebox

On Fri, Mar 16, 2012 at 02:52:26PM +0400, Alexander Shiyan wrote:
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

Does this work without turning on the mc13783 regulator for MMC?

Sascha

> ---
>  arch/arm/boards/pcm038/pcm038.c |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
> index 8dd6521..0d925cc 100644
> --- a/arch/arm/boards/pcm038/pcm038.c
> +++ b/arch/arm/boards/pcm038/pcm038.c
> @@ -221,6 +221,13 @@ static int pcm038_devices_init(void)
>  		/* I2C2 */
>  		PC5_PF_I2C2_SDA,
>  		PC6_PF_I2C2_SCL,
> +		/* SD1 */
> +		PE18_PF_SD1_D0,
> +		PE19_PF_SD1_D1,
> +		PE20_PF_SD1_D2,
> +		PE21_PF_SD1_D3,
> +		PE22_PF_SD1_CMD,
> +		PE23_PF_SD1_CLK,
>  	};
>  
>  	/* configure 16 bit nor flash on cs0 */
> @@ -264,6 +271,8 @@ static int pcm038_devices_init(void)
>  	add_generic_usb_ehci_device(-1, IMX_OTG_BASE + 0x400, NULL);
>  #endif
>  
> +	imx27_add_mmc0(NULL);
> +
>  	/* Register the fec device after the PLL re-initialisation
>  	 * as the fec depends on the (now higher) ipg clock
>  	 */
> -- 
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re[2]: [PATCH 2/2] PCM038: add support for MMC
  2012-03-17 16:18 ` Sascha Hauer
@ 2012-03-18  5:16   ` Alexander Shiyan
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Shiyan @ 2012-03-18  5:16 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

Sat, 17 Mar 2012 17:18:22 +0100 от Sascha Hauer <s.hauer@pengutronix.de>:
> On Fri, Mar 16, 2012 at 02:52:26PM +0400, Alexander Shiyan wrote:

> Does this work without turning on the mc13783 regulator for MMC?
Yes, we should turn on VMMC after pmic-power().
The patch isn't finished.

> >  arch/arm/boards/pcm038/pcm038.c |    9 +++++++++
> >  1 files changed, 9 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
> > index 8dd6521..0d925cc 100644
> > --- a/arch/arm/boards/pcm038/pcm038.c
> > +++ b/arch/arm/boards/pcm038/pcm038.c
> > @@ -221,6 +221,13 @@ static int pcm038_devices_init(void)
> >  		/* I2C2 */
> >  		PC5_PF_I2C2_SDA,
> >  		PC6_PF_I2C2_SCL,
> > +		/* SD1 */
> > +		PE18_PF_SD1_D0,
> > +		PE19_PF_SD1_D1,
> > +		PE20_PF_SD1_D2,
> > +		PE21_PF_SD1_D3,
> > +		PE22_PF_SD1_CMD,
> > +		PE23_PF_SD1_CLK,
> >  	};
> >
> >  	/* configure 16 bit nor flash on cs0 */
> > @@ -264,6 +271,8 @@ static int pcm038_devices_init(void)
> >  	add_generic_usb_ehci_device(-1, IMX_OTG_BASE + 0x400, NULL);
> >  #endif
> >
> > +	imx27_add_mmc0(NULL);
> > +
> >  	/* Register the fec device after the PLL re-initialisation
> >  	 * as the fec depends on the (now higher) ipg clock
> >  	 */
> > --
> > 1.7.3.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-18  5:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-16 10:52 [PATCH 2/2] PCM038: add support for MMC Alexander Shiyan
2012-03-17 16:18 ` Sascha Hauer
2012-03-18  5:16   ` Re[2]: " Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox