* [PATCH 1/1] bcm2835: move mci register at board level
@ 2013-11-03 7:07 Jean-Christophe PLAGNIOL-VILLARD
2013-11-03 7:30 ` Alexander Aring
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-11-03 7:07 UTC (permalink / raw)
To: barebox
not all board have a SD coard
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
arch/arm/boards/raspberry-pi/rpi.c | 1 +
arch/arm/mach-bcm2835/core.c | 1 -
arch/arm/mach-bcm2835/include/mach/core.h | 8 ++++++++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/raspberry-pi/rpi.c b/arch/arm/boards/raspberry-pi/rpi.c
index d4912cc..a3ff746 100644
--- a/arch/arm/boards/raspberry-pi/rpi.c
+++ b/arch/arm/boards/raspberry-pi/rpi.c
@@ -39,6 +39,7 @@ console_initcall(rpi_console_init);
static int rpi_devices_init(void)
{
+ bcm2835_register_mci();
armlinux_set_architecture(MACH_TYPE_BCM2708);
armlinux_set_bootparams((void *)(0x00000100));
return 0;
diff --git a/arch/arm/mach-bcm2835/core.c b/arch/arm/mach-bcm2835/core.c
index 906e434..f44ecd5 100644
--- a/arch/arm/mach-bcm2835/core.c
+++ b/arch/arm/mach-bcm2835/core.c
@@ -70,7 +70,6 @@ static int bcm2835_dev_init(void)
{
add_generic_device("bcm2835-gpio", 0, NULL, BCM2835_GPIO_BASE, 0xB0, IORESOURCE_MEM, NULL);
add_generic_device("bcm2835-cs", DEVICE_ID_SINGLE, NULL, BCM2835_ST_BASE, 0x1C, IORESOURCE_MEM, NULL);
- add_generic_device("bcm2835_mci", 0, NULL, BCM2835_EMMC_BASE, 0xFC, IORESOURCE_MEM, NULL);
return 0;
}
coredevice_initcall(bcm2835_dev_init);
diff --git a/arch/arm/mach-bcm2835/include/mach/core.h b/arch/arm/mach-bcm2835/include/mach/core.h
index 9379af2..a095db8 100644
--- a/arch/arm/mach-bcm2835/include/mach/core.h
+++ b/arch/arm/mach-bcm2835/include/mach/core.h
@@ -16,7 +16,15 @@
#ifndef __BCM2835_CORE_H__
#define __BCM2835_CORE_H__
+#include <mach/platform.h>
+
void bcm2835_register_uart(void);
void bcm2835_add_device_sdram(u32 size);
+static void inline bcm2835_register_mci(void)
+{
+ add_generic_device("bcm2835_mci", 0, NULL, BCM2835_EMMC_BASE, 0xFC,
+ IORESOURCE_MEM, NULL);
+}
+
#endif
--
1.8.4.rc3
_______________________________________________
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/1] bcm2835: move mci register at board level
2013-11-03 7:07 [PATCH 1/1] bcm2835: move mci register at board level Jean-Christophe PLAGNIOL-VILLARD
@ 2013-11-03 7:30 ` Alexander Aring
2013-11-04 8:23 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Aring @ 2013-11-03 7:30 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
On Sun, Nov 03, 2013 at 08:07:08AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> not all board have a SD coard
>
s/coard/card
- Alex
_______________________________________________
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/1] bcm2835: move mci register at board level
2013-11-03 7:30 ` Alexander Aring
@ 2013-11-04 8:23 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2013-11-04 8:23 UTC (permalink / raw)
To: Alexander Aring; +Cc: barebox
On Sun, Nov 03, 2013 at 08:30:44AM +0100, Alexander Aring wrote:
> On Sun, Nov 03, 2013 at 08:07:08AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > not all board have a SD coard
> >
> s/coard/card
Applied and fixed typo.
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:[~2013-11-04 8:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-03 7:07 [PATCH 1/1] bcm2835: move mci register at board level Jean-Christophe PLAGNIOL-VILLARD
2013-11-03 7:30 ` Alexander Aring
2013-11-04 8:23 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox