summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8700/usb-s5l8700.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8700/usb-s5l8700.c')
-rw-r--r--firmware/target/arm/s5l8700/usb-s5l8700.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/firmware/target/arm/s5l8700/usb-s5l8700.c b/firmware/target/arm/s5l8700/usb-s5l8700.c
deleted file mode 100644
index c0bf7a951b..0000000000
--- a/firmware/target/arm/s5l8700/usb-s5l8700.c
+++ /dev/null
@@ -1,56 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: usb-fw-pp502x.c 21932 2009-07-17 22:07:06Z roolku $
9 *
10 * Copyright (C) 2009 by ?????
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#include "config.h"
22#include "usb.h"
23#include "cpu.h"
24#include "system.h"
25#include "string.h"
26
27void usb_init_device(void)
28{
29}
30
31void usb_enable(bool on)
32{
33 /* This device specific code will eventually give way to proper USB
34 handling, which should be the same for all S5L870x targets. */
35 if (on)
36 {
37#ifdef IPOD_ARCH
38 /* For iPod, we can only do one thing with USB mode atm - reboot
39 into the flash-based disk-mode. This does not return. */
40
41 memcpy((void *)0x0002bf00, "diskmodehotstuff\1\0\0\0", 20);
42
43 system_reboot(); /* Reboot */
44#endif
45 }
46}
47
48int usb_detect(void)
49{
50#if defined(IPOD_NANO2G)
51 if ((PDAT14 & 0x8) == 0x0)
52 return USB_INSERTED;
53#endif
54
55 return USB_EXTRACTED;
56}