diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2014-03-27 22:29:34 +0000 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2014-03-27 22:29:34 +0000 |
commit | 938aa8eefe9591a469a48474ff651cb0a2971d7f (patch) | |
tree | f8e9366bbff71c18ca3bbbf4f5ec895849199a8e | |
parent | 173d9c6750bde003589c4c02218db7dd8510ff68 (diff) |
Sansa View: define a GPIO bit for USB detection in order to compile the bootloader.
Change-Id: I748a49f4b48385f328946e861d1f9a026b1efd7d
-rw-r--r-- | firmware/target/arm/pp/usb-fw-pp502x.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/pp/usb-fw-pp502x.c b/firmware/target/arm/pp/usb-fw-pp502x.c index acbb221cfd..b0fcfb83a4 100644 --- a/firmware/target/arm/pp/usb-fw-pp502x.c +++ b/firmware/target/arm/pp/usb-fw-pp502x.c @@ -93,6 +93,12 @@ #define USB_GPIO_MASK 0x04 #define USB_GPIO_VAL 0x04 +#elif defined(SANSA_VIEW) + /* GPIO A bit 7 is usb detect */ +#define USB_GPIO GPIOA +#define USB_GPIO_MASK 0x80 +#define USB_GPIO_VAL 0x80 + #else #error No USB GPIO config specified #endif |