blob: 755a6616015e542c074119af8d77b29b1e271d3a [file] [log] [blame]
Elyes HAOUASf50b6622020-07-19 14:00:43 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Asami Doif7952422019-06-11 16:01:31 +09002
3#include <boot_device.h>
4
5/* Maps directly to NOR flash up to ROM size. */
6static const struct mem_region_device boot_dev =
7 MEM_REGION_DEV_RO_INIT((void *)0x0, CONFIG_ROM_SIZE);
8
9const struct region_device *boot_device_ro(void)
10{
11 return &boot_dev.rdev;
12}