xen: pvblock: Add initial support for para-virtualized block driver
[platform/kernel/u-boot.git] / common / board_r.c
index add544d..9b2fec7 100644 (file)
@@ -49,6 +49,7 @@
 #include <nand.h>
 #include <of_live.h>
 #include <onenand_uboot.h>
+#include <pvblock.h>
 #include <scsi.h>
 #include <serial.h>
 #include <status_led.h>
@@ -475,6 +476,16 @@ static int initr_xen(void)
        return 0;
 }
 #endif
+
+#ifdef CONFIG_PVBLOCK
+static int initr_pvblock(void)
+{
+       puts("PVBLOCK: ");
+       pvblock_init();
+       return 0;
+}
+#endif
+
 /*
  * Tell if it's OK to load the environment early in boot.
  *
@@ -775,6 +786,9 @@ static init_fnc_t init_sequence_r[] = {
 #ifdef CONFIG_XEN
        initr_xen,
 #endif
+#ifdef CONFIG_PVBLOCK
+       initr_pvblock,
+#endif
        initr_env,
 #ifdef CONFIG_SYS_BOOTPARAMS_LEN
        initr_malloc_bootparams,