blob: 20a377007f35c6eafbc4d917cebf999332ed8763 [file] [log] [blame]
Angel Pons585495e2020-04-03 01:21:38 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Martin Rothb28f4662018-05-26 17:58:47 -06002
Aaron Durbinc6588c52015-05-15 13:15:34 -05003#include <boot_device.h>
Hung-Te Lin7635a602013-02-12 00:07:38 +08004
Elyes HAOUAS8ab989e2016-07-30 17:46:17 +02005/* Maps directly to NOR flash up to ROM size. */
Aaron Durbin899d13d2015-05-15 23:39:23 -05006static const struct mem_region_device boot_dev =
Antonello Dettorie5f48d22016-06-22 21:09:08 +02007 MEM_REGION_DEV_RO_INIT((void *)0x0, CONFIG_ROM_SIZE);
Aaron Durbinc6588c52015-05-15 13:15:34 -05008
9const struct region_device *boot_device_ro(void)
10{
Aaron Durbin899d13d2015-05-15 23:39:23 -050011 return &boot_dev.rdev;
Hung-Te Lin7635a602013-02-12 00:07:38 +080012}