blob: 59972dc72d38b307bad07aaeee8ae4152f5bedf1 [file] [log] [blame]
Patrick Rudolph74203de2017-11-20 11:57:01 +01001/*
2 * This file is part of the coreboot project.
3 *
Patrick Rudolph74203de2017-11-20 11:57:01 +01004 *
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 Rudolph74203de2017-11-20 11:57:01 +010019#include "sandybridge.h"
20
21enum 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}