Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 20 | static void mainboard_enable(device_t dev) |
| 21 | { |
| 22 | |
| 23 | if (!dev) { |
| 24 | printk(BIOS_EMERG, "No dev0; die\n"); |
| 25 | while (1) |
| 26 | ; |
| 27 | } |
| 28 | |
Elyes HAOUAS | 8ab989e | 2016-07-30 17:46:17 +0200 | [diff] [blame] | 29 | // Where does RAM live? |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 30 | ram_resource(dev, 0, 2048, 32768); |
| 31 | cbmem_recovery(0); |
| 32 | } |
| 33 | |
| 34 | struct chip_operations mainboard_ops = { |
| 35 | .enable_dev = mainboard_enable, |
| 36 | }; |