Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3729219imm; Mon, 30 Jul 2018 02:20:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdOh96KPOmJctRsMbi64+/SCV0+OX18RfW5A2+zsmwv1mfmgHuCqcJ1vDh0YEHKfhznaniE X-Received: by 2002:a62:e106:: with SMTP id q6-v6mr17276797pfh.75.1532942438358; Mon, 30 Jul 2018 02:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532942438; cv=none; d=google.com; s=arc-20160816; b=wThZKMAvjy+JJReMwi/T1Gi1vvGT0yLcbq4VTam81u/jhAnU3u1Mih/d7IFQjNW0R/ hNbQSexTL7/b/6sqYuMtyMg1jZ/pXahzmaGK1/OduWVVNbaJ/aHSBeI4ZwvysmIq/3rL 1cC7UvPAEvUn8rkcHDwyOtajR3Tv9KHp03pu2OR6tdIKEhXDWQXOyK/HS+ii7T9X8rbQ LX05OLyxAkVM5RMJ8f/jjbX9x0SqB3DovJqSONV5SDrH8o0wjPJFyUUIcrDKZRg899/E 2veFqg49rrtOZFChVsrpMdiiLL4Ze/hujtRMuMI2CCzrphxb3F3WL1fi+2smx4HZgVGd 7E2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :arc-authentication-results; bh=t/Qc0pdrRNW5A7xRdbzLjeZrMvdZ3kVEFWI4lebvMLQ=; b=f6y2sEDpFKgywZwduI+3IA1lMCHw7h54A4zECKek3UGcY6kYegYxvhH9fSGLiH02lC 4GFwZJz6ItJst4ykAyQl5QEUCPIxFZekVzX1ZtK+Ol47UZ+4i6eAHmo8KGxJZuDLKEdY XPZDb+F1WEyXZo97SUhCZiTt/5llHdYsVD7D1+/+UdP2kstRti7X+BuQ2TkiLvK1DyQk n8J6zfxz+gBpF6iK4OC7/9VkVlOCsvVhLJ1cR8TSNavguuu14RlvNy1USrxwjP/8mHJH +DamW8OwkhOvGJxABVpkJggcca4mhBn5Z5E43PrdVROZaSLsUNcjCNNd7+jwBIUzH4ci wnsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si9487600plh.306.2018.07.30.02.20.24; Mon, 30 Jul 2018 02:20:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726801AbeG3Kxf (ORCPT + 99 others); Mon, 30 Jul 2018 06:53:35 -0400 Received: from ms.tdt.de ([195.243.126.94]:37798 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726653AbeG3Kxf (ORCPT ); Mon, 30 Jul 2018 06:53:35 -0400 X-Greylist: delayed 492 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 Jul 2018 06:53:34 EDT Received: from feckert01.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id A10DE200C6; Mon, 30 Jul 2018 09:11:14 +0000 (UTC) From: Florian Eckert Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Eckert.Florian@googlemail.com Subject: [PATCH] leds: add APU3 dmi information to leds-apu Date: Mon, 30 Jul 2018 11:11:08 +0200 Message-Id: <20180730091108.30098-1-fe@dev.tdt.de> X-Mailer: git-send-email 2.11.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.dev.tdt.de To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver should also get loaded if this is a APU3 from PC Engines. It has the same pin layout for leds. Signed-off-by: Florian Eckert --- drivers/leds/leds-apu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/leds/leds-apu.c b/drivers/leds/leds-apu.c index 8c93d68964c7..1ed1c5a5dc77 100644 --- a/drivers/leds/leds-apu.c +++ b/drivers/leds/leds-apu.c @@ -134,6 +134,14 @@ static const struct dmi_system_id apu_led_dmi_table[] __initconst = { DMI_MATCH(DMI_BOARD_NAME, "PC Engines apu2") } }, + /* PC Engines APU3 with "Legancy" bios >= 4.0.7 */ + { + .ident = "apu3", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"), + DMI_MATCH(DMI_BOARD_NAME, "APU3") + } + }, {} }; MODULE_DEVICE_TABLE(dmi, apu_led_dmi_table); @@ -229,6 +237,7 @@ static int __init apu_led_probe(struct platform_device *pdev) apu_led->num_led_instances = ARRAY_SIZE(apu1_led_profile); apu_led->iosize = APU1_IOSIZE; } else if (dmi_match(DMI_BOARD_NAME, "APU2") || + dmi_match(DMI_BOARD_NAME, "APU3") || dmi_match(DMI_BOARD_NAME, "apu2") || dmi_match(DMI_BOARD_NAME, "PC Engines apu2")) { apu_led->profile = apu2_led_profile; @@ -258,6 +267,7 @@ static int __init apu_led_init(void) } if (!(dmi_match(DMI_PRODUCT_NAME, "APU") || dmi_match(DMI_PRODUCT_NAME, "APU2") || + dmi_match(DMI_PRODUCT_NAME, "APU3") || dmi_match(DMI_PRODUCT_NAME, "apu2") || dmi_match(DMI_PRODUCT_NAME, "PC Engines apu2"))) { pr_err("Unknown PC Engines board: %s\n", -- 2.11.0