Sansa Connect: Initial TNETV105 driver port

Port USB driver from Sansa Connect Linux kernel sources. The device
successfully enumerates and responds to SCSI commands but actual disk
access does not work. The SCSI response sent to host mentions that both
internal storage and microsd card are not present.

Change-Id: Ic6c07da12382c15c0b069f23a75f7df9765b7525
This commit is contained in:
Tomasz Moń 2021-06-05 09:22:27 +02:00
parent 77603c344d
commit 474293a12b
11 changed files with 3066 additions and 60 deletions

View file

@ -494,6 +494,13 @@ void udelay(int usec) {
}
}
void mdelay(int msec)
{
int ms_per_tick = 1000 / HZ;
/* Round up to next full tick */
sleep((msec + ms_per_tick - 1) / ms_per_tick);
}
#ifdef BOOTLOADER
void system_prepare_fw_start(void)
{