blob: 70b858e7cac3de992e582678cb0262ccd59d67d5 [file] [log] [blame]
Ronald G. Minnich98312442016-02-12 22:37:48 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Google, Inc.
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <console/console.h>
17#include <device/device.h>
18#include <cbmem.h>
19
20static void mainboard_enable(device_t dev)
21{
22
23 if (!dev) {
Jonathan Neuschäfer2af174a2016-10-12 00:18:00 +020024 die("No dev0; die\n");
Ronald G. Minnich98312442016-02-12 22:37:48 +000025 }
26
Elyes HAOUASf5f0b7b2016-10-07 13:02:31 +020027 /* Where does RAM live? */
Ronald G. Minnich98312442016-02-12 22:37:48 +000028 ram_resource(dev, 0, 2048, 32768);
29 cbmem_recovery(0);
30}
31
32struct chip_operations mainboard_ops = {
33 .enable_dev = mainboard_enable,
34};