[PATCH] add access to AMD secure silicon area

David Woodhouse dwmw2 at infradead.org
Tue Oct 15 06:09:29 EDT 2002


cdavies at altera.com said:
> This patch makes the secure silicon (secsi) area available in some AMD
> flash  devices available for reading via the read_user_prot_reg/
> read_fact_prot_reg  functions. 

+	cfi_send_gen_cmd(0xAA, cfi->addr_unlock1, chip->start, map, cfi, CFI_DEVICETYPE_X8, NULL);
+	cfi_send_gen_cmd(0x55, cfi->addr_unlock2, chip->start, map, cfi, CFI_DEVICETYPE_X8, NULL);
+	cfi_send_gen_cmd(0x90, cfi->addr_unlock1, chip->start, map, cfi, CFI_DEVICETYPE_X8, NULL);
+	cfi_send_gen_cmd(0x00, cfi->addr_unlock1, chip->start, map, cfi, CFI_DEVICETYPE_X8, NULL);

Is this always correct?

+        /* does this chip even have a secsi area? */
+	if(cfi->mfr!=1)
+		return -EINVAL;
+	switch(cfi->id){
+	case 0x50:
+	case 0x53:
+	case 0x55:
+	case 0x56:
+	case 0x5C:
+	case 0x5F:
+		break;
+	default:
+		return -EINVAL;

Er, is this information not available from the CFI info? I really want to 
avoid having stuff like this in the chip drivers.


--
dwmw2






More information about the linux-mtd mailing list