diff options
author | Eric Bénard <eric@eukrea.com> | 2014-02-08 15:16:08 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-10 09:13:31 +0100 |
commit | b43dee1a4323aa0d9460a68f5bbdf6e5681f4d30 (patch) | |
tree | 06b0b3990dc95e6548b25df61e6a1794cf54b10e /include/mfd | |
parent | 1c15af075f627c52d1e1e167115baa62dea97837 (diff) | |
download | barebox-b43dee1a4323aa0d9460a68f5bbdf6e5681f4d30.tar.gz barebox-b43dee1a4323aa0d9460a68f5bbdf6e5681f4d30.tar.xz |
ARM: mx53-qsrb: fix USB
- configure the MC34708 properly so that USB can work
(the sequence is taken from u-boot)
- add the required defines to the mc13xxx include file
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mfd')
-rw-r--r-- | include/mfd/mc13xxx.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mfd/mc13xxx.h b/include/mfd/mc13xxx.h index cba85890c1..1946b1a1c3 100644 --- a/include/mfd/mc13xxx.h +++ b/include/mfd/mc13xxx.h @@ -152,6 +152,17 @@ #define MC13783_SW1B_SOFTSTART (1 << 17) #define MC13783_SW_PLL_FACTOR(x) (((x) - 28) << 19) +/* MC34708 Definitions */ +#define SWx_VOLT_MASK_MC34708 0x3F +#define SWx_1_250V_MC34708 0x30 +#define SWx_1_300V_MC34708 0x34 +#define TIMER_MASK_MC34708 0x300 +#define TIMER_4S_MC34708 0x100 +#define VUSBSEL_MC34708 (1 << 2) +#define VUSBEN_MC34708 (1 << 3) +#define SWBST_CTRL 31 +#define SWBST_AUTO 0x8 + struct mc13xxx; #ifdef CONFIG_MFD_MC13XXX |