Debian Codegraph @

src/ec/hp/kbc1126/ecfw_ptr.c

raw symbols SCIP
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 };