mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 11:00:15 +00:00
04cd0a0fa0
Signed-off-by: Suneel Garapati <sgarapati@marvell.com>
33 lines
662 B
C
33 lines
662 B
C
/* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* Copyright (C) 2019 Marvell International Ltd.
|
|
*
|
|
* https://spdx.org/licenses
|
|
*/
|
|
|
|
#ifndef __SOC_H__
|
|
#define __SOC_H__
|
|
|
|
/* Product PARTNUM */
|
|
#define CN81XX 0xA2
|
|
#define CN83XX 0xA3
|
|
#define CN96XX 0xB2
|
|
#define CN95XX 0xB3
|
|
|
|
/* Register defines */
|
|
|
|
#define otx_is_soc(soc) (read_partnum() == (soc))
|
|
#define otx_is_board(model) (!strcmp(read_board_name(), model))
|
|
#define otx_is_platform(platform) (read_platform() == (platform))
|
|
|
|
enum platform_t {
|
|
PLATFORM_HW = 0,
|
|
PLATFORM_EMULATOR = 1,
|
|
PLATFORM_ASIM = 3,
|
|
};
|
|
|
|
int read_platform(void);
|
|
u8 read_partnum(void);
|
|
const char *read_board_name(void);
|
|
|
|
#endif /* __SOC_H */
|