diff options
author | Joshua Stein <jcs@cvs.openbsd.org> | 2019-07-16 19:12:33 +0000 |
---|---|---|
committer | Joshua Stein <jcs@cvs.openbsd.org> | 2019-07-16 19:12:33 +0000 |
commit | d2026e1834bf12902d9c0a87da24c33571f2d9a9 (patch) | |
tree | cabd4985674983869ed83ecc31041add1cce37e8 /sys/dev/acpi/dwiic_acpi.c | |
parent | d1f9da99abf646810d0fb5ab5150eeb312567192 (diff) |
don't bother reading default timing parameters if they're just going
to be overridden from ACPI
Diffstat (limited to 'sys/dev/acpi/dwiic_acpi.c')
-rw-r--r-- | sys/dev/acpi/dwiic_acpi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/acpi/dwiic_acpi.c b/sys/dev/acpi/dwiic_acpi.c index 890418923df..b03642402cc 100644 --- a/sys/dev/acpi/dwiic_acpi.c +++ b/sys/dev/acpi/dwiic_acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwiic_acpi.c,v 1.8 2018/07/01 11:37:11 kettenis Exp $ */ +/* $OpenBSD: dwiic_acpi.c,v 1.9 2019/07/16 19:12:32 jcs Exp $ */ /* * Synopsys DesignWare I2C controller * @@ -143,11 +143,6 @@ dwiic_acpi_attach(struct device *parent, struct device *self, void *aux) dwiic_acpi_power(sc, 1); /* fetch timing parameters */ - sc->ss_hcnt = dwiic_read(sc, DW_IC_SS_SCL_HCNT); - sc->ss_lcnt = dwiic_read(sc, DW_IC_SS_SCL_LCNT); - sc->fs_hcnt = dwiic_read(sc, DW_IC_FS_SCL_HCNT); - sc->fs_lcnt = dwiic_read(sc, DW_IC_FS_SCL_LCNT); - sc->sda_hold_time = dwiic_read(sc, DW_IC_SDA_HOLD); dwiic_acpi_get_params(sc, "SSCN", &sc->ss_hcnt, &sc->ss_lcnt, NULL); dwiic_acpi_get_params(sc, "FMCN", &sc->fs_hcnt, &sc->fs_lcnt, &sc->sda_hold_time); |