1 /* SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2019 Marvell International Ltd.
5 * https://spdx.org/licenses
17 /* Register defines */
19 #define otx_is_soc(soc) (read_partnum() == (soc))
20 #define otx_is_board(model) (!strcmp(read_board_name(), model))
21 #define otx_is_platform(platform) (read_platform() == (platform))
25 PLATFORM_EMULATOR = 1,
29 int read_platform(void);
30 u8 read_partnum(void);
31 const char *read_board_name(void);