projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 toolchain: add SHA256 for binutils-2.25
[carl9170fw.git]
/
carlfw
/
usb
/
main.c
diff --git
a/carlfw/usb/main.c
b/carlfw/usb/main.c
index cdaf760cdf285605e3575bc6803bbc5b649796e4..4199a218618e9a6af57481f80108b8a7f6d4f3a6 100644
(file)
--- a/
carlfw/usb/main.c
+++ b/
carlfw/usb/main.c
@@
-17,18
+17,18
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * with this program; If not, see <http://www.gnu.org/licenses/>.
*/
#include "carl9170.h"
*/
#include "carl9170.h"
+#include "shared/phy.h"
#include "hostif.h"
#include "printf.h"
#include "timer.h"
#include "rom.h"
#include "wl.h"
#include "hostif.h"
#include "printf.h"
#include "timer.h"
#include "rom.h"
#include "wl.h"
-#include "
shared/phy
.h"
+#include "
wol
.h"
#ifdef CONFIG_CARL9170FW_DEBUG_USB
void usb_putc(const char c)
#ifdef CONFIG_CARL9170FW_DEBUG_USB
void usb_putc(const char c)
@@
-376,6
+376,7
@@
static void usb_handler(uint8_t usb_interrupt_level1)
if (usb_interrupt_level2 & AR9170_USB_INTR_SRC7_USB_RESET) {
usb_reset_ack();
if (usb_interrupt_level2 & AR9170_USB_INTR_SRC7_USB_RESET) {
usb_reset_ack();
+ usb_reset_eps();
reboot();
}
reboot();
}
@@
-386,13
+387,13
@@
static void usb_handler(uint8_t usb_interrupt_level1)
#ifdef CONFIG_CARL9170FW_WOL
if (!(fw.usb.device_feature & USB_DEVICE_REMOTE_WAKEUP) ||
#ifdef CONFIG_CARL9170FW_WOL
if (!(fw.usb.device_feature & USB_DEVICE_REMOTE_WAKEUP) ||
- !fw.w
lan.w
ol.cmd.flags) {
+ !fw.wol.cmd.flags) {
disable_watchdog();
/* GO_TO_SUSPEND stops the CPU clock too. */
orb(AR9170_USB_REG_MAIN_CTRL, AR9170_USB_MAIN_CTRL_GO_TO_SUSPEND);
} else {
disable_watchdog();
/* GO_TO_SUSPEND stops the CPU clock too. */
orb(AR9170_USB_REG_MAIN_CTRL, AR9170_USB_MAIN_CTRL_GO_TO_SUSPEND);
} else {
- w
lan_prepare_wol
();
+ w
ol_prepare
();
}
#else /* CONFIG_CARL9170FW_WOL */
disable_watchdog();
}
#else /* CONFIG_CARL9170FW_WOL */
disable_watchdog();