From 7200638b6dc436d922a26d4b175e8d818fc611d7 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 20 Aug 2018 00:12:31 +0200 Subject: superio/ite/it8721f: Add resources There is no public datasheet available for this SuperIO so the resources are guessed by looking at other ITE SuperIO's and the register dumps while running vendor firmware. The only board with this SuperIO in the tree is the asus m5a88-v. Most of the devicetree entries would have been invalid here so one should not worry too much about regressions. Tested with Foxconn d41s. Change-Id: I6715c68b3aa9aebf6e292975cbf64ce905b30e8b Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/28225 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/superio/ite/it8721f/superio.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/superio/ite/it8721f/superio.c b/src/superio/ite/it8721f/superio.c index 52a145632d..cf3ca3f99f 100644 --- a/src/superio/ite/it8721f/superio.c +++ b/src/superio/ite/it8721f/superio.c @@ -54,12 +54,22 @@ static struct device_operations ops = { .ops_pnp_mode = &pnp_conf_mode_870155_aa, }; -/* TODO: FDC, PP, EC, KBCM, IR. */ +/* Guessed */ static struct pnp_info pnp_dev_info[] = { + { NULL, IT8721F_FDC, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 + | PNP_MSC0 | PNP_MSC1, 0x0ff8, }, { NULL, IT8721F_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8, }, { NULL, IT8721F_SP2, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, 0x07f8, }, + { NULL, IT8721F_PP, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_DRQ0 | PNP_MSC0, + 0x0ff8, 0x0ff8, }, + { NULL, IT8721F_EC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 + | PNP_MSC0 | PNP_MSC1 | PNP_MSC2 | PNP_MSC3 + | PNP_MSC4 | PNP_MSC5 | PNP_MSC6, + 0x0ff8, 0x0ff8, }, { NULL, IT8721F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, 0x07f8, 0x07f8, }, + { NULL, IT8721F_KBCM, PNP_IRQ0 | PNP_MSC0, }, + { NULL, IT8721F_IR, }, }; static void enable_dev(struct device *dev) -- cgit v1.2.3