imx6_usbphy.c (257452) | imx6_usbphy.c (258780) |
---|---|
1/*- 2 * Copyright (c) 2013 Ian Lepore <ian@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2013 Ian Lepore <ian@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/arm/freescale/imx/imx6_usbphy.c 257452 2013-10-31 14:52:06Z ian $"); | 28__FBSDID("$FreeBSD: head/sys/arm/freescale/imx/imx6_usbphy.c 258780 2013-11-30 22:17:27Z eadler $"); |
29 30/* 31 * USBPHY driver for Freescale i.MX6 family of SoCs. 32 */ 33 34#include "opt_bus.h" 35 36#include <sys/param.h> --- 15 unchanged lines hidden (view full) --- 52/* 53 * Hardware register defines. 54 */ 55#define PWD_REG 0x0000 56#define CTRL_STATUS_REG 0x0030 57#define CTRL_SET_REG 0x0034 58#define CTRL_CLR_REG 0x0038 59#define CTRL_TOGGLE_REG 0x003c | 29 30/* 31 * USBPHY driver for Freescale i.MX6 family of SoCs. 32 */ 33 34#include "opt_bus.h" 35 36#include <sys/param.h> --- 15 unchanged lines hidden (view full) --- 52/* 53 * Hardware register defines. 54 */ 55#define PWD_REG 0x0000 56#define CTRL_STATUS_REG 0x0030 57#define CTRL_SET_REG 0x0034 58#define CTRL_CLR_REG 0x0038 59#define CTRL_TOGGLE_REG 0x003c |
60#define CTRL_SFTRST (1 << 31) | 60#define CTRL_SFTRST (1U << 31) |
61#define CTRL_CLKGATE (1 << 30) 62#define CTRL_ENUTMILEVEL3 (1 << 15) 63#define CTRL_ENUTMILEVEL2 (1 << 14) 64 65struct usbphy_softc { 66 device_t dev; 67 struct resource *mem_res; 68 u_int phy_num; --- 121 unchanged lines hidden --- | 61#define CTRL_CLKGATE (1 << 30) 62#define CTRL_ENUTMILEVEL3 (1 << 15) 63#define CTRL_ENUTMILEVEL2 (1 << 14) 64 65struct usbphy_softc { 66 device_t dev; 67 struct resource *mem_res; 68 u_int phy_num; --- 121 unchanged lines hidden --- |