diff options
Diffstat (limited to 'src/mainboard/arm/rdn2/media.c')
-rw-r--r-- | src/mainboard/arm/rdn2/media.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/arm/rdn2/media.c b/src/mainboard/arm/rdn2/media.c new file mode 100644 index 0000000000..cf6ab06789 --- /dev/null +++ b/src/mainboard/arm/rdn2/media.c @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <boot_device.h> +#include <mainboard/addressmap.h> + +/* Maps directly to NOR flash up to ROM size. */ +static const struct mem_region_device boot_dev = + MEM_REGION_DEV_RO_INIT((void *)RDN2_FLASH_BASE, RDN2_FLASH_SIZE); + +const struct region_device *boot_device_ro(void) +{ + return &boot_dev.rdev; +} |