blob: c1713074f977786577d5f8b796f26eaca8fb8e27 [file] [log] [blame]
Ronald G. Minnich98312442016-02-12 22:37:48 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2015 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
9 * the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16#include <boot_device.h>
17
18/* This assumes that the CBFS resides at 0x0, which is true for the default
19 * configuration. */
20static const struct mem_region_device boot_dev =
Antonello Dettorie5f48d22016-06-22 21:09:08 +020021 MEM_REGION_DEV_RO_INIT(NULL, CONFIG_ROM_SIZE);
Ronald G. Minnich98312442016-02-12 22:37:48 +000022
23const struct region_device *boot_device_ro(void)
24{
25 return &boot_dev.rdev;
26}