Sylvain Munaut
7e109d186e
device/dfu: Force FullSpeed mode since the DFU driver doesn't support HS
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-01 23:29:00 +02:00
Sylvain Munaut
3b3b41d2ba
board/osmo-sdr: Add DFU support for the startup code
...
DFU mode will be entered if:
- 0xDFDFDFDF magic is at AT91C_IRAM
- Button is pressed
- No valid firmware seem to be present (start addr = 0xffffffff)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-29 10:40:00 +02:00
Harald Welte
e3a39f0d8b
SAM3U: Use correct DMAC peripheral ID for SSC receive
...
It seems like the SSC Rx channel has a different DMAC peripheral ID (4)
than the transmit side.
The official Atmel sam3u documentation (doc6403e) doesn't document that
fact, and it also doesn't even state any DMAC peripheral identifiers.
The at91lib code release by Atmel claims it is 3, when in reality it is
4!
I found this by brute-forcing all possible peripheral identifiers.
2012-02-26 22:00:35 +01:00
Harald Welte
3505594094
DFU: runtime only has _one_ interface/altsetting
2012-01-08 19:24:21 +01:00
Harald Welte
7261a4b6b7
board/osmo-sdr: Add DFU support (like SAM3U-EK)
2012-01-08 18:32:36 +01:00
Harald Welte
8204b630ed
add missing dfu.lds
2012-01-08 18:30:30 +01:00
Harald Welte
61739ec34d
DFU: include code to switch from DFU to RUNTUIME after bus reset / mannifest
2012-01-08 18:24:32 +01:00
Harald Welte
1b1befdeb5
DFU: add dfu_runtime.c for runtime-to-dfu switching
2012-01-08 17:44:16 +01:00
Harald Welte
5729b6faa3
SAM3U-EK: Add a 'dfu' makefile target, DFU boot switching code
2012-01-08 17:14:16 +01:00
Harald Welte
49600087b9
rename 'struct dfu' to 'struct dfudata' and 'dfu' symbol to 'g_dfu'
...
This avoids clashes with the -Ddfu caused by board MEMORIES
2012-01-08 16:21:41 +01:00
Harald Welte
f912bc40dc
DFU: fix upload case, we need to return number of bytes read
2012-01-08 15:16:38 +01:00
Harald Welte
0d9de4db67
Implement SAM3U Errata 46.2.1.4 about reading Unique Identifier
2012-01-08 15:08:14 +01:00
Harald Welte
e236846cf9
RSTC_GetStatus() returns unsigned long, not unsigned char !
2012-01-08 15:07:26 +01:00
Harald Welte
48b70deff5
make sure FLASHD_ReadUniqueID() is linked to SRAM, not flash
2012-01-08 11:54:35 +01:00
Harald Welte
fbea2413f6
DFU: add support for setting the USB SERIAL by a board
...
this will allow us to use the Unique Chip ID as serial number in the USB
descriptor, which in turn allows customers to write device-specific
udev rules for persistent naming, etc.
2012-01-08 11:52:15 +01:00
Harald Welte
82eaac47c7
DFU: manage interface altsettings inside DFU core
2012-01-07 17:46:07 +01:00
Harald Welte
141a11409e
DFU: include more common infrastructure for download and upload handling
2012-01-07 17:38:11 +01:00
Harald Welte
541bc5bdae
DFU: Add dfu_desc.c containing USB descriptors
2012-01-05 23:37:12 +01:00
Harald Welte
b45eec0ed4
various DFU fixes
...
* make RET_* constants public as DFU_RET_*
* support GET_DESCRIPTOR on the DFU interface descriptor
* use static buffer for getstatus()
2012-01-05 23:35:54 +01:00
Harald Welte
f04ca88a27
aat91sam3u-ek: Add #defines for DFU
2012-01-05 22:16:33 +01:00
Harald Welte
d77694f33a
dfu fixes
2012-01-05 22:16:24 +01:00
Harald Welte
c7c3a3526b
import initial dfu implementation (incomplete)
2012-01-01 23:42:02 +01:00
Harald Welte
b2f95a3c7c
add cmsis to at91lib in order to reduce number of repositories
2011-12-31 17:57:08 +01:00
Harald Welte
61be5fdab4
osmo-sdr: only build flash images
2011-12-29 23:00:36 +01:00
Harald Welte
3cdba2b9ee
osmo-sdr: update GPIO definitions in board.h
2011-12-29 16:47:08 +01:00
Harald Welte
588169f122
osmo-sdr/sam3u: add exidx sections to linker script
2011-12-28 01:18:29 +01:00
Harald Welte
a34cdbc1a9
complete 'board' support for osmo-sdr hardware
2011-12-27 22:25:56 +01:00
Harald Welte
da884b4501
fix #defines for LEDs, remove #defines for non-existant pins
2011-12-27 22:24:38 +01:00
Harald Welte
d378f880e5
remove section initializing non-existant external clock
...
osmo-sdr doesn't have a 32kHz clock crystal.
2011-12-27 22:24:02 +01:00
Harald Welte
71b54ebc2c
initial osmo-sdr board support
2011-12-27 17:15:29 +01:00
Harald Welte
044ad7c398
import at91lib from at91lib_20100901_softpack_1_9_v_1_0_svn_v15011
...
it's sad to see that atmel doesn't publish their svn repo or has
a centralized location or even puts proper version/release info
into the library itself
2011-07-04 20:52:54 +02:00