add link to homepage to about window.
[Rockbox.git] / firmware / drivers / m5636.c
blobe7b7a174df3cfd0260518980bb97a1c9bd558938
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Ulrich Pegelow
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #include "system.h"
21 #include "kernel.h"
22 #include "logf.h"
23 #include "m5636.h"
24 #include "m5636-target.h"
26 /* Disclaimer: This code had to be developed without any documentation for the
27 M5636 USBOTG chip, due to the restrictive information policy of
28 its manufacturer.
29 The development is solely based on reverse engineering.
30 Malfunctioning (with the risk of possible damage to the
31 hardware) can not be fully excluded.
32 USE THIS CODE AT YOUR OWN RISK!
35 /* Init: This currently just puts the M5636 into sleep mode */
37 void m5636_init(void)
39 m5636_device_init();
41 M5636_4068 |= 0x0003; /* ???? */
42 M5636_4068 |= 0x0080; /* ???? */
43 M5636_4078 |= 0x0001; /* ???? */