sw_apps:zynq_fsbl: Fix to address change in arguments to f_mount()

From 2015.1_1210_1, signature for function f_mount() is changed.
Now it expects three arguments (earlier had two arguments).
In SD initialization routine of FSBL code, now f_mount()
is called with new set of arguments.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
This commit is contained in:
Sarat Chand Savitala 2014-12-11 19:39:52 +05:30 committed by Suneel Garapati
parent c41ba32e65
commit 9270b68a0a
2 changed files with 10 additions and 3 deletions

View file

@ -218,6 +218,11 @@
* remaining in unknown state.
* Resolution: LinearBootDeviceFlag is initialized 0
* in main.c
* 12.00a ssc 12/11/14 839182 - FSBL -In the file sd.c, f_mount is called with
* two arguments but f_mount is expecting the 3 arguments
* from build 2015.1_1210_1, causing compilation error.
* Resolution: Arguments for f_mount in InitSD() are
* changed as per new signature.
*
* </pre>
*
@ -303,8 +308,8 @@ extern "C" {
/*
* SDK release version
*/
#define SDK_RELEASE_YEAR 2014
#define SDK_RELEASE_QUARTER 4
#define SDK_RELEASE_YEAR 2015
#define SDK_RELEASE_QUARTER 1
#define WORD_LENGTH_SHIFT 2

View file

@ -43,6 +43,7 @@
* ----- ---- -------- -------------------------------------------------------
* 1.00a jz 04/28/11 Initial release
* 7.00a kc 10/18/13 Integrated SD/MMC driver
* 12.00a ssc 12/11/14 Fix for CR# 839182
*
* </pre>
*
@ -102,9 +103,10 @@ u32 InitSD(const char *filename)
{
FRESULT rc;
TCHAR *path = "0:/"; /* Logical drive number is 0 */
/* Register volume work area, initialize device */
rc = f_mount(0, &fatfs);
rc = f_mount(&fatfs, path, 0);
fsbl_printf(DEBUG_INFO,"SD: rc= %.8x\n\r", rc);
if (rc != FR_OK) {