From: Peter Pearse Date: Tue, 14 Aug 2007 09:46:32 +0000 (+0100) Subject: Replace lost end of at45.c. X-Git-Tag: v1.3.0-rc1~19^2~19^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c42f36f15074bd9808a7dbd7ef611fad9bf537c;p=u-boot Replace lost end of at45.c. --- diff --git a/drivers/at45.c b/drivers/at45.c old mode 100644 new mode 100755 index 35c9ecce45..4c12ca7a31 --- a/drivers/at45.c +++ b/drivers/at45.c @@ -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 +