mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
drivers/mtd/nvmxip: Move sandbox_set_enable_memio() to test
The sandbox_set_enable_memio() should only ever be set during sandbox testing, not within driver itself, move it back to test/ . Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
parent
6539f71d1d
commit
8a4289ad72
2 changed files with 2 additions and 4 deletions
|
@ -29,10 +29,6 @@ int nvmxip_probe(struct udevice *udev)
|
|||
char bdev_name[NVMXIP_BLKDEV_NAME_SZ + 1];
|
||||
int devnum;
|
||||
|
||||
#if CONFIG_IS_ENABLED(SANDBOX64)
|
||||
sandbox_set_enable_memio(true);
|
||||
#endif
|
||||
|
||||
devnum = uclass_id_count(UCLASS_NVMXIP);
|
||||
snprintf(bdev_name, NVMXIP_BLKDEV_NAME_SZ, "blk#%d", devnum);
|
||||
|
||||
|
|
|
@ -103,6 +103,8 @@ static int dm_test_nvmxip(struct unit_test_state *uts)
|
|||
void *buffer = NULL;
|
||||
unsigned long flashsz;
|
||||
|
||||
sandbox_set_enable_memio(true);
|
||||
|
||||
/* set the flash content first for both devices */
|
||||
dm_nvmxip_flash_sanity(uts, 0, NULL);
|
||||
dm_nvmxip_flash_sanity(uts, 1, NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue