lpc176x: add support for canboot usb
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
f42ce3e2fd
commit
b6feda4eae
|
@ -8,6 +8,7 @@
|
||||||
#include "autoconf.h" // CONFIG_SMOOTHIEWARE_BOOTLOADER
|
#include "autoconf.h" // CONFIG_SMOOTHIEWARE_BOOTLOADER
|
||||||
#include "board/armcm_boot.h" // armcm_enable_irq
|
#include "board/armcm_boot.h" // armcm_enable_irq
|
||||||
#include "board/armcm_timer.h" // udelay
|
#include "board/armcm_timer.h" // udelay
|
||||||
|
#include "board/armcm_reset.h" // try_request_canboot
|
||||||
#include "board/irq.h" // irq_disable
|
#include "board/irq.h" // irq_disable
|
||||||
#include "board/misc.h" // timer_read_time
|
#include "board/misc.h" // timer_read_time
|
||||||
#include "byteorder.h" // cpu_to_le32
|
#include "byteorder.h" // cpu_to_le32
|
||||||
|
@ -250,6 +251,7 @@ usb_request_bootloader(void)
|
||||||
{
|
{
|
||||||
if (!CONFIG_SMOOTHIEWARE_BOOTLOADER)
|
if (!CONFIG_SMOOTHIEWARE_BOOTLOADER)
|
||||||
return;
|
return;
|
||||||
|
try_request_canboot();
|
||||||
// Disable USB and pause for 5ms so host recognizes a disconnect
|
// Disable USB and pause for 5ms so host recognizes a disconnect
|
||||||
irq_disable();
|
irq_disable();
|
||||||
sie_cmd_write(SIE_CMD_SET_DEVICE_STATUS, 0);
|
sie_cmd_write(SIE_CMD_SET_DEVICE_STATUS, 0);
|
||||||
|
|
Loading…
Reference in New Issue