summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2022-09-08 06:32:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2022-09-08 06:32:33 +0000
commit4d093e6e961ca4cd67cc2ca5ad6b38515893daa9 (patch)
tree1cc3112d3e46f690561bfd9f9e1c435b2c1cae2c /sys/dev
parent82b2713b93ab5389a85fbe800c3e2ba5e68e35df (diff)
Add a few more pin mappings based on what is in some Linux device tree
updates that are floating around. Remove some #ifdef'ed out debug code that was left behind. ok patrick@, drahn@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/qcgpio.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/acpi/qcgpio.c b/sys/dev/acpi/qcgpio.c
index 45575d6cc48..3a606924884 100644
--- a/sys/dev/acpi/qcgpio.c
+++ b/sys/dev/acpi/qcgpio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qcgpio.c,v 1.1 2022/08/31 16:10:59 kettenis Exp $ */
+/* $OpenBSD: qcgpio.c,v 1.2 2022/09/08 06:32:32 kettenis Exp $ */
/*
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
*
@@ -147,12 +147,6 @@ qcgpio_attach(struct device *parent, struct device *self, void *aux)
printf("\n");
-#if 0
- /* XXX */
- HWRITE4(sc, 0x0008 + 0x1000 * 104, 0x71);
- HWRITE4(sc, 0x0008 + 0x1000 * 182, 0x71);
-#endif
-
acpi_register_gpio(sc->sc_acpi, sc->sc_node);
return;
@@ -168,6 +162,9 @@ int
qcgpio_pin_map(int pin)
{
switch (pin) {
+ case 107:
+ case 175:
+ return pin;
case 832:
return 104;
case 896: