Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/imx/fdt Add i.MX7 USB support



details:   https://anonhg.NetBSD.org/src/rev/7e6a95e9897a
branches:  trunk
changeset: 934404:7e6a95e9897a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Jun 11 11:01:16 2020 +0000

description:
Add i.MX7 USB support

diffstat:

 sys/arch/arm/imx/fdt/imx6_usb.c  |  5 +++--
 sys/arch/arm/imx/fdt/imx7d_ccm.c |  8 ++++++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (55 lines):

diff -r 74273ce8169c -r 7e6a95e9897a sys/arch/arm/imx/fdt/imx6_usb.c
--- a/sys/arch/arm/imx/fdt/imx6_usb.c   Thu Jun 11 09:56:57 2020 +0000
+++ b/sys/arch/arm/imx/fdt/imx6_usb.c   Thu Jun 11 11:01:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: imx6_usb.c,v 1.3 2019/11/24 11:07:19 skrll Exp $       */
+/*     $NetBSD: imx6_usb.c,v 1.4 2020/06/11 11:01:16 jmcneill Exp $    */
 /*-
  * Copyright (c) 2019 Genetec Corporation.  All rights reserved.
  * Written by Hashimoto Kenichi for Genetec Corporation.
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imx6_usb.c,v 1.3 2019/11/24 11:07:19 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx6_usb.c,v 1.4 2020/06/11 11:01:16 jmcneill Exp $");
 
 #include "opt_fdt.h"
 
@@ -75,6 +75,7 @@
 
 static const char * const compatible[] = {
        "fsl,imx6q-usb",
+       "fsl,imx7d-usb",
        NULL
 };
 
diff -r 74273ce8169c -r 7e6a95e9897a sys/arch/arm/imx/fdt/imx7d_ccm.c
--- a/sys/arch/arm/imx/fdt/imx7d_ccm.c  Thu Jun 11 09:56:57 2020 +0000
+++ b/sys/arch/arm/imx/fdt/imx7d_ccm.c  Thu Jun 11 11:01:16 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imx7d_ccm.c,v 1.1 2020/06/10 17:57:50 jmcneill Exp $ */
+/* $NetBSD: imx7d_ccm.c,v 1.2 2020/06/11 11:01:16 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2020 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: imx7d_ccm.c,v 1.1 2020/06/10 17:57:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx7d_ccm.c,v 1.2 2020/06/11 11:01:16 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -269,6 +269,10 @@
        IMX_GATE(USDHC1_ROOT_CLK, "usdhc1_root_clk", "usdhc1_post_div", 0x46c0, __BIT(0)),
        IMX_GATE(USDHC2_ROOT_CLK, "usdhc2_root_clk", "usdhc2_post_div", 0x46d0, __BIT(0)),
        IMX_GATE(USDHC3_ROOT_CLK, "usdhc3_root_clk", "usdhc3_post_div", 0x46e0, __BIT(0)),
+
+       IMX_GATE(USB_CTRL_CLK, "usb_ctrl_clk", "ahb_root_clk", 0x4680, __BIT(0)),
+       IMX_GATE(USB_PHY1_CLK, "usb_phy1_clk", "pll_usb1_main_clk", 0x46a0, __BIT(0)),
+       IMX_GATE(USB_PHY2_CLK, "usb_phy2_clk", "pll_usb_main_clk", 0x46b0, __BIT(0)),
 };
 
 static int



Home | Main Index | Thread Index | Old Index