From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 17 Apr 2020 17:07:10 -0400 Subject: [PATCH v3 15/21] gpio: add ops to set dir flags In-Reply-To: <20200113103515.20879-16-patrick.delaunay@st.com> References: <20200113103515.20879-1-patrick.delaunay@st.com> <20200113103515.20879-16-patrick.delaunay@st.com> Message-ID: <20200417210710.GV4555@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jan 13, 2020 at 11:35:09AM +0100, Patrick Delaunay wrote: > Add the ops for GPIO driver set_dir_flags() to set the dir flags. > The user can update the direction and configuration > of each GPIO with a only call to dm_gpio_set_dir_flags() or > dm_gpio_set_dir() and respecting the configuration provided by > device tree (saved in desc->flags). > > When these optional ops are absent, the gpio uclass use the mandatory > ops (direction_output, direction_input, get_value) and desc->flags > to manage only the main dir flags: > - GPIOD_IS_IN > - GPIOD_IS_OUT > - GPIOD_IS_OUT_ACTIVE > - GPIOD_ACTIVE_LOW > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: