arm: vf610: fix double iomux configuration for vf610twr board
[u-boot/qq2440-u-boot.git] / drivers / mmc / mmc_private.h
blob16dcf9ff617b736e357531d1c466c6abb26de82c
1 /*
2 * Copyright 2008,2010 Freescale Semiconductor, Inc
3 * Andy Fleming
5 * Based (loosely) on the Linux code
7 * SPDX-License-Identifier: GPL-2.0+
8 */
10 #ifndef _MMC_PRIVATE_H_
11 #define _MMC_PRIVATE_H_
13 #include <mmc.h>
15 extern int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
16 struct mmc_data *data);
17 extern int mmc_send_status(struct mmc *mmc, int timeout);
18 extern int mmc_set_blocklen(struct mmc *mmc, int len);
20 #ifndef CONFIG_SPL_BUILD
22 extern unsigned long mmc_berase(int dev_num, lbaint_t start, lbaint_t blkcnt);
24 extern ulong mmc_bwrite(int dev_num, lbaint_t start, lbaint_t blkcnt,
25 const void *src);
27 #else /* CONFIG_SPL_BUILD */
29 /* SPL will never write or erase, declare dummies to reduce code size. */
31 static inline unsigned long mmc_berase(int dev_num, lbaint_t start,
32 lbaint_t blkcnt)
34 return 0;
37 static inline ulong mmc_bwrite(int dev_num, lbaint_t start, lbaint_t blkcnt,
38 const void *src)
40 return 0;
43 #endif /* CONFIG_SPL_BUILD */
45 #endif /* _MMC_PRIVATE_H_ */