]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: sandbox: mmc: Enable building MMC code for sandbox
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 19:52:43 +0000 (13:52 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
Enable building the MMC code for sandbox. This increases build
coverage for sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
configs/sandbox_defconfig
include/configs/sandbox.h
test/dm/blk.c

index afdf4a3ba7159430cbd7b85391dbb2b0abc09521..aec2e538a19ff0f0ffb4eda211d98519cf9fb366 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_MMC=y
 CONFIG_PCI=y
 CONFIG_DEFAULT_DEVICE_TREE="sandbox"
 CONFIG_I8042_KEYB=y
@@ -97,6 +98,7 @@ CONFIG_PWRSEQ=y
 CONFIG_SPL_PWRSEQ=y
 CONFIG_RESET=y
 CONFIG_DM_MMC=y
+CONFIG_SANDBOX_MMC=y
 CONFIG_SPI_FLASH_SANDBOX=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_ATMEL=y
index c51d4cd737b6540dd1c6172ad045a1415f84040f..23a0c40ca528a8377416d4036f6d46ffdeff29e2 100644 (file)
 #define CONFIG_SYS_SYSTEMACE_WIDTH     16
 #define CONFIG_SYS_SYSTEMACE_BASE      0
 
+#define CONFIG_GENERIC_MMC
+
 #endif
index f4ea32e83e514095d277046bf8a0d249f8235c6a..012bf4cab56ef43fbfa605c7bac9a32eebd4baa1 100644 (file)
@@ -83,12 +83,12 @@ static int dm_test_blk_usb(struct unit_test_state *uts)
        ut_asserteq_ptr(usb_dev, dev_get_parent(dev));
 
        /* Check we have one block device for each mass storage device */
-       ut_asserteq(3, count_blk_devices());
+       ut_asserteq(4, count_blk_devices());
 
        /* Now go around again, making sure the old devices were unbound */
        ut_assertok(usb_stop());
        ut_assertok(usb_init());
-       ut_asserteq(3, count_blk_devices());
+       ut_asserteq(4, count_blk_devices());
        ut_assertok(usb_stop());
 
        return 0;