diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2010-08-04 11:59:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-08-06 19:17:36 +0200 |
commit | f1329a15007f5636e3ecd2b0ab5f388da20ff5c5 (patch) | |
tree | 7db5cf7b373eec25736bfef504faa4e8d54e87f0 /include | |
parent | b0e989f618377454fd5e7e71f69a6f4adf1b2ed3 (diff) | |
download | barebox-f1329a15007f5636e3ecd2b0ab5f388da20ff5c5.tar.gz barebox-f1329a15007f5636e3ecd2b0ab5f388da20ff5c5.tar.xz |
usb: add twl4030 phy support
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb/twl4030.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/usb/twl4030.h b/include/usb/twl4030.h new file mode 100644 index 0000000000..66f5156f9e --- /dev/null +++ b/include/usb/twl4030.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2010 Michael Grzeschik <mgr@pengutronix.de> + * Copyright (C) 2010 Sascha Hauer <sha@pengutronix.de> + * + * This file is released under the GPLv2 + * + */ + +#ifndef __USB_TWL4030_H +#define __USB_TWL4030_H + +/* Defines for bits in registers */ +#define OPMODE_MASK (3 << 3) +#define XCVRSELECT_MASK (3 << 0) +#define CARKITMODE (1 << 2) +#define OTG_ENAB (1 << 5) +#define PHYPWD (1 << 0) +#define CLOCKGATING_EN (1 << 2) +#define CLK32K_EN (1 << 1) +#define REQ_PHY_DPLL_CLK (1 << 0) +#define PHY_DPLL_CLK (1 << 0) + +/* + * USB + */ +int twl4030_usb_ulpi_init(void); + +#endif /* __USB_TWL4030_H */ |