Patrick Rudolph | 74203de | 2017-11-20 11:57:01 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Patrick Rudolph | 74203de | 2017-11-20 11:57:01 +0100 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License as |
| 7 | * published by the Free Software Foundation; version 2 of |
| 8 | * the License. |
| 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 <types.h> |
| 17 | #include <console/console.h> |
| 18 | #include <device/device.h> |
Patrick Rudolph | 74203de | 2017-11-20 11:57:01 +0100 | [diff] [blame] | 19 | #include "sandybridge.h" |
| 20 | |
| 21 | enum platform_type get_platform_type(void) |
| 22 | { |
| 23 | const int id = get_platform_id(); |
| 24 | if (id != 1 && id != 4) |
| 25 | printk(BIOS_WARNING, "WARN: Unknown platform id 0x%x\n", id); |
| 26 | |
| 27 | return (id == 4) ? PLATFORM_MOBILE : PLATFORM_DESKTOP_SERVER; |
| 28 | } |