blob: a8f718c184f7cc93712cf9809aef6751649007ae [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)
Julius Wernere9665952022-01-21 17:06:20 -080012 printk(BIOS_WARNING, "Unknown platform id 0x%x\n", id);
Patrick Rudolph74203de2017-11-20 11:57:01 +010013
14 return (id == 4) ? PLATFORM_MOBILE : PLATFORM_DESKTOP_SERVER;
15}