xref: /aosp_15_r20/external/coreboot/src/ec/hp/kbc1126/ecfw_ptr.c (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <endian.h>
4 #include "ecfw_ptr.h"
5 
6 /*
7  * Address info for EC SMSC KBC1098/KBC1126 to find their firmware blobs,
8  * linked to CONFIG_ECFW_PTR_ADDR via src/arch/x86/bootblock.ld
9  */
10 __attribute__((used, __section__(".ecfw_ptr")))
11 const struct ecfw_ptr ecfw_ptr = {
12 	.fw1.off = cpu_to_be16((uint16_t)(CONFIG_KBC1126_FW1_OFFSET >> 8)),
13 	.fw1.inv = cpu_to_be16((uint16_t)~(CONFIG_KBC1126_FW1_OFFSET >> 8)),
14 	.fw2.off = cpu_to_be16((uint16_t)(CONFIG_KBC1126_FW2_OFFSET >> 8)),
15 	.fw2.inv = cpu_to_be16((uint16_t)~(CONFIG_KBC1126_FW2_OFFSET >> 8)),
16 };
17