patch/respin] generic nand driver for SoCs

Ruslan V. Sushko rsushko at ru.mvista.com
Thu May 3 05:08:16 EDT 2007


>
> +	data->chip.priv = &data;
> +	data->mtd.priv = &data->chip;
> +	data->mtd.owner = THIS_MODULE;
>   
Seems it would be useful to pass the name of mtd driver (data->mtd.name) 
here from platform dependent data. The name is used to created custom 
mtd partitions from command line, if cmdlineprobe passed in probe list.
> +
> +	data->chip.IO_ADDR_R = data->io_base;
> +	data->chip.IO_ADDR_W = data->io_base;
> +	data->chip.cmd_ctrl = pdata->ctrl.cmd_ctrl;
> +	data->chip.dev_ready = pdata->ctrl.dev_ready;
> +	data->chip.select_chip = pdata->ctrl.select_chip;
> +
>   




More information about the linux-mtd mailing list