mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
select image start according to reg 0x10
This commit is contained in:
parent
23b2e6d6a0
commit
307ce85223
@ -109,20 +109,14 @@ static int update_flash(struct ddflash *ddf)
|
||||
stat |= 1;
|
||||
return stat;
|
||||
break;
|
||||
case 0x21:
|
||||
case 0x22:
|
||||
case 0x24:
|
||||
case 0x14:
|
||||
imgadr = 0;
|
||||
default:
|
||||
{
|
||||
uint32_t val;
|
||||
if (!readreg(ddf->fd, (ddf->link << 28) | 0x10, &val)) {
|
||||
printf("reg0x10=%08x\n", val);
|
||||
//printf("reg0x10=%08x\n", val);
|
||||
if ((val >> 24) == 5)
|
||||
imgadr = 0;
|
||||
}
|
||||
printf("imgadr= %08x\n", imgadr);
|
||||
}
|
||||
fname = ddf->fname;
|
||||
default_fname = devid2fname(ddf->id.device, &name);
|
||||
|
Loading…
Reference in New Issue
Block a user