select DM_SPI
select DM_GPIO
select DM_MMC
+ select HAVE_BLOCK_DEVICE
select LZO
imply CMD_GETTIME
imply CMD_HASH
bool "GPT (GUID Partition Table) command"
select PARTITION_UUIDS
select EFI_PARTITION
+ select HAVE_BLOCK_DEVICE
imply RANDOM_UUID
help
Enable the 'gpt' command to ready and write GPT style partition
config CMD_PART
bool "part"
select PARTITION_UUIDS
+ select HAVE_BLOCK_DEVICE
help
Read and display information about the partition table on
various media.
config CMD_USB
bool "usb"
+ select HAVE_BLOCK_DEVICE
help
USB support.
#include <common.h>
#include <blk.h>
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
int *cur_devnump)
{
DECLARE_GLOBAL_DATA_PTR;
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
static struct part_driver *part_driver_lookup_type(int part_type)
{
struct part_driver *drv =
}
#endif
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
/* ------------------------------------------------------------------------- */
/*
}
#endif
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
void part_init(struct blk_desc *dev_desc)
{
drv->print(dev_desc);
}
-#endif /* HAVE_BLOCK_DEVICE */
+#endif /* CONFIG_HAVE_BLOCK_DEVICE */
int part_get_info(struct blk_desc *dev_desc, int part,
disk_partition_t *info)
{
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
struct part_driver *drv;
#if CONFIG_IS_ENABLED(PARTITION_UUIDS)
PRINTF("## Valid %s partition found ##\n", drv->name);
return 0;
}
-#endif /* HAVE_BLOCK_DEVICE */
+#endif /* CONFIG_HAVE_BLOCK_DEVICE */
return -1;
}
goto cleanup;
}
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
/*
* Updates the partition table for the specified hw partition.
* Does not need to be done for hwpart 0 since it is default and
#include <ide.h>
#include "part_amiga.h"
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
#undef AMIGA_DEBUG
#include <memalign.h>
#include "part_dos.h"
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
#define DOS_PART_DEFAULT_SECTOR 512
DECLARE_GLOBAL_DATA_PTR;
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
/**
* efi_crc32() - EFI version of crc32 function
* @buf: buffer to calculate crc32 of
#include <asm/unaligned.h>
#include "part_iso.h"
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
/* #define ISO_PART_DEBUG */
#include <ide.h>
#include "part_mac.h"
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
/* stdlib.h causes some compatibility problems; should fixe these! -- wd */
#ifndef __ldiv_t_defined
config SATA
bool "Support SATA controllers"
+ select HAVE_BLOCK_DEVICE
help
This enables support for SATA (Serial Advanced Technology
Attachment), a serial bus standard for connecting to hard drives and
be partitioned into several areas, called 'partitions' in U-Boot.
A filesystem can be placed in each partition.
+config HAVE_BLOCK_DEVICE
+ bool "Enable Legacy Block Device"
+ help
+ Some devices require block support whether or not DM is enabled
+
config SPL_BLK
bool "Support block devices in SPL"
depends on SPL_DM && BLK
config IDE
bool "Support IDE controllers"
+ select HAVE_BLOCK_DEVICE
help
Enables support for IDE (Integrated Drive Electronics) hard drives.
This allows access to raw blocks and filesystems on an IDE drive
config SYSTEMACE
bool "Xilinx SystemACE support"
+ select HAVE_BLOCK_DEVICE
help
Adding this option adds support for Xilinx SystemACE chips attached
via some sort of local bus. The address of the chip must also be
return drv->get_dev(devnum, descp);
}
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
int blk_list_part(enum if_type if_type)
{
struct blk_driver *drv;
return 0;
}
-#endif /* HAVE_BLOCK_DEVICE */
+#endif /* CONFIG_HAVE_BLOCK_DEVICE */
struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum)
{
config MMC
bool "MMC/SD/SDIO card support"
default ARM || PPC || SANDBOX
+ select HAVE_BLOCK_DEVICE
help
This selects MultiMediaCard, Secure Digital and Secure
Digital I/O support.
config NVME
bool "NVM Express device support"
depends on BLK && PCI
+ select HAVE_BLOCK_DEVICE
help
This option enables support for NVM Express devices.
It supports basic functions of NVMe (read/write).
config SCSI
bool "Support SCSI controllers"
+ select HAVE_BLOCK_DEVICE
help
This enables support for SCSI (Small Computer System Interface),
a parallel interface widely used with storage peripherals such as
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
#endif
-/* Rather than repeat this expression each time, add a define for it */
-#if defined(CONFIG_IDE) || \
- defined(CONFIG_SATA) || \
- defined(CONFIG_SCSI) || \
- defined(CONFIG_CMD_USB) || \
- defined(CONFIG_CMD_PART) || \
- defined(CONFIG_CMD_GPT) || \
- defined(CONFIG_MMC) || \
- defined(CONFIG_NVME) || \
- defined(CONFIG_SYSTEMACE) || \
- (defined(CONFIG_EFI_LOADER) && !defined(CONFIG_SPL_BUILD)) || \
- defined(CONFIG_SANDBOX)
-#define HAVE_BLOCK_DEVICE
-#endif
-
/* Console I/O Buffer Size */
#ifndef CONFIG_SYS_CBSIZE
#if defined(CONFIG_CMD_KGDB)
/* SDHI */
#define CONFIG_SH_SDHI_FREQ 97500000
-#define HAVE_BLOCK_DEVICE
#endif /* __BLANCHE_H */
/* Disabled by default as some sub-commands can brick eMMC */
/*#define CONFIG_SUPPORT_EMMC_BOOT */
-/* Partition table support */
-#define HAVE_BLOCK_DEVICE /* Needed for partition commands */
-
#include <config_distro_defaults.h>
/* BOOTP options */
/* Generic Timer Definitions */
#define COUNTER_FREQUENCY 19000000
-/* Partition table support */
-#define HAVE_BLOCK_DEVICE
-
/* BOOTP options */
#define CONFIG_BOOTP_BOOTFILESIZE
depends on !EFI_STUB || !X86 || X86_64 || EFI_STUB_32BIT
default y
select LIB_UUID
+ select HAVE_BLOCK_DEVICE
help
Select this option if you want to run EFI applications (like grub2)
on top of U-Boot. If this option is enabled, U-Boot will expose EFI