1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <ec/quanta/ene_kb3940q/ec.h>
7 void butterfly_ec_init(void)
9 printk(BIOS_DEBUG
, "Butterfly EC Init\n");
12 /* EC version: 6 bytes */
13 printk(BIOS_DEBUG
," EC version: %c%c%c%c%c%c\n",
14 ec_mem_read(EC_FW_VER0
), ec_mem_read(EC_FW_VER1
),
15 ec_mem_read(EC_FW_VER2
), ec_mem_read(EC_FW_VER3
),
16 ec_mem_read(EC_FW_VER4
), ec_mem_read(EC_FW_VER5
));
18 /* Disable wake on USB, LAN & RTC */
19 /* Enable Wake from Keyboard */
20 ec_mem_write(EC_EC_PSW
, EC_PSW_IKB
);