2020-04-02 23:48:27 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2014-07-15 02:09:23 +02:00
|
|
|
|
2014-07-24 03:32:01 +02:00
|
|
|
#ifndef __INCLUDE_BOARDID_H__
|
|
|
|
#define __INCLUDE_BOARDID_H__
|
2014-07-15 02:09:23 +02:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2017-12-05 22:39:10 +01:00
|
|
|
#define UNDEFINED_STRAPPING_ID (~0)
|
|
|
|
|
2018-09-18 00:19:34 +02:00
|
|
|
#define BOARD_ID_UNKNOWN ~((uint32_t)0) /* unsigned equivalent to -1 */
|
|
|
|
#define BOARD_ID_INIT ~((uint32_t)1) /* unsigned equivalent to -2 */
|
|
|
|
/**
|
|
|
|
* board_id() - Get the board version
|
|
|
|
*
|
|
|
|
* Return: board version on success, BOARD_ID_UNKNOWN on failure/error.
|
|
|
|
*
|
|
|
|
* This function is used to get the mainboard version.
|
|
|
|
*/
|
2017-12-02 04:12:14 +01:00
|
|
|
uint32_t board_id(void); /* differentiates revisions */
|
|
|
|
uint32_t ram_code(void); /* identifies installed DRAM modules */
|
|
|
|
uint32_t sku_id(void); /* differentiates other optional components */
|
2014-07-15 02:09:23 +02:00
|
|
|
|
2014-07-24 03:32:01 +02:00
|
|
|
#endif /* __INCLUDE_BOARDID_H__ */
|