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) | |
download | rockbox-938aa8eefe9591a469a48474ff651cb0a2971d7f.tar.gz rockbox-938aa8eefe9591a469a48474ff651cb0a2971d7f.zip |
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 @@ | |||
93 | #define USB_GPIO_MASK 0x04 | 93 | #define USB_GPIO_MASK 0x04 |
94 | #define USB_GPIO_VAL 0x04 | 94 | #define USB_GPIO_VAL 0x04 |
95 | 95 | ||
96 | #elif defined(SANSA_VIEW) | ||
97 | /* GPIO A bit 7 is usb detect */ | ||
98 | #define USB_GPIO GPIOA | ||
99 | #define USB_GPIO_MASK 0x80 | ||
100 | #define USB_GPIO_VAL 0x80 | ||
101 | |||
96 | #else | 102 | #else |
97 | #error No USB GPIO config specified | 103 | #error No USB GPIO config specified |
98 | #endif | 104 | #endif |