[PATCH] add access to AMD secure silicon area

Clive Davies cdavies at altera.com
Tue Oct 15 09:21:24 EDT 2002


> And CFI_DEVICETYPE_X8 is always correct? No X16 devices?
>

Good point, how about ....

+       cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, 
cfi->device_type, NULL);
+       cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, 
cfi->device_type, NULL);
+       cfi_send_gen_cmd(0x88, cfi->addr_unlock1, chip->start, map, cfi, 
cfi->device_type, NULL);
+
+       map->copy_from(map, buf, adr, len);
+
+       cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, 
cfi->device_type, NULL);
+       cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, 
cfi->device_type, NULL);
+       cfi_send_gen_cmd(0x90, cfi->addr_unlock1, chip->start, map, cfi, 
cfi->device_type, NULL);
+       cfi_send_gen_cmd(0x00, cfi->addr_unlock1, chip->start, map, cfi, 
cfi->device_type, NULL);
+

instead?




More information about the linux-mtd mailing list