Elyes HAOUAS | f50b662 | 2020-07-19 14:00:43 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 2 | |
3 | #include <boot_device.h> | ||||
4 | |||||
5 | /* Maps directly to NOR flash up to ROM size. */ | ||||
6 | static const struct mem_region_device boot_dev = | ||||
7 | MEM_REGION_DEV_RO_INIT((void *)0x0, CONFIG_ROM_SIZE); | ||||
8 | |||||
9 | const struct region_device *boot_device_ro(void) | ||||
10 | { | ||||
11 | return &boot_dev.rdev; | ||||
12 | } |