blob: d81ea9093219eda46a930a1622d009aaffa2a855 [file] [log] [blame]
Elyes HAOUAS7cf47cf2020-07-18 10:51:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Matt DeVillier2677e2d2020-03-14 16:22:01 -05002
3#include <device/pnp.h>
4
5/*
6 * This embedded controller looks awfully like a Super I/O chip. LDNs 5 and 6
7 * need to be enabled to turn on the keyboard and mouse controller, and LDN
8 * 0x11 needs to be enabled to turn on ACPI embedded controller functionality.
9 */
10static struct pnp_info dev_infos[] = {
11 { NULL, 0x05 }, { NULL, 0x06 }, { NULL, 0x11 }
12};
13
14static void ec_51nb_npce985la0dx_ops_enable(struct device *dev)
15{
16 pnp_enable_devices(dev, &pnp_ops, ARRAY_SIZE(dev_infos), dev_infos);
17}
18
19struct chip_operations ec_51nb_npce985la0dx_ops = {
Nicholas Sudsgaardbfb11be2024-01-30 09:53:46 +090020 .name = "51NB EC",
Matt DeVillier2677e2d2020-03-14 16:22:01 -050021 .enable_dev = ec_51nb_npce985la0dx_ops_enable,
22};