diff options
author | Dave Chapman <dave@dchapman.com> | 2008-09-06 17:50:59 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-09-06 17:50:59 +0000 |
commit | d462a64a918117991e11dade2d7fa3a28196e07a (patch) | |
tree | 0a6f5ed8777b18bb1641fbb3608f10374901706c /firmware/target/arm/tcc77x/usb-tcc77x.c | |
parent | b87715f670f04c9adbe358c32a385c6771d99a81 (diff) | |
download | rockbox-d462a64a918117991e11dade2d7fa3a28196e07a.tar.gz rockbox-d462a64a918117991e11dade2d7fa3a28196e07a.zip |
Initial commit of iaudio 7 port by Vitja Makarov (FS#9245). Port is at quite an advanced stage, but is troubled by the lack of a reliable NAND driver (similar to the Cowon D2 port) and is not yet suitable for non-developers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18435 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc77x/usb-tcc77x.c')
-rw-r--r-- | firmware/target/arm/tcc77x/usb-tcc77x.c | 8 |
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 | ||
25 | void usb_init_device(void) | 27 | void 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 | ||
29 | void usb_enable(bool on) | 35 | void usb_enable(bool on) |