[U-Boot] [PATCH 7/9] MMC: APIs to support creation of boot partition
Simon Glass
sjg at chromium.org
Thu Dec 20 03:31:53 CET 2012
Hi Amar,
On Mon, Dec 17, 2012 at 3:19 AM, Amar <amarendra.xt at samsung.com> wrote:
> This pathc adds APIs to open, close and to create boot partiton for eMMC.
>
> Signed-off-by: Amar <amarendra.xt at samsung.com>
>
I think you should run checkpatch (or patman!) on your patches to get rid
of little errors. Or maybe you need to upgrade your checkpatch.
> ---
> drivers/mmc/mmc.c | 118
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
> include/mmc.h | 16 +++++++
> 2 files changed, 134 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
> index 5ffd8c5..88b0435 100644
> --- a/drivers/mmc/mmc.c
> +++ b/drivers/mmc/mmc.c
> @@ -1302,3 +1302,121 @@ int mmc_initialize(bd_t *bis)
>
> return 0;
> }
> +
> +int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long
> bootsize,
> + unsigned long rpmbsize)
> +{
> + int err;
> + struct mmc_cmd cmd;
> +
> + /* Only use this command for raw eMMC moviNAND */
> + /* Enter backdoor mode */
>
/*
* line 1
* line 2
*/
> + cmd.cmdidx = MMC_CMD_RES_MAN;
> + cmd.resp_type = MMC_RSP_R1b;
> + cmd.cmdarg = MMC_CMD62_ARG1;
> +
[snip]
Regards,
Simon
More information about the U-Boot
mailing list