diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-07-05 06:56:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-07-05 06:56:35 +0000 |
commit | 58daa19f4b3af364686dc49c23d846971efd5491 (patch) | |
tree | b5aea55ebab95facc92d2f36939eba7ac3a5d2e3 /sys/arch/armv7/omap | |
parent | dd5ab946b9a8f22b5d8d761bc015445b525ab4f6 (diff) |
match on "ti,am335-sdhci" used since linux 5.8-rc3
Diffstat (limited to 'sys/arch/armv7/omap')
-rw-r--r-- | sys/arch/armv7/omap/ommmc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/armv7/omap/ommmc.c b/sys/arch/armv7/omap/ommmc.c index f77d98c068f..1a00cf32f70 100644 --- a/sys/arch/armv7/omap/ommmc.c +++ b/sys/arch/armv7/omap/ommmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ommmc.c,v 1.36 2020/04/27 11:37:23 ians Exp $ */ +/* $OpenBSD: ommmc.c,v 1.37 2020/07/05 06:56:34 jsg Exp $ */ /* * Copyright (c) 2009 Dale Rahn <drahn@openbsd.org> @@ -292,7 +292,8 @@ ommmc_match(struct device *parent, void *match, void *aux) struct fdt_attach_args *faa = aux; return (OF_is_compatible(faa->fa_node, "ti,omap3-hsmmc") || - OF_is_compatible(faa->fa_node, "ti,omap4-hsmmc")); + OF_is_compatible(faa->fa_node, "ti,omap4-hsmmc") || + OF_is_compatible(faa->fa_node, "ti,am335-sdhci")); } void @@ -312,7 +313,8 @@ ommmc_attach(struct device *parent, struct device *self, void *aux) if (faa->fa_reg[0].size <= 0x100) return; - if (OF_is_compatible(faa->fa_node, "ti,omap4-hsmmc")) { + if (OF_is_compatible(faa->fa_node, "ti,omap4-hsmmc") || + OF_is_compatible(faa->fa_node, "ti,am335-sdhci")) { addr = faa->fa_reg[0].addr + 0x100; size = faa->fa_reg[0].size - 0x100; } else { |