summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc77x/usb-tcc77x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tcc77x/usb-tcc77x.c')
-rw-r--r--firmware/target/arm/tcc77x/usb-tcc77x.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/tcc77x/usb-tcc77x.c b/firmware/target/arm/tcc77x/usb-tcc77x.c
index 85c8bed3ef..9cfcb503e0 100644
--- a/firmware/target/arm/tcc77x/usb-tcc77x.c
+++ b/firmware/target/arm/tcc77x/usb-tcc77x.c
@@ -7,7 +7,7 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2008 by [whoever fills in these functions] 10 * Copyright (C) 2008 by Vitja Makarov
11 * 11 *
12 * This program is free software; you can redistribute it and/or 12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License 13 * modify it under the terms of the GNU General Public License
@@ -21,9 +21,15 @@
21 21
22#include "config.h" 22#include "config.h"
23#include "usb.h" 23#include "usb.h"
24#include "system.h"
25#include "usb-tcc7xx.h"
24 26
25void usb_init_device(void) 27void usb_init_device(void)
26{ 28{
29 /* simply switch USB off for now */
30 BCLKCTR |= DEV_USBD;
31 TCC7xx_USB_PHY_CFG = 0x3e4c;
32 BCLKCTR &= ~DEV_USBD;
27} 33}
28 34
29void usb_enable(bool on) 35void usb_enable(bool on)