summaryrefslogtreecommitdiff
path: root/src/mainboard/arm/rdn2/media.c
blob: cf6ab06789bcb2f312a46b750eebb2c7912413e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}