diff options
author | Tom Rini <trini@konsulko.com> | 2020-06-03 12:27:51 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-03 12:27:51 -0400 |
commit | 0d8f35b58cc8458a5263b424896a386429ee49e5 (patch) | |
tree | 5d2faff1993ca4daa006916e84521af31ddfecb6 /test | |
parent | f1a69b8c733614ca8293891d4f7a1d1bdbe665c9 (diff) | |
parent | db2e6d0ad7860653fcec63ded4211d74b83c2e09 (diff) | |
download | u-boot-0d8f35b58cc8458a5263b424896a386429ee49e5.tar.gz |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-spi
- Toshiba spinand (Yoshio)
- SPI/SPI Flash cleanup (Jagan)
- Remove SH SPI (Jagan)
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/sf.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/dm/sf.c b/test/dm/sf.c index 55b8d1545f..9e7dead684 100644 --- a/test/dm/sf.c +++ b/test/dm/sf.c @@ -20,7 +20,7 @@ /* Simple test of sandbox SPI flash */ static int dm_test_spi_flash(struct unit_test_state *uts) { - struct udevice *dev, *emul; + struct udevice *dev; int full_size = 0x200000; int size = 0x10000; u8 *src, *dst; @@ -50,14 +50,6 @@ static int dm_test_spi_flash(struct unit_test_state *uts) ut_assertok(spi_flash_read_dm(dev, 0, size, dst)); ut_asserteq_mem(src, dst, size); - /* Try the write-protect stuff */ - ut_assertok(uclass_first_device_err(UCLASS_SPI_EMUL, &emul)); - ut_asserteq(0, spl_flash_get_sw_write_prot(dev)); - sandbox_sf_set_block_protect(emul, 1); - ut_asserteq(1, spl_flash_get_sw_write_prot(dev)); - sandbox_sf_set_block_protect(emul, 0); - ut_asserteq(0, spl_flash_get_sw_write_prot(dev)); - /* Check mapping */ ut_assertok(dm_spi_get_mmap(dev, &map_base, &map_size, &offset)); ut_asserteq(0x1000, map_base); |