Baruch Siach | 4417ff2 | 2020-01-20 14:20:11 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2020 SolidRun |
| 4 | */ |
| 5 | |
| 6 | #ifndef __BOARD_SR_COMMON_H_ |
| 7 | #define __BOARD_SR_COMMON_H_ |
| 8 | |
| 9 | struct tlv_data { |
| 10 | /* Store product name of both SOM and carrier */ |
| 11 | char tlv_product_name[2][32]; |
| 12 | unsigned int ram_size; |
Josua Mayer | e528366 | 2023-10-08 16:58:03 +0200 | [diff] [blame] | 13 | uint8_t ram_channels; |
Baruch Siach | 4417ff2 | 2020-01-20 14:20:11 +0200 | [diff] [blame] | 14 | }; |
| 15 | |
| 16 | void read_tlv_data(struct tlv_data *td); |
| 17 | bool sr_product_is(const struct tlv_data *td, const char *product); |
| 18 | |
| 19 | #endif /* __BOARD_SR_COMMON_H_ */ |