summaryrefslogtreecommitdiffstats
path: root/common/boards/qemu-virt/qemu-virt-flash.h
blob: 85f67ff030575db27f05feb904a52148384d8528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef __QEMU_VIRT_FLASH_H__
#define __QEMU_VIRT_FLASH_H__

#include <linux/stringify.h>

#ifdef CONFIG_RISCV
#define PARTS_TARGET_PATH	/flash@20000000
#define ENV_DEVICE_PATH		/flash@20000000/partitions/partition@3c00000
#elif defined CONFIG_ARM
#define PARTS_TARGET_PATH	/flash@0
#define ENV_DEVICE_PATH		/flash@0/partitions/partition@3c00000
#else
#define PARTS_TARGET_PATH
#define ENV_DEVICE_PATH
#endif

#define PARTS_TARGET_PATH_STR	__stringify(PARTS_TARGET_PATH)
#define ENV_DEVICE_PATH_STR	__stringify(ENV_DEVICE_PATH)

#endif