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/f03880457043
branches:  trunk
changeset: 972848:f03880457043
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 8c82a658bc5c -r f03880457043 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 8c82a658bc5c -r f03880457043 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