mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
mx31: Move EHCI definitions to ehci-fsl.h
The EHCI definitions in i.MX31's imx-regs.h are MXC-generic, so move them to ehci-fsl.h so that all MXC SoCs can use them. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
34275d70fe
commit
8eeb19be75
2 changed files with 22 additions and 26 deletions
|
@ -896,32 +896,6 @@ struct esdc_regs {
|
||||||
#define MX31_AIPS1_BASE_ADDR 0x43f00000
|
#define MX31_AIPS1_BASE_ADDR 0x43f00000
|
||||||
#define IMX_USB_BASE (MX31_AIPS1_BASE_ADDR + 0x88000)
|
#define IMX_USB_BASE (MX31_AIPS1_BASE_ADDR + 0x88000)
|
||||||
|
|
||||||
/* USB portsc */
|
|
||||||
/* values for portsc field */
|
|
||||||
#define MXC_EHCI_PHY_LOW_POWER_SUSPEND (1 << 23)
|
|
||||||
#define MXC_EHCI_FORCE_FS (1 << 24)
|
|
||||||
#define MXC_EHCI_UTMI_8BIT (0 << 28)
|
|
||||||
#define MXC_EHCI_UTMI_16BIT (1 << 28)
|
|
||||||
#define MXC_EHCI_SERIAL (1 << 29)
|
|
||||||
#define MXC_EHCI_MODE_UTMI (0 << 30)
|
|
||||||
#define MXC_EHCI_MODE_PHILIPS (1 << 30)
|
|
||||||
#define MXC_EHCI_MODE_ULPI (2 << 30)
|
|
||||||
#define MXC_EHCI_MODE_SERIAL (3 << 30)
|
|
||||||
|
|
||||||
/* values for flags field */
|
|
||||||
#define MXC_EHCI_INTERFACE_DIFF_UNI (0 << 0)
|
|
||||||
#define MXC_EHCI_INTERFACE_DIFF_BI (1 << 0)
|
|
||||||
#define MXC_EHCI_INTERFACE_SINGLE_UNI (2 << 0)
|
|
||||||
#define MXC_EHCI_INTERFACE_SINGLE_BI (3 << 0)
|
|
||||||
#define MXC_EHCI_INTERFACE_MASK (0xf)
|
|
||||||
|
|
||||||
#define MXC_EHCI_POWER_PINS_ENABLED (1 << 5)
|
|
||||||
#define MXC_EHCI_TTL_ENABLED (1 << 6)
|
|
||||||
|
|
||||||
#define MXC_EHCI_INTERNAL_PHY (1 << 7)
|
|
||||||
#define MXC_EHCI_IPPUE_DOWN (1 << 8)
|
|
||||||
#define MXC_EHCI_IPPUE_UP (1 << 9)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CSPI register definitions
|
* CSPI register definitions
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -246,9 +246,31 @@ struct usb_ehci {
|
||||||
/*
|
/*
|
||||||
* For MXC SOCs
|
* For MXC SOCs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* values for portsc field */
|
||||||
|
#define MXC_EHCI_PHY_LOW_POWER_SUSPEND (1 << 23)
|
||||||
|
#define MXC_EHCI_FORCE_FS (1 << 24)
|
||||||
|
#define MXC_EHCI_UTMI_8BIT (0 << 28)
|
||||||
|
#define MXC_EHCI_UTMI_16BIT (1 << 28)
|
||||||
|
#define MXC_EHCI_SERIAL (1 << 29)
|
||||||
|
#define MXC_EHCI_MODE_UTMI (0 << 30)
|
||||||
|
#define MXC_EHCI_MODE_PHILIPS (1 << 30)
|
||||||
|
#define MXC_EHCI_MODE_ULPI (2 << 30)
|
||||||
|
#define MXC_EHCI_MODE_SERIAL (3 << 30)
|
||||||
|
|
||||||
|
/* values for flags field */
|
||||||
|
#define MXC_EHCI_INTERFACE_DIFF_UNI (0 << 0)
|
||||||
|
#define MXC_EHCI_INTERFACE_DIFF_BI (1 << 0)
|
||||||
|
#define MXC_EHCI_INTERFACE_SINGLE_UNI (2 << 0)
|
||||||
|
#define MXC_EHCI_INTERFACE_SINGLE_BI (3 << 0)
|
||||||
|
#define MXC_EHCI_INTERFACE_MASK (0xf)
|
||||||
|
|
||||||
#define MXC_EHCI_POWER_PINS_ENABLED (1 << 5)
|
#define MXC_EHCI_POWER_PINS_ENABLED (1 << 5)
|
||||||
#define MXC_EHCI_TTL_ENABLED (1 << 6)
|
#define MXC_EHCI_TTL_ENABLED (1 << 6)
|
||||||
|
|
||||||
#define MXC_EHCI_INTERNAL_PHY (1 << 7)
|
#define MXC_EHCI_INTERNAL_PHY (1 << 7)
|
||||||
|
#define MXC_EHCI_IPPUE_DOWN (1 << 8)
|
||||||
|
#define MXC_EHCI_IPPUE_UP (1 << 9)
|
||||||
|
|
||||||
/* Board-specific initialization */
|
/* Board-specific initialization */
|
||||||
int board_ehci_hcd_init(int port);
|
int board_ehci_hcd_init(int port);
|
||||||
|
|
Loading…
Reference in a new issue