Yaroslav Kurlaev | c1de9e8 | 2021-07-02 14:34:00 +0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <device/device.h> |
| 5 | #include <cbmem.h> |
| 6 | |
| 7 | static void mainboard_enable(struct device *dev) |
| 8 | { |
| 9 | if (!dev) |
| 10 | die("No dev0; die\n"); |
Yaroslav Kurlaev | bcbcdf7 | 2021-07-06 22:30:28 +0700 | [diff] [blame^] | 11 | ram_resource(dev, 0, 0, (unsigned long)cbmem_top() / KiB); |
Yaroslav Kurlaev | c1de9e8 | 2021-07-02 14:34:00 +0700 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | struct chip_operations mainboard_ops = { |
| 15 | .enable_dev = mainboard_enable, |
| 16 | }; |