9
0
Fork 0

i.MX25 & 35 usb config bits : create mach/usb.h

as suggested by Baruch Siach

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Eric Bénard 2010-10-20 15:40:17 +02:00 committed by Sascha Hauer
parent a9cc5d079a
commit b6a68cf1b5
3 changed files with 16 additions and 20 deletions

View File

@ -42,6 +42,7 @@
#include <mach/iomux-mx25.h>
#include <i2c/i2c.h>
#include <usb/fsl_usb2.h>
#include <mach/usb.h>
extern unsigned long _stext;
extern void exception_vectors(void);
@ -165,16 +166,6 @@ static struct device_d esdhc_dev = {
};
#ifdef CONFIG_USB
#define MX35_H1_SIC_SHIFT 21
#define MX35_H1_SIC_MASK (0x3 << MX35_H1_SIC_SHIFT)
#define MX35_H1_PM_BIT (1 << 8)
#define MX35_H1_IPPUE_UP_BIT (1 << 7)
#define MX35_H1_IPPUE_DOWN_BIT (1 << 6)
#define MX35_H1_TLL_BIT (1 << 5)
#define MX35_H1_USBTE_BIT (1 << 4)
#define MXC_EHCI_INTERFACE_SINGLE_UNI (2 << 0)
static void imx25_usb_init(void)
{
unsigned int tmp;

View File

@ -53,6 +53,7 @@
#include <mach/imx-pll.h>
#include <i2c/i2c.h>
#include <usb/fsl_usb2.h>
#include <mach/usb.h>
static struct fec_platform_data fec_info = {
.xcv_type = MII100,
@ -140,16 +141,6 @@ static struct device_d esdhc_dev = {
};
#ifdef CONFIG_USB
#define MX35_H1_SIC_SHIFT 21
#define MX35_H1_SIC_MASK (0x3 << MX35_H1_SIC_SHIFT)
#define MX35_H1_PM_BIT (1 << 8)
#define MX35_H1_IPPUE_UP_BIT (1 << 7)
#define MX35_H1_IPPUE_DOWN_BIT (1 << 6)
#define MX35_H1_TLL_BIT (1 << 5)
#define MX35_H1_USBTE_BIT (1 << 4)
#define MXC_EHCI_INTERFACE_SINGLE_UNI (2 << 0)
static void imx35_usb_init(void)
{
unsigned int tmp;

View File

@ -0,0 +1,14 @@
#ifndef __MACH_USB_H_
#define __MACH_USB_H_
/* configuration bits for i.MX25 and i.MX35 */
#define MX35_H1_SIC_SHIFT 21
#define MX35_H1_SIC_MASK (0x3 << MX35_H1_SIC_SHIFT)
#define MX35_H1_PM_BIT (1 << 8)
#define MX35_H1_IPPUE_UP_BIT (1 << 7)
#define MX35_H1_IPPUE_DOWN_BIT (1 << 6)
#define MX35_H1_TLL_BIT (1 << 5)
#define MX35_H1_USBTE_BIT (1 << 4)
#define MXC_EHCI_INTERFACE_SINGLE_UNI (2 << 0)
#endif /* __MACH_USB_H_*/