[U-Boot] [PATCH v8 13/14] dm: Enable gpio command to support driver model

Tom Rini trini at ti.com
Wed Feb 26 17:34:26 CET 2014


On Mon, Feb 17, 2014 at 03:06:47PM -0700, Simon Glass wrote:

> Now that named GPIO banks are supported, along with a way of obtaining
> the status of a GPIO (input or output), we can provide an enhanced
> GPIO command for driver model. Where the driver provides its own operation
> for obtaining the GPIO state, this is used, otherwise a generic version
> is sufficient.
[snip]
> +#if defined(CONFIG_DM_GPIO)
> +	/*
> +	 * TODO(sjg at chromium.org): Convert this code over to use the GPIO
> +	 * uclass interface instead of the numbered GPIO compatibility
> +	 * layer.
> +	 */
> +	ret = gpio_lookup_name(str_gpio, NULL, NULL, &gpio);
> +	if (ret)
> +		return cmd_process_error(cmdtp, ret);

Since this is part of the initial "lets show DM code" shouldn't we do
this TODO before merging?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140226/3b9f4ccd/attachment.pgp>


More information about the U-Boot mailing list