Angel Pons | 585495e | 2020-04-03 01:21:38 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <device/device.h> |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 5 | |
Elyes HAOUAS | 5cb876c | 2018-06-08 18:31:43 +0200 | [diff] [blame] | 6 | static void mainboard_enable(struct device *dev) |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 7 | { |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 8 | if (!dev) { |
Jonathan Neuschäfer | 2af174a | 2016-10-12 00:18:00 +0200 | [diff] [blame] | 9 | die("No dev0; die\n"); |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 10 | } |
| 11 | |
Elyes HAOUAS | f5f0b7b | 2016-10-07 13:02:31 +0200 | [diff] [blame] | 12 | /* Where does RAM live? */ |
Kyösti Mälkki | 1cc775e | 2021-06-28 00:00:04 +0300 | [diff] [blame] | 13 | ram_range(dev, 0, 2 * MiB, 32 * MiB); |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | struct chip_operations mainboard_ops = { |
| 17 | .enable_dev = mainboard_enable, |
| 18 | }; |