浏览代码

ARM: OMAP2+: Try to parse earlycon from parent too

With ti-sysc driver the "ti,hwmods" property will be moved to the
interconnect target module instead of the child device. To keep
earlycon working, we need to match against the interconnect target
module in the ti-sysc case.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tony Lindgren 7 年之前
父节点
当前提交
1561825622
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      arch/arm/mach-omap2/omap_hwmod.c

+ 6 - 0
arch/arm/mach-omap2/omap_hwmod.c

@@ -3492,6 +3492,12 @@ static void __init omap_hwmod_setup_earlycon_flags(void)
 			if (np) {
 			if (np) {
 				uart = of_get_property(np, "ti,hwmods", NULL);
 				uart = of_get_property(np, "ti,hwmods", NULL);
 				oh = omap_hwmod_lookup(uart);
 				oh = omap_hwmod_lookup(uart);
+				if (!oh) {
+					uart = of_get_property(np->parent,
+							       "ti,hwmods",
+							       NULL);
+					oh = omap_hwmod_lookup(uart);
+				}
 				if (oh)
 				if (oh)
 					oh->flags |= DEBUG_OMAPUART_FLAGS;
 					oh->flags |= DEBUG_OMAPUART_FLAGS;
 			}
 			}