Linus Nielsen Feltzing | 5f655c9 | 2006-07-13 07:40:30 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2006 Ulrich Pegelow |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 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. |
Linus Nielsen Feltzing | 5f655c9 | 2006-07-13 07:40:30 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
| 21 | |
| 22 | #include "system.h" |
| 23 | #include "kernel.h" |
| 24 | #include "logf.h" |
| 25 | #include "m5636.h" |
| 26 | #include "m5636-target.h" |
| 27 | |
| 28 | /* Disclaimer: This code had to be developed without any documentation for the |
| 29 | M5636 USBOTG chip, due to the restrictive information policy of |
| 30 | its manufacturer. |
| 31 | The development is solely based on reverse engineering. |
| 32 | Malfunctioning (with the risk of possible damage to the |
| 33 | hardware) can not be fully excluded. |
| 34 | USE THIS CODE AT YOUR OWN RISK! |
| 35 | */ |
| 36 | |
| 37 | /* Init: This currently just puts the M5636 into sleep mode */ |
| 38 | |
| 39 | void m5636_init(void) |
| 40 | { |
| 41 | m5636_device_init(); |
| 42 | |
| 43 | M5636_4068 |= 0x0003; /* ???? */ |
| 44 | M5636_4068 |= 0x0080; /* ???? */ |
| 45 | M5636_4078 |= 0x0001; /* ???? */ |
| 46 | } |
| 47 | |