Skip to contentSkip to conversation

board: rpi_b: include mmc header and fix prototype

PATCH Superseded Jeroen Hofstee 2 participants 3 messages Jul 12, 2014 – Jul 21, 2014 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: rpi_b: include mmc header and fix prototype

---
 board/raspberrypi/rpi_b/rpi_b.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/raspberrypi/rpi_b/rpi_b.c +2 -1
index f33fae9..601c6f7 100644
@@ -17,6 +17,7 @@
 #include <common.h>
 #include <config.h>
 #include <lcd.h>
+#include <mmc.h>
 #include <asm/arch/mbox.h>
 #include <asm/arch/sdhci.h>
 #include <asm/global_data.h>
@@ -91,7 +92,7 @@ int board_init(void)
 	return power_on_module(BCM2835_MBOX_POWER_DEVID_USB_HCD);
 }
 
-int board_mmc_init(void)
+int board_mmc_init(bd_t *bis)
 {
 	ALLOC_ALIGN_BUFFER(struct msg_get_clock_rate, msg_clk, 1, 16);
 	int ret;
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 board: rpi_b: include mmc header and fix prototype

While at it add fdt_support.h as well.

---
Changes since version 1:
Add fdt_support.h which has the proto for ft_board_setup

---
 board/raspberrypi/rpi_b/rpi_b.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
board/raspberrypi/rpi_b/rpi_b.c +3 -1
index f33fae9..220bb90 100644
@@ -16,7 +16,9 @@
 
 #include <common.h>
 #include <config.h>
+#include <fdt_support.h>
 #include <lcd.h>
+#include <mmc.h>
 #include <asm/arch/mbox.h>
 #include <asm/arch/sdhci.h>
 #include <asm/global_data.h>
@@ -91,7 +93,7 @@ int board_init(void)
 	return power_on_module(BCM2835_MBOX_POWER_DEVID_USB_HCD);
 }
 
-int board_mmc_init(void)
+int board_mmc_init(bd_t *bis)
 {
 	ALLOC_ALIGN_BUFFER(struct msg_get_clock_rate, msg_clk, 1, 16);
 	int ret;
Signature · 1 line
1.8.3.2
#2 lore raw

PATCH v2 1/1 board: rpi_b: include mmc header and fix prototype

Quoted 5 lines · Jeroen Hofstee

While at it add fdt_support.h as well.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140721/1307501e/attachment.pgp>