aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/nvmxip
diff options
context:
space:
mode:
authorAbdellatif El Khlifi2023-04-17 10:11:55 +0100
committerTom Rini2023-04-27 17:01:14 -0400
commitcc89b7cf419223a746ab3cfc5741a19cd40ebabe (patch)
treefda0dbc390c9de9bff060019e61a9f08b326e960 /drivers/mtd/nvmxip
parent4b6d114d6d30dafd18c27fb00608b2f6038ac5ff (diff)
sandbox64: add support for NVMXIP QSPI
enable NVMXIP QSPI for sandbox 64-bit Adding two NVM XIP QSPI storage devices. Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mtd/nvmxip')
-rw-r--r--drivers/mtd/nvmxip/nvmxip-uclass.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mtd/nvmxip/nvmxip-uclass.c b/drivers/mtd/nvmxip/nvmxip-uclass.c
index 9f96041e3d8..6d8eb177b50 100644
--- a/drivers/mtd/nvmxip/nvmxip-uclass.c
+++ b/drivers/mtd/nvmxip/nvmxip-uclass.c
@@ -9,6 +9,9 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#if CONFIG_IS_ENABLED(SANDBOX64)
+#include <asm/test.h>
+#endif
#include <linux/bitops.h>
#include "nvmxip.h"
@@ -36,6 +39,10 @@ static int nvmxip_post_bind(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);