coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
variants.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef BASEBOARD_VARIANTS_H
4 #define BASEBOARD_VARIANTS_H
5 
6 #include <soc/gpio.h>
7 #include <soc/meminit.h>
8 
9 /**
10  * variant_board_id() - Get the board id for the current board variant
11  *
12  * Return: board id on success, -1 on failure/error.
13  */
14 int variant_board_id(void);
15 
16 /* The next set of functions return the gpio table and fill in the number of
17  * entries for each table. */
18 const struct pad_config *variant_gpio_table(size_t *num);
19 const struct pad_config *variant_early_gpio_table(size_t *num);
20 const struct pad_config *variant_sleep_gpio_table(size_t *num);
21 
22 /* Baseboard default swizzle. Can be reused if swizzle is same. */
24 /* Return LPDDR4 configuration structure. */
25 const struct lpddr4_cfg *variant_lpddr4_config(void);
26 /* Return memory SKU for the board. */
27 size_t variant_memory_sku(void);
28 
29 /* Seed the NHLT tables with the board specific information. */
30 struct nhlt;
31 void variant_nhlt_init(struct nhlt *nhlt);
32 
33 #endif /* BASEBOARD_VARIANTS_H */
const struct pad_config * variant_gpio_table(size_t *num)
Definition: gpio.c:406
const struct pad_config * variant_early_gpio_table(size_t *num)
Definition: gpio.c:204
int variant_memory_sku(void)
Definition: memory.c:74
const struct pad_config * variant_sleep_gpio_table(size_t *num)
Definition: gpio.c:466
void variant_nhlt_init(struct nhlt *nhlt)
Definition: nhlt.c:7
const struct lpddr4_swizzle_cfg baseboard_lpddr4_swizzle
Definition: memory.c:9
const struct lpddr4_cfg * variant_lpddr4_config(void)
Definition: memory.c:190
int variant_board_id(void)
variant_board_id() - Get the board id for the current board variant
Definition: boardid.c:7
Definition: nhlt.h:287