Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/ti Make com work again



details:   https://anonhg.NetBSD.org/src/rev/cabc3fe327ac
branches:  trunk
changeset: 464850:cabc3fe327ac
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 27 11:33:56 2019 +0000

description:
Make com work again

diffstat:

 sys/arch/arm/ti/files.ti |  4 +---
 sys/arch/arm/ti/ti_com.c |  6 +++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 39f181b9712f -r cabc3fe327ac sys/arch/arm/ti/files.ti
--- a/sys/arch/arm/ti/files.ti  Sun Oct 27 11:21:52 2019 +0000
+++ b/sys/arch/arm/ti/files.ti  Sun Oct 27 11:33:56 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.ti,v 1.6 2019/10/26 15:58:55 jmcneill Exp $
+#      $NetBSD: files.ti,v 1.7 2019/10/27 11:33:56 jmcneill Exp $
 #
 
 file   arch/arm/ti/ti_platform.c       soc_ti
@@ -23,10 +23,8 @@
 file   arch/arm/ti/am3_prcm.c          am3_prcm
 
 # UART
-ifdef soc_ti
 attach com at fdt with ti_com: ti_prcm
 file   arch/arm/ti/ti_com.c            ti_com needs-flag
-endif
 
 # Timer
 device omaptimer
diff -r 39f181b9712f -r cabc3fe327ac sys/arch/arm/ti/ti_com.c
--- a/sys/arch/arm/ti/ti_com.c  Sun Oct 27 11:21:52 2019 +0000
+++ b/sys/arch/arm/ti/ti_com.c  Sun Oct 27 11:33:56 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ti_com.c,v 1.5 2019/10/18 06:58:06 skrll Exp $ */
+/* $NetBSD: ti_com.c,v 1.6 2019/10/27 11:33:56 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: ti_com.c,v 1.5 2019/10/18 06:58:06 skrll Exp $");
+__KERNEL_RCSID(1, "$NetBSD: ti_com.c,v 1.6 2019/10/27 11:33:56 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -106,7 +106,7 @@
                return;
        }
 
-       hwmod = ti_prcm_get_hwmod(phandle, 0);
+       hwmod = ti_prcm_get_hwmod(OF_parent(phandle), 0);
        KASSERT(hwmod != NULL);
        if (clk_enable(hwmod) != 0) {
                aprint_error(": couldn't enable module\n");



Home | Main Index | Thread Index | Old Index