From 9c1294ee34bff437d6df6461c8d45f091897e804 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 19 Jun 2016 14:38:14 +0000 Subject: omap4 uart is compatible with omap3 uart but has it's own compatible string --- sys/arch/armv7/omap/omap_com.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/arch/armv7/omap') diff --git a/sys/arch/armv7/omap/omap_com.c b/sys/arch/armv7/omap/omap_com.c index 05aafdc2dde..e750559898b 100644 --- a/sys/arch/armv7/omap/omap_com.c +++ b/sys/arch/armv7/omap/omap_com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omap_com.c,v 1.4 2016/06/19 14:27:35 jsg Exp $ */ +/* $OpenBSD: omap_com.c,v 1.5 2016/06/19 14:38:13 jsg Exp $ */ /* * Copyright 2003 Wasabi Systems, Inc. * All rights reserved. @@ -77,7 +77,8 @@ omapuart_init_cons(void) void *node; if ((node = fdt_find_cons("ti,omap3-uart")) == NULL) - return; + if ((node = fdt_find_cons("ti,omap4-uart")) == NULL) + return; if (fdt_get_memory_address(node, 0, &mem)) return; @@ -91,7 +92,8 @@ omapuart_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return OF_is_compatible(faa->fa_node, "ti,omap3-uart"); + return (OF_is_compatible(faa->fa_node, "ti,omap3-uart") || + OF_is_compatible(faa->fa_node, "ti,omap4-uart")); } void -- cgit v1.2.3