2 * Freescale USB Controller
4 * Copyright 2013 Freescale Semiconductor, Inc.
6 * This software may be used and distributed according to the
7 * terms of the GNU Public License, Version 2, incorporated
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * Version 2 as published by the Free Software Foundation.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 #ifndef _ASM_FSL_USB_H_
26 #define _ASM_FSL_USB_H_
28 #ifdef CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE
29 struct ccsr_usb_port_ctrl {
48 struct ccsr_usb_port_ctrl port1;
56 struct ccsr_usb_port_ctrl port2;
60 #define CONFIG_SYS_FSL_USB_CTRL_PHY_EN (1 << 0)
61 #define CONFIG_SYS_FSL_USB_DRVVBUS_CR_EN (1 << 1)
62 #define CONFIG_SYS_FSL_USB_PWRFLT_CR_EN (1 << 1)
63 #define CONFIG_SYS_FSL_USB_PLLPRG1_PHY_DIV (1 << 0)
64 #define CONFIG_SYS_FSL_USB_PLLPRG2_PHY2_CLK_EN (1 << 0)
65 #define CONFIG_SYS_FSL_USB_PLLPRG2_PHY1_CLK_EN (1 << 1)
66 #define CONFIG_SYS_FSL_USB_PLLPRG2_FRAC_LPF_EN (1 << 13)
67 #define CONFIG_SYS_FSL_USB_PLLPRG2_REF_DIV (1 << 4)
68 #define CONFIG_SYS_FSL_USB_PLLPRG2_MFI (5 << 16)
69 #define CONFIG_SYS_FSL_USB_PLLPRG2_PLL_EN (1 << 21)
70 #define CONFIG_SYS_FSL_USB_SYS_CLK_VALID (1 << 0)
74 u32 usb_enable_override;
77 #define CONFIG_SYS_FSL_USB_ENABLE_OVERRIDE 1
80 #endif /*_ASM_FSL_USB_H_ */