mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets
@ 2012-04-26 17:02 Alexander Shiyan
  2012-04-26 17:02 ` [PATCH 2/2] PCM038: choose boot device by parsing barebox_loc magic variable Alexander Shiyan
  2012-04-27  7:42 ` [PATCH 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Shiyan @ 2012-04-26 17:02 UTC (permalink / raw)
  To: barebox


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/mci/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig
index b1a678e..6bae586 100644
--- a/drivers/mci/Kconfig
+++ b/drivers/mci/Kconfig
@@ -54,7 +54,7 @@ config MCI_IMX
 
 config MCI_IMX_ESDHC
 	bool "i.MX esdhc"
-	depends on ARCH_IMX
+	depends on ARCH_IMX && !ARCH_IMX27 && !ARCH_IMX31
 	help
 	  Enable this entry to add support to read and write SD cards on a
 	  Freescale i.MX25/35/51 based system.
-- 
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

* [PATCH 2/2] PCM038: choose boot device by parsing barebox_loc magic variable
  2012-04-26 17:02 [PATCH 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets Alexander Shiyan
@ 2012-04-26 17:02 ` Alexander Shiyan
  2012-04-27  7:42 ` [PATCH 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Shiyan @ 2012-04-26 17:02 UTC (permalink / raw)
  To: barebox


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/pcm038/env/config |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/pcm038/env/config b/arch/arm/boards/pcm038/env/config
index 32be5ec..59f3e89 100644
--- a/arch/arm/boards/pcm038/env/config
+++ b/arch/arm/boards/pcm038/env/config
@@ -14,10 +14,18 @@ ip=dhcp
 #eth0.gateway=a.b.c.d
 #eth0.serverip=a.b.c.d
 
+if [ x$barebox_loc = xnand ]; then
+	kernel_loc=nand
+	rootfs_loc=nand
+elif [ x$barebox_loc = xnor ]; then
+	kernel_loc=nor
+	rootfs_loc=nor
+else
 # can be either 'nfs', 'tftp', 'nor' or 'nand'
-kernel_loc=tftp
+	kernel_loc=tftp
 # can be either 'net', 'nor', 'nand' or 'initrd'
-rootfs_loc=net
+	rootfs_loc=net
+fi
 
 # can be either 'jffs2' or 'ubifs'
 rootfs_type=ubifs
-- 
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 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets
  2012-04-26 17:02 [PATCH 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets Alexander Shiyan
  2012-04-26 17:02 ` [PATCH 2/2] PCM038: choose boot device by parsing barebox_loc magic variable Alexander Shiyan
@ 2012-04-27  7:42 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2012-04-27  7:42 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: barebox

On Thu, Apr 26, 2012 at 09:02:03PM +0400, Alexander Shiyan wrote:
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  drivers/mci/Kconfig |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig
> index b1a678e..6bae586 100644
> --- a/drivers/mci/Kconfig
> +++ b/drivers/mci/Kconfig
> @@ -54,7 +54,7 @@ config MCI_IMX
>  
>  config MCI_IMX_ESDHC
>  	bool "i.MX esdhc"
> -	depends on ARCH_IMX
> +	depends on ARCH_IMX && !ARCH_IMX27 && !ARCH_IMX31

No, please don't. Apart from the fact that mx1 and mx21 are missing
above it's not worth it. All that can happen is that you can enable
support for a device which is not present on your system. Apart from
needed binary space there's nothing wrong with that.

Sascha


-- 
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

end of thread, other threads:[~2012-04-27  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26 17:02 [PATCH 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets Alexander Shiyan
2012-04-26 17:02 ` [PATCH 2/2] PCM038: choose boot device by parsing barebox_loc magic variable Alexander Shiyan
2012-04-27  7:42 ` [PATCH 1/2] Disallow to selecting MCI_IMX_ESDHC for i.MX27 & i.MX31 targets Sascha Hauer

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