blob: 0533d1ddfa0ae69506328f9cdbd9b1ea67a77831 [file] [log] [blame]
Angel Pons6e5aabd2020-03-23 23:44:42 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Patrick Rudolph74203de2017-11-20 11:57:01 +01003
4#include <types.h>
5#include <console/console.h>
6#include <device/device.h>
Patrick Rudolph74203de2017-11-20 11:57:01 +01007#include "sandybridge.h"
8
9enum platform_type get_platform_type(void)
10{
11 const int id = get_platform_id();
12 if (id != 1 && id != 4)
13 printk(BIOS_WARNING, "WARN: Unknown platform id 0x%x\n", id);
14
15 return (id == 4) ? PLATFORM_MOBILE : PLATFORM_DESKTOP_SERVER;
16}