1
0
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:
internal 2023-07-31 21:28:24 +02:00
parent 23b2e6d6a0
commit 307ce85223

View File

@ -109,20 +109,14 @@ static int update_flash(struct ddflash *ddf)
stat |= 1; stat |= 1;
return stat; return stat;
break; break;
case 0x21:
case 0x22:
case 0x24:
case 0x14:
imgadr = 0;
default: default:
{ {
uint32_t val; uint32_t val;
if (!readreg(ddf->fd, (ddf->link << 28) | 0x10, &val)) { if (!readreg(ddf->fd, (ddf->link << 28) | 0x10, &val)) {
printf("reg0x10=%08x\n", val); //printf("reg0x10=%08x\n", val);
if ((val >> 24) == 5) if ((val >> 24) == 5)
imgadr = 0; imgadr = 0;
} }
printf("imgadr= %08x\n", imgadr);
} }
fname = ddf->fname; fname = ddf->fname;
default_fname = devid2fname(ddf->id.device, &name); default_fname = devid2fname(ddf->id.device, &name);