2 * System information routines for all OMAP based boards.
4 * (C) Copyright 2017 Linaro Ltd.
5 * Sam Protsenko <semen.protsenko@linaro.org>
7 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/omap.h>
12 #include <asm/omap_common.h>
15 * Tell if device is GP/HS/EMU/TST.
17 u32 get_device_type(void)
19 return (readl((*ctrl)->control_status) & DEVICE_TYPE_MASK) >>