blob: 5cd49cc9a601057f36bff74869f74cb6357cb673 [file] [log] [blame]
Angel Pons6e5aabd2020-03-23 23:44:42 +01001/* SPDX-License-Identifier: GPL-2.0-only */
Patrick Rudolph74203de2017-11-20 11:57:01 +01002
Patrick Rudolph74203de2017-11-20 11:57:01 +01003#include <console/console.h>
4#include <device/device.h>
Elyes HAOUAS1d6484a2020-07-10 11:18:11 +02005#include <cpu/intel/model_206ax/model_206ax.h>
Patrick Rudolph74203de2017-11-20 11:57:01 +01006#include "sandybridge.h"
7
8enum platform_type get_platform_type(void)
9{
10 const int id = get_platform_id();
11 if (id != 1 && id != 4)
12 printk(BIOS_WARNING, "WARN: Unknown platform id 0x%x\n", id);
13
14 return (id == 4) ? PLATFORM_MOBILE : PLATFORM_DESKTOP_SERVER;
15}