]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
Replace lost end of at45.c.
authorPeter Pearse <peter.pearse@arm.com>
Tue, 14 Aug 2007 09:46:32 +0000 (10:46 +0100)
committerPeter Pearse <peter.pearse@arm.com>
Tue, 14 Aug 2007 09:46:32 +0000 (10:46 +0100)
drivers/at45.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 35c9ecc..4c12ca7
@@ -547,4 +547,18 @@ int AT91F_DataFlashRead(
        return DATAFLASH_OK;
 }
 
+/*---------------------------------------------------------------------------*/
+/* Function Name       : AT91F_DataflashProbe                               */
+/* Object              :                                                    */
+/* Input Parameters    :                                                    */
+/* Return value               : Dataflash status register                           */
+/*---------------------------------------------------------------------------*/ 
+int AT91F_DataflashProbe(int cs, AT91PS_DataflashDesc pDesc) {
+       AT91F_SpiEnable(cs);
+       AT91F_DataFlashGetStatus(pDesc);
+       return((pDesc->command[1] == 0xFF)? 0: pDesc->command[1] & 0x3C); 
+}
+
+#endif
+